MCPcopy Create free account
hub / github.com/dlclark/regexp2 / isASCIIString

Function isASCIIString

stringprefixfilter.go:491–498  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

489}
490
491func isASCIIString(s string) bool {
492 for i := 0; i < len(s); i++ {
493 if s[i] >= utf8.RuneSelf {
494 return false
495 }
496 }
497 return true
498}

Calls

no outgoing calls

Tested by

no test coverage detected