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

Function IsDigit

pkg/sql/lex/predicates.go:29–31  ·  view source on GitHub ↗

IsDigit returns true if the character is between 0 and 9.

(ch int)

Source from the content-addressed store, hash-verified

27
28// IsDigit returns true if the character is between 0 and 9.
29func IsDigit(ch int) bool {
30 return ch >= '0' && ch <= '9'
31}
32
33// IsHexDigit returns true if the character is a valid hexadecimal digit.
34func IsHexDigit(ch int) bool {

Callers 4

scanMethod · 0.92
scanNumberMethod · 0.92
scanPlaceholderMethod · 0.92
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…