MCPcopy
hub / github.com/golang/protobuf / isIdentOrNumberChar

Function isIdentOrNumberChar

proto/text_decode.go:773–785  ·  view source on GitHub ↗
(c byte)

Source from the content-addressed store, hash-verified

771}
772
773func isIdentOrNumberChar(c byte) bool {
774 switch {
775 case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z':
776 return true
777 case '0' <= c && c <= '9':
778 return true
779 }
780 switch c {
781 case '-', '+', '.', '_':
782 return true
783 }
784 return false
785}
786
787func isWhitespace(c byte) bool {
788 switch c {

Callers 1

advanceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected