MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isEastAsianWide

Function isEastAsianWide

src/ink/termio/parser.ts:39–52  ·  view source on GitHub ↗
(codePoint: number)

Source from the content-addressed store, hash-verified

37}
38
39function isEastAsianWide(codePoint: number): boolean {
40 return (
41 (codePoint >= 0x1100 && codePoint <= 0x115f) ||
42 (codePoint >= 0x2e80 && codePoint <= 0x9fff) ||
43 (codePoint >= 0xac00 && codePoint <= 0xd7a3) ||
44 (codePoint >= 0xf900 && codePoint <= 0xfaff) ||
45 (codePoint >= 0xfe10 && codePoint <= 0xfe1f) ||
46 (codePoint >= 0xfe30 && codePoint <= 0xfe6f) ||
47 (codePoint >= 0xff00 && codePoint <= 0xff60) ||
48 (codePoint >= 0xffe0 && codePoint <= 0xffe6) ||
49 (codePoint >= 0x20000 && codePoint <= 0x2fffd) ||
50 (codePoint >= 0x30000 && codePoint <= 0x3fffd)
51 )
52}
53
54function hasMultipleCodepoints(str: string): boolean {
55 let count = 0

Callers 1

graphemeWidthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected