MCPcopy Create free account
hub / github.com/cel-expr/cel-go / lowerASCII

Function lowerASCII

ext/strings.go:720–729  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

718}
719
720func lowerASCII(str string) (string, error) {
721 runes := []rune(str)
722 for i, r := range runes {
723 if r <= unicode.MaxASCII {
724 r = unicode.ToLower(r)
725 runes[i] = r
726 }
727 }
728 return string(runes), nil
729}
730
731func replace(str, old, new string) (string, error) {
732 return strings.ReplaceAll(str, old, new), nil

Callers 1

CompileOptionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected