Set of currently valid paste IDs, for marker-aware segmentation.
()
| 372 | |
| 373 | /** Set of currently valid paste IDs, for marker-aware segmentation. */ |
| 374 | private validPasteIds(): Set<number> { |
| 375 | return new Set(this.pastes.keys()); |
| 376 | } |
| 377 | |
| 378 | /** Segment text with paste-marker awareness, only merging markers with valid IDs. */ |
| 379 | private segment(text: string, mode: "word" | "grapheme"): Iterable<Intl.SegmentData> { |