MCPcopy Create free account

hub / github.com/tidwall/match / functions

Functions23 in github.com/tidwall/match

↓ 25 callersFunctionMatch
Match returns true if str matches pattern. This is a very simple wildcard match where '*' matches on any number characters and '?' matches on any one
match.go:22
↓ 5 callersFunctionMatchNoCase
MatchNoCase is the same as Match but performs a case-insensitive match. Such that string "Hello World" with match with lower case pattern "hello*"
match.go:28
↓ 5 callersFunctiontestAllowable
(pattern, exmin, exmax string)
match_test.go:383
↓ 4 callersFunctiontolower
(r rune)
match.go:78
↓ 3 callersFunctionMatchLimit
MatchLimit is the same as Match but will limit the complexity of the match operation. This is to avoid long running matches, specifically to avoid ReD
match.go:48
↓ 2 callersFunctionIsPattern
IsPattern returns true if the string is a pattern.
match.go:266
↓ 2 callersFunctionmatch
(str, pat string, slen int, counter *int, maxcomp int, nocase bool, )
match.go:85
↓ 2 callersFunctionmatch0
(str, pattern string, nocase bool)
match.go:32
↓ 2 callersFunctionmatchLimit0
(str, pattern string, maxcomp int, nocase bool, )
match.go:57
↓ 2 callersFunctionmatchTrimSuffix
matchTrimSuffix matches and trims any non-wildcard suffix characters. Returns the trimed string and pattern. This is called because the pattern conta
match.go:186
↓ 1 callersFunctionAllowable
Allowable parses the pattern and determines the minimum and maximum allowable values that the pattern can represent. When the max cannot be determined
match.go:226
FunctionBenchmarkAscii
(t *testing.B)
match_test.go:429
FunctionBenchmarkUnicode
(t *testing.B)
match_test.go:437
FunctionMatchLimitNoCase
(str, pattern string, maxcomp int, )
match.go:52
FunctionTestAllowable
(t *testing.T)
match_test.go:391
FunctionTestIsPattern
(t *testing.T)
match_test.go:409
FunctionTestLimit
(t *testing.T)
match_test.go:467
FunctionTestLotsaStars
(t *testing.T)
match_test.go:445
FunctionTestMatch
(t *testing.T)
match_test.go:12
FunctionTestNoCase
(t *testing.T)
match_test.go:507
FunctionTestRandomInput
(t *testing.T)
match_test.go:369
FunctionTestSuffix
(t *testing.T)
match_test.go:486
FunctionTestWildcardMatch
TestWildcardMatch - Tests validate the logic of wild card matching. `WildcardMatch` supports '*' and '?' wildcards. Sample usage: In resource matching
match_test.go:66