MCPcopy Create free account
hub / github.com/microsoft/typescript-go / IsUnicodeIdentifierStart

Function IsUnicodeIdentifierStart

internal/stringutil/identifier.go:8–10  ·  view source on GitHub ↗

IsUnicodeIdentifierStart reports whether ch may begin an ECMAScript identifier, i.e. whether it has the Unicode ID_Start (or Other_ID_Start) property. The range table is generated; see generate-unicode-data.mts.

(ch rune)

Source from the content-addressed store, hash-verified

6// identifier, i.e. whether it has the Unicode ID_Start (or Other_ID_Start)
7// property. The range table is generated; see generate-unicode-data.mts.
8func IsUnicodeIdentifierStart(ch rune) bool {
9 return unicode.Is(unicodeESNextIdentifierStart, ch)
10}
11
12// IsUnicodeIdentifierPart reports whether ch may appear after the first
13// character of an ECMAScript identifier, i.e. whether it has the Unicode

Callers 1

IsIdentifierStartFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected