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

Function isASCII

pkg/sql/lexbase/predicates.go:14–21  ·  view source on GitHub ↗

isASCII returns true if all the characters in s are ASCII.

(s string)

Source from the content-addressed store, hash-verified

12
13// isASCII returns true if all the characters in s are ASCII.
14func isASCII(s string) bool {
15 for _, c := range s {
16 if c > unicode.MaxASCII {
17 return false
18 }
19 }
20 return true
21}
22
23// IsDigit returns true if the character is between 0 and 9.
24func IsDigit(ch int) bool {

Callers 2

NormalizeNameFunction · 0.85
NormalizeStringFunction · 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…