(offset: number)
| 1469 | } |
| 1470 | |
| 1471 | nextOffset(offset: number): number { |
| 1472 | return this.withCache(`next:${offset}`, () => { |
| 1473 | const boundaries = this.getGraphemeBoundaries() |
| 1474 | return this.binarySearchBoundary(boundaries, offset, true) |
| 1475 | }) |
| 1476 | } |
| 1477 | |
| 1478 | prevOffset(offset: number): number { |
| 1479 | if (offset <= 0) return 0 |
no test coverage detected