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

Function IsIdentStart

pkg/sql/lexbase/predicates.go:97–102  ·  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

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

Callers 5

ScanMethod · 0.92
scanNumberImplMethod · 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…