MCPcopy Create free account
hub / github.com/a-h/lexical / StringInsensitive

Function StringInsensitive

parse/string.go:29–33  ·  view source on GitHub ↗

StringInsensitive tests whether the string is present, but ignoring string casing.

(s string)

Source from the content-addressed store, hash-verified

27
28// StringInsensitive tests whether the string is present, but ignoring string casing.
29func StringInsensitive(s string) Function {
30 return func(pi Input) Result {
31 return parseStringInsensitive(pi, s)
32 }
33}
34
35func parseStringInsensitive(pi Input, s string) Result {
36 name := "stringinsensitive: '" + s + "'"

Callers 1

TestStringInsensitiveFunction · 0.85

Calls 1

parseStringInsensitiveFunction · 0.85

Tested by 1

TestStringInsensitiveFunction · 0.68