(ch: number)
| 199 | |
| 200 | /** Characters that are in this range are actually code points that take two characters in UTF-16 */ |
| 201 | export function sizeOf(ch: number): number { |
| 202 | return ch >= 0xD800 && ch <= 0xDBFF ? 2 : 1; |
| 203 | } |
| 204 | |
| 205 | function lookupInUnicodeMap(code: number, map: readonly number[]): boolean { |
| 206 | // Bail out quickly if it couldn't possibly be in the map. |