MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / isUnicodeIdentifierStart

Function isUnicodeIdentifierStart

pkg/sql/tokenizer/unicode.go:35–37  ·  view source on GitHub ↗

isUnicodeIdentifierStart checks if a rune can start a Unicode identifier. SQL identifiers in GoSQLX follow Unicode identifier rules, allowing: - Any Unicode letter (Lu, Ll, Lt, Lm, Lo categories) - Underscore (_) This enables international SQL processing with identifiers in any language. Examples

(r rune)

Source from the content-addressed store, hash-verified

33//
34// Returns true if the rune can start an identifier, false otherwise.
35func isUnicodeIdentifierStart(r rune) bool {
36 return unicode.IsLetter(r) || r == '_'
37}
38
39// isUnicodeIdentifierPart checks if a rune can be part of a Unicode identifier.
40//

Callers 1

isIdentifierStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected