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

Function IsHexDigit

pkg/sql/lex/predicates.go:34–38  ·  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

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

Callers 1

scanNumberMethod · 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…