MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / IsIdentStart

Function IsIdentStart

pkg/sql/lex/predicates.go:95–100  ·  view source on GitHub ↗

IsIdentStart returns true if the character is valid at the start of an identifier.

(ch int)

Source from the content-addressed store, hash-verified

93
94// IsIdentStart returns true if the character is valid at the start of an identifier.
95func IsIdentStart(ch int) bool {
96 return (ch >= 'A' && ch <= 'Z') ||
97 (ch >= 'a' && ch <= 'z') ||
98 (ch >= 128 && ch <= 255) ||
99 (ch == '_')
100}
101
102// IsIdentMiddle returns true if the character is valid inside an identifier.
103func IsIdentMiddle(ch int) bool {

Callers 4

scanMethod · 0.92
isBareIdentifierFunction · 0.85
IsIdentMiddleFunction · 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…