MCPcopy Create free account
hub / github.com/dolthub/doltgresql / IsDigit

Function IsDigit

postgres/parser/lex/predicates.go:43–45  ·  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

41
42// IsDigit returns true if the character is between 0 and 9.
43func IsDigit(ch int) bool {
44 return ch >= '0' && ch <= '9'
45}
46
47// IsHexDigit returns true if the character is a valid hexadecimal digit.
48func 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