(input: string)
| 232 | } |
| 233 | |
| 234 | function rootElementsForString(input: string): PackedCollationElement[] { |
| 235 | const codePoints = stringToCodePoints(input) |
| 236 | const elements: PackedCollationElement[] = [] |
| 237 | for (let i = 0; i < codePoints.length; ) { |
| 238 | const match = lookupRootElements(codePoints, i) |
| 239 | elements.push(...match.elements) |
| 240 | i += match.length |
| 241 | } |
| 242 | return elements |
| 243 | } |
| 244 | |
| 245 | function packedCollation( |
| 246 | locale: string, |
no test coverage detected