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

Function IsHexDigit

pkg/sql/lexbase/predicates.go:29–33  ·  view source on GitHub ↗

IsHexDigit returns true if the character is a valid hexadecimal digit.

(ch int)

Source from the content-addressed store, hash-verified

27
28// IsHexDigit returns true if the character is a valid hexadecimal digit.
29func IsHexDigit(ch int) bool {
30 return (ch >= '0' && ch <= '9') ||
31 (ch >= 'a' && ch <= 'f') ||
32 (ch >= 'A' && ch <= 'F')
33}
34
35// reservedOrLookaheadKeywords are the reserved keywords plus those keywords for
36// which we need one token of lookahead extra to determine their token type.

Callers 1

scanNumberImplMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…