(str: string)
| 31 | } |
| 32 | |
| 33 | export function cpLen(str: string): number { |
| 34 | return toCodePoints(str).length; |
| 35 | } |
| 36 | |
| 37 | export function cpSlice(str: string, start: number, end?: number): string { |
| 38 | // Slice by code‑point indices and re‑join. |
no test coverage detected