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

Function IsUnicodeIdentifierPart

internal/stringutil/identifier.go:15–17  ·  view source on GitHub ↗

IsUnicodeIdentifierPart reports whether ch may appear after the first character of an ECMAScript identifier, i.e. whether it has the Unicode ID_Continue (or Other_ID_Continue) property, which also includes ID_Start.

(ch rune)

Source from the content-addressed store, hash-verified

13// character of an ECMAScript identifier, i.e. whether it has the Unicode
14// ID_Continue (or Other_ID_Continue) property, which also includes ID_Start.
15func IsUnicodeIdentifierPart(ch rune) bool {
16 return unicode.Is(unicodeESNextIdentifierPart, ch)
17}

Callers 1

IsIdentifierPartExFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected