(input: string)
| 62 | } |
| 63 | |
| 64 | function stringToCodePoints(input: string): number[] { |
| 65 | const codePoints: number[] = [] |
| 66 | for (let i = 0; i < input.length; i++) { |
| 67 | const codePoint = input.codePointAt(i) |
| 68 | if (codePoint === undefined) { |
| 69 | continue |
| 70 | } |
| 71 | codePoints.push(codePoint) |
| 72 | if (codePoint > 0xffff) { |
| 73 | i++ |
| 74 | } |
| 75 | } |
| 76 | return codePoints |
| 77 | } |
| 78 | |
| 79 | function fallbackElement(codePoint: number): PackedCollationElement { |
| 80 | // UCA requires an order for code points not in the explicit root table; this |
no outgoing calls
no test coverage detected