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

Function isASCIIString

stringprefixfilter.go:458–465  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

456}
457
458func isASCIIString(s string) bool {
459 for i := 0; i < len(s); i++ {
460 if s[i] >= utf8.RuneSelf {
461 return false
462 }
463 }
464 return true
465}

Callers 5

indexOfLiteralAfterLoopFunction · 0.85
stringIndexPrefixFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected