(original: string)
| 21 | boundaries: Set<number> |
| 22 | |
| 23 | constructor(original: string) { |
| 24 | const n = original.length |
| 25 | this.original = original |
| 26 | this.text = [...original] |
| 27 | this.edited = Array.from<boolean>({ length: n }).fill(false) |
| 28 | this.holderEnd = Array.from<number>({ length: n }).fill(-1) |
| 29 | this.left = Array.from<string>({ length: n + 1 }).fill('') |
| 30 | this.right = Array.from<string>({ length: n + 1 }).fill('') |
| 31 | this.boundaries = new Set([0, n]) |
| 32 | } |
| 33 | |
| 34 | split(index: number): void { |
| 35 | if (this.boundaries.has(index)) |
nothing calls this directly
no outgoing calls
no test coverage detected