MCPcopy Index your code
hub / github.com/ent/ent / isNumber

Function isNumber

dialect/sql/sqljson/sqljson.go:702–709  ·  view source on GitHub ↗

isNumber reports whether the string is a number (category N).

(s string)

Source from the content-addressed store, hash-verified

700
701// isNumber reports whether the string is a number (category N).
702func isNumber(s string) bool {
703 for _, r := range s {
704 if !unicode.IsNumber(r) {
705 return false
706 }
707 }
708 return true
709}
710
711// allString reports if the slice contains only strings.
712func allString(v []any) bool {

Callers 2

ParsePathFunction · 0.85
isJSONIdxFunction · 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…