1126
return GraphemeBreakType.Other;
1127
}
1129
>
const data = this._data;
1130
>
const nodeCount = data.length / 3;
1131
>
let nodeIndex = 1;
1132
>
while (nodeIndex <= nodeCount) {
1133
>
if (codePoint < data[3 * nodeIndex]) {
1134
>
// go left
1135
>
nodeIndex = 2 * nodeIndex;
1136
>
} else if (codePoint > data[3 * nodeIndex + 1]) {
1137
>
// go right
1138
>
nodeIndex = 2 * nodeIndex + 1;
1139
>
} else {
1140
>
// hit
1141
>
return data[3 * nodeIndex + 2];
1142
>
}
1143
>
}
1144
1145
return GraphemeBreakType.Other;