Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tidwall/match
/ functions
Functions
23 in github.com/tidwall/match
⨍
Functions
23
◇
Types & classes
1
↓ 25 callers
Function
Match
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 callers
Function
MatchNoCase
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 callers
Function
testAllowable
(pattern, exmin, exmax string)
match_test.go:383
↓ 4 callers
Function
tolower
(r rune)
match.go:78
↓ 3 callers
Function
MatchLimit
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 callers
Function
IsPattern
IsPattern returns true if the string is a pattern.
match.go:266
↓ 2 callers
Function
match
(str, pat string, slen int, counter *int, maxcomp int, nocase bool, )
match.go:85
↓ 2 callers
Function
match0
(str, pattern string, nocase bool)
match.go:32
↓ 2 callers
Function
matchLimit0
(str, pattern string, maxcomp int, nocase bool, )
match.go:57
↓ 2 callers
Function
matchTrimSuffix
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 callers
Function
Allowable
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
Function
BenchmarkAscii
(t *testing.B)
match_test.go:429
Function
BenchmarkUnicode
(t *testing.B)
match_test.go:437
Function
MatchLimitNoCase
(str, pattern string, maxcomp int, )
match.go:52
Function
TestAllowable
(t *testing.T)
match_test.go:391
Function
TestIsPattern
(t *testing.T)
match_test.go:409
Function
TestLimit
(t *testing.T)
match_test.go:467
Function
TestLotsaStars
(t *testing.T)
match_test.go:445
Function
TestMatch
(t *testing.T)
match_test.go:12
Function
TestNoCase
(t *testing.T)
match_test.go:507
Function
TestRandomInput
(t *testing.T)
match_test.go:369
Function
TestSuffix
(t *testing.T)
match_test.go:486
Function
TestWildcardMatch
TestWildcardMatch - Tests validate the logic of wild card matching. `WildcardMatch` supports '*' and '?' wildcards. Sample usage: In resource matching
match_test.go:66