* Returns the screen width per character.
()
| 186 | * Returns the screen width per character. |
| 187 | */ |
| 188 | getCharWidths(): number[] { |
| 189 | const charWidths: number[] = []; |
| 190 | for (const char of this._string) { |
| 191 | charWidths.push(wcwidth(char)); |
| 192 | } |
| 193 | return charWidths; |
| 194 | } |
| 195 | |
| 196 | *iterSubstrings(): IterableIterator<[string, T[]]> { |
| 197 | const activeSpansById = new Map<number, Span<T>>(); |
no outgoing calls
no test coverage detected