Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dlclark/regexp2
/ functions
Functions
1,027 in github.com/dlclark/regexp2
⨍
Functions
1,027
◇
Types & classes
78
Function
BenchmarkNotOnePassShortA
(b *testing.B)
regexp_performance_test.go:148
Function
BenchmarkNotOnePassShortB
(b *testing.B)
regexp_performance_test.go:172
Function
BenchmarkOnePassLongNotPrefix
(b *testing.B)
regexp_performance_test.go:196
Function
BenchmarkOnePassLongPrefix
(b *testing.B)
regexp_performance_test.go:184
Function
BenchmarkOnePassShortA
(b *testing.B)
regexp_performance_test.go:136
Function
BenchmarkOnePassShortB
(b *testing.B)
regexp_performance_test.go:160
Function
BenchmarkParserPrefixLongLen
(b *testing.B)
regexp_test.go:1554
Function
BenchmarkQuickCaptureElision
(b *testing.B)
regexp_performance_test.go:356
Function
BenchmarkRegexcmp
(b *testing.B)
regexcmp_benchmark_test.go:46
Function
BenchmarkShortSearch
(b *testing.B)
regexp_performance_test.go:423
Function
BenchmarkStringIndexPrefixesFilter
(b *testing.B)
stringprefixfilter_test.go:372
Function
BenchmarkUnicodeNewlineDispatch
(b *testing.B)
regexp_performance_test.go:231
Method
ByteRange
ByteRange returns the UTF-8 byte index and byte length of the captured substring. The first call lazily caches byte offsets on shared match text, so i
match.go:76
Function
Compile
Compile parses a regular expression and returns a compat adapter for it.
compat/regexp.go:23
Method
Dump
()
syntax/optimizations.go:222
Method
Dump
Dump returns the contents of the filter as a human readable string
syntax/prefix.go:596
Method
Dump
()
syntax/tree.go:2232
Method
Execute
(r *Runner)
regexp_codegen_test.go:15
Method
Find
Find returns a slice holding the text of the leftmost match in b.
compat/regexp.go:73
Method
FindAll
FindAll returns a slice of all successive matches in b.
compat/regexp.go:178
Method
FindAllString
FindAllString returns a slice of all successive matches in s.
compat/regexp.go:206
Method
FindAllStringIndex
FindAllStringIndex returns a slice of byte index pairs identifying all successive matches in s.
regexp.go:284
Method
FindAllStringIndex
FindAllStringIndex returns a slice of byte index pairs for all successive matches in s.
compat/regexp.go:218
Method
FindAllStringSubmatch
FindAllStringSubmatch returns a slice of all successive matches and their submatches in s.
compat/regexp.go:251
Method
FindAllSubmatch
FindAllSubmatch returns a slice of all successive matches and their submatches in b.
compat/regexp.go:225
Method
FindFirstChar
(r *Runner)
regexp_codegen_test.go:12
Method
FindReaderIndex
FindReaderIndex returns a two-element slice defining the byte location of the leftmost match in text read from r.
compat/regexp.go:112
Method
FindReaderSubmatchIndex
FindReaderSubmatchIndex returns a slice holding the byte index pairs of the leftmost match and its submatches in text read from r.
compat/regexp.go:167
Method
FindRunesMatchStartingAt
FindRunesMatchStartingAt searches the input rune slice for a Regexp match starting at the startAt index
regexp.go:278
Method
FindStartingLiteral
()
syntax/tree.go:2410
Method
FindString
FindString returns a string holding the text of the leftmost match in s.
compat/regexp.go:92
Method
FindStringIndex
FindStringIndex returns a two-element slice defining the location of the leftmost match in s.
compat/regexp.go:102
Method
FindStringSubmatch
FindStringSubmatch returns a slice of strings holding the text of the leftmost match and its submatches.
compat/regexp.go:147
Method
FindSubmatch
FindSubmatch returns a slice of byte slices holding the text of the leftmost match and its submatches.
compat/regexp.go:124
Function
Fuzz
Fuzz is the input point for go-fuzz
syntax/fuzz.go:7
Method
GetIfOnlyUnicodeCategories
()
syntax/charclass.go:1396
Method
IndexOfAnyExcept
return the first index of anything except our original vals values within the slice given
helpers/searchvalues.go:50
Method
IndexOfAnyExcept
return the first index of our original vals values within the slice given
helpers/searchvalues.go:99
Function
IndexOfAnyExcept1
(in []rune, bad rune)
helpers/indexof.go:77
Function
IndexOfAnyExcept2
(in []rune, bad1, bad2 rune)
helpers/indexof.go:86
Function
IndexOfAnyExcept3
(in []rune, bad1, bad2, bad3 rune)
helpers/indexof.go:96
Function
IndexOfAnyExceptInSet
(in []rune, set syntax.CharSet)
helpers/indexof.go:127
Function
IsBetween
(val rune, first, last rune)
helpers/runes.go:5
Function
IsInMask64
(ch rune, mask uint64)
helpers/runes.go:44
Method
IsMatched
(cap int)
runner.go:2385
Method
IsUnicodeCategoryOfSmallCharCount
Gets whether the specified set is a named set with a reasonably small count of Unicode characters. Designed to help the regexp code generator choose a
syntax/charclass.go:1301
Function
IsWordChar
According to UTS#18 Unicode Regular Expressions (http://www.unicode.org/reports/tr18/) RL 1.4 Simple Word Boundaries The class of <word_character> in
helpers/runes.go:19
Function
LastIndexOf
(in []rune, find []rune)
helpers/indexof.go:132
Method
LastIndexOfAny
return the last index of our original vals values within the slice given
helpers/searchvalues.go:66
Method
LastIndexOfAny
return the last index of our original vals values within the slice given
helpers/searchvalues.go:105
Function
LastIndexOfAny1
(in []rune, find rune)
helpers/indexof.go:162
Method
LastIndexOfAnyExcept
return the last index of our original vals values within the slice given
helpers/searchvalues.go:72
Method
LastIndexOfAnyExcept
return the last index of our original vals values within the slice given
helpers/searchvalues.go:110
Function
LastIndexOfAnyExcept1
(in []rune, not rune)
helpers/indexof.go:153
Function
LastIndexOfAnyInRange
(in []rune, first, last rune)
helpers/indexof.go:174
Method
LastIndexOfRune
(startIndex int, endIndex int, find rune)
runner.go:2296
Method
Less
(i, j int)
syntax/charclass.go:809
Method
MarshalText
MarshalText implements [encoding.TextMarshaler]. The output matches that of calling the [Regexp.String] method.
regexp.go:627
Method
Match
Match reports whether the byte slice b contains any match of the regular expression.
compat/regexp.go:52
Method
MatchIndex
(cap int)
runner.go:2391
Method
MatchLength
(cap int)
runner.go:2388
Method
MatchReader
MatchReader reports whether text returned by r contains any match of the regular expression.
compat/regexp.go:64
Function
Max
(a, b int)
helpers/math.go:10
Function
Min
(a, b int)
helpers/math.go:3
Function
NewRuneSearchValues
(vals string)
helpers/searchvalues.go:87
Function
OptionDisableCharClassASCIIBitmap
OptionDisableCharClassASCIIBitmap disables compile-time ASCII bitmaps for character classes.
options.go:145
Function
OptionMaxCachedReplaceBufferLength
OptionMaxCachedReplaceBufferLength limits retained replacement output buffers in the shared size-classed pool.
options.go:124
Function
OptionMaxCachedRuneBufferLength
OptionMaxCachedRuneBufferLength limits retained string-to-rune buffers in the shared size-classed pool.
options.go:117
Method
Runes
Runes returns the captured text as a rune slice
match.go:68
Method
StackPush
(val int)
runner.go:2327
Method
StackPush2
(val1, val2 int)
runner.go:2333
Method
StackPush3
(val1, val2, val3 int)
runner.go:2341
Method
StackPushN
(vals ...int)
runner.go:2377
Method
StartsWith
(chars []rune)
helpers/searchvalues.go:147
Method
StartsWithIgnoreCase
(chars []rune)
helpers/searchvalues.go:151
Method
String
anchorDescription returns a human-readable description of the anchors
syntax/prefix.go:848
Method
String
()
syntax/charclass.go:401
Method
Swap
(i, j int)
syntax/charclass.go:810
Function
TestAddLowercaseComplementRange
(t *testing.T)
syntax/charclass_test.go:35
Function
TestAlternationConstAndEscape
(t *testing.T)
regexp_test.go:491
Function
TestAlternationConstruct_Matches
(t *testing.T)
regexp_test.go:1487
Function
TestAlternationNamedOptions_Errors
(t *testing.T)
regexp_test.go:1431
Function
TestAlternationNamedOptions_Success
(t *testing.T)
regexp_test.go:1452
Function
TestAnythingSet
(t *testing.T)
regexp_test.go:1909
Function
TestAsciiSearchValues_Basic
(t *testing.T)
helpers/searchvalues_test.go:5
Function
TestAsciiSearchValues_Boundaries
(t *testing.T)
helpers/searchvalues_test.go:29
Function
TestAsciiSearchValues_NotAscii
(t *testing.T)
helpers/searchvalues_test.go:21
Function
TestAsciiSearchValues_NotFound
(t *testing.T)
helpers/searchvalues_test.go:13
Function
TestBacktrack_CatastrophicTimeout
(t *testing.T)
regexp_test.go:14
Function
TestBacktrackingStackLimit
(t *testing.T)
regexp_optimization_test.go:12
Function
TestBacktrackingStackLimitOverride
(t *testing.T)
regexp_optimization_test.go:45
Function
TestBadGroupConstruct
(t *testing.T)
regexp_test.go:1621
Function
TestBasicSplit
(t *testing.T)
split_test.go:9
Function
TestBasicSplit_IgnoreCase
(t *testing.T)
split_test.go:20
Function
TestCancellingClasses
(t *testing.T)
regexp_test.go:541
Function
TestCanonicalize
(t *testing.T)
syntax/charclass_test.go:26
Function
TestCapture_Basic
check all our functions and properties around basic capture groups and referential for Group 0
regexp_test.go:94
Function
TestCapture_ByteOffsets
(t *testing.T)
regexp_test.go:155
Function
TestCapture_ByteOffsetsFindNextMatch
(t *testing.T)
regexp_test.go:183
Function
TestCapture_ByteOffsetsRightToLeft
(t *testing.T)
regexp_test.go:226
← previous
next →
701–800 of 1,027, ranked by callers