MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hasMultipleCodepoints

Function hasMultipleCodepoints

source code/ink/termio/parser.ts:56–63  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

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

Callers 1

graphemeWidthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected