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

Function hasMultipleCodepoints

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

Source from the content-addressed store, hash-verified

52}
53
54function hasMultipleCodepoints(str: string): boolean {
55 let count = 0
56 for (const _ of str) {
57 count++
58 if (count > 1) return true
59 }
60 return false
61}
62
63function graphemeWidth(grapheme: string): 1 | 2 {
64 if (hasMultipleCodepoints(grapheme)) return 2

Callers 1

graphemeWidthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected