MCPcopy Index your code
hub / github.com/codeaashu/claude-code / segmentGraphemes

Function segmentGraphemes

src/ink/termio/parser.ts:71–75  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

69}
70
71function* segmentGraphemes(str: string): Generator<Grapheme> {
72 for (const { segment } of getGraphemeSegmenter().segment(str)) {
73 yield { value: segment, width: graphemeWidth(segment) }
74 }
75}
76
77// =============================================================================
78// Sequence Parsing

Callers 1

processTextMethod · 0.85

Calls 3

getGraphemeSegmenterFunction · 0.85
graphemeWidthFunction · 0.85
segmentMethod · 0.80

Tested by

no test coverage detected