(offset: number)
| 1494 | } |
| 1495 | |
| 1496 | nextOffset(offset: number): number { |
| 1497 | return this.withCache(`next:${offset}`, () => { |
| 1498 | const boundaries = this.getGraphemeBoundaries() |
| 1499 | return this.binarySearchBoundary(boundaries, offset, true) |
| 1500 | }) |
| 1501 | } |
| 1502 | |
| 1503 | prevOffset(offset: number): number { |
| 1504 | if (offset <= 0) return 0 |
no test coverage detected