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

Function isASCII

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

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

Callers 1

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