MCPcopy Create free account
hub / github.com/glideapps/quicktype / isLetter

Function isLetter

src/Strings.ts:212–216  ·  view source on GitHub ↗
(codePoint: number)

Source from the content-addressed store, hash-verified

210}
211
212export function isLetter(codePoint: number): boolean {
213 const category = unicode.getCategory(codePoint);
214 // FIXME: Include Letter, modifier (Lm)?
215 return ["Lu", "Ll", "Lt", "Lo"].indexOf(category) >= 0;
216}
217
218export function isDigit(codePoint: number): boolean {
219 const category = unicode.getCategory(codePoint);

Callers 3

isStartCharacterFunction · 0.90
isLetterOrUnderscoreFunction · 0.85
isWordCharacterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…