MCPcopy
hub / github.com/tidwall/gjson / isSimpleName

Function isSimpleName

gjson.go:2000–2011  ·  view source on GitHub ↗
(component string)

Source from the content-addressed store, hash-verified

1998}
1999
2000func isSimpleName(component string) bool {
2001 for i := 0; i < len(component); i++ {
2002 if component[i] < ' ' {
2003 return false
2004 }
2005 switch component[i] {
2006 case '[', ']', '{', '}', '(', ')', '#', '|', '!':
2007 return false
2008 }
2009 }
2010 return true
2011}
2012
2013var hexchars = [...]byte{
2014 '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',

Callers 1

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