MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / isNameByte

Function isNameByte

opensca/sca/java/xml/xml.go:1221–1226  ·  view source on GitHub ↗
(c byte)

Source from the content-addressed store, hash-verified

1219}
1220
1221func isNameByte(c byte) bool {
1222 return 'A' <= c && c <= 'Z' ||
1223 'a' <= c && c <= 'z' ||
1224 '0' <= c && c <= '9' ||
1225 c == '_' || c == ':' || c == '.' || c == '-'
1226}
1227
1228func isName(s []byte) bool {
1229 if len(s) == 0 {

Callers 1

readNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected