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

Function IsDigit

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

22
23// IsDigit returns true if the character is between 0 and 9.
24func IsDigit(ch int) bool {
25 return ch >= '0' && ch <= '9'
26}
27
28// IsHexDigit returns true if the character is a valid hexadecimal digit.
29func IsHexDigit(ch int) bool {

Callers 5

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