MCPcopy Create free account

hub / github.com/dlclark/regexp2 / functions

Functions1,027 in github.com/dlclark/regexp2

FunctionBenchmarkNotOnePassShortA
(b *testing.B)
regexp_performance_test.go:148
FunctionBenchmarkNotOnePassShortB
(b *testing.B)
regexp_performance_test.go:172
FunctionBenchmarkOnePassLongNotPrefix
(b *testing.B)
regexp_performance_test.go:196
FunctionBenchmarkOnePassLongPrefix
(b *testing.B)
regexp_performance_test.go:184
FunctionBenchmarkOnePassShortA
(b *testing.B)
regexp_performance_test.go:136
FunctionBenchmarkOnePassShortB
(b *testing.B)
regexp_performance_test.go:160
FunctionBenchmarkParserPrefixLongLen
(b *testing.B)
regexp_test.go:1554
FunctionBenchmarkQuickCaptureElision
(b *testing.B)
regexp_performance_test.go:356
FunctionBenchmarkRegexcmp
(b *testing.B)
regexcmp_benchmark_test.go:46
FunctionBenchmarkShortSearch
(b *testing.B)
regexp_performance_test.go:423
FunctionBenchmarkStringIndexPrefixesFilter
(b *testing.B)
stringprefixfilter_test.go:372
FunctionBenchmarkUnicodeNewlineDispatch
(b *testing.B)
regexp_performance_test.go:231
MethodByteRange
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
FunctionCompile
Compile parses a regular expression and returns a compat adapter for it.
compat/regexp.go:23
MethodDump
()
syntax/optimizations.go:222
MethodDump
Dump returns the contents of the filter as a human readable string
syntax/prefix.go:596
MethodDump
()
syntax/tree.go:2232
MethodExecute
(r *Runner)
regexp_codegen_test.go:15
MethodFind
Find returns a slice holding the text of the leftmost match in b.
compat/regexp.go:73
MethodFindAll
FindAll returns a slice of all successive matches in b.
compat/regexp.go:178
MethodFindAllString
FindAllString returns a slice of all successive matches in s.
compat/regexp.go:206
MethodFindAllStringIndex
FindAllStringIndex returns a slice of byte index pairs identifying all successive matches in s.
regexp.go:284
MethodFindAllStringIndex
FindAllStringIndex returns a slice of byte index pairs for all successive matches in s.
compat/regexp.go:218
MethodFindAllStringSubmatch
FindAllStringSubmatch returns a slice of all successive matches and their submatches in s.
compat/regexp.go:251
MethodFindAllSubmatch
FindAllSubmatch returns a slice of all successive matches and their submatches in b.
compat/regexp.go:225
MethodFindFirstChar
(r *Runner)
regexp_codegen_test.go:12
MethodFindReaderIndex
FindReaderIndex returns a two-element slice defining the byte location of the leftmost match in text read from r.
compat/regexp.go:112
MethodFindReaderSubmatchIndex
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
MethodFindRunesMatchStartingAt
FindRunesMatchStartingAt searches the input rune slice for a Regexp match starting at the startAt index
regexp.go:278
MethodFindStartingLiteral
()
syntax/tree.go:2410
MethodFindString
FindString returns a string holding the text of the leftmost match in s.
compat/regexp.go:92
MethodFindStringIndex
FindStringIndex returns a two-element slice defining the location of the leftmost match in s.
compat/regexp.go:102
MethodFindStringSubmatch
FindStringSubmatch returns a slice of strings holding the text of the leftmost match and its submatches.
compat/regexp.go:147
MethodFindSubmatch
FindSubmatch returns a slice of byte slices holding the text of the leftmost match and its submatches.
compat/regexp.go:124
FunctionFuzz
Fuzz is the input point for go-fuzz
syntax/fuzz.go:7
MethodGetIfOnlyUnicodeCategories
()
syntax/charclass.go:1396
MethodIndexOfAnyExcept
return the first index of anything except our original vals values within the slice given
helpers/searchvalues.go:50
MethodIndexOfAnyExcept
return the first index of our original vals values within the slice given
helpers/searchvalues.go:99
FunctionIndexOfAnyExcept1
(in []rune, bad rune)
helpers/indexof.go:77
FunctionIndexOfAnyExcept2
(in []rune, bad1, bad2 rune)
helpers/indexof.go:86
FunctionIndexOfAnyExcept3
(in []rune, bad1, bad2, bad3 rune)
helpers/indexof.go:96
FunctionIndexOfAnyExceptInSet
(in []rune, set syntax.CharSet)
helpers/indexof.go:127
FunctionIsBetween
(val rune, first, last rune)
helpers/runes.go:5
FunctionIsInMask64
(ch rune, mask uint64)
helpers/runes.go:44
MethodIsMatched
(cap int)
runner.go:2385
MethodIsUnicodeCategoryOfSmallCharCount
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
FunctionIsWordChar
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
FunctionLastIndexOf
(in []rune, find []rune)
helpers/indexof.go:132
MethodLastIndexOfAny
return the last index of our original vals values within the slice given
helpers/searchvalues.go:66
MethodLastIndexOfAny
return the last index of our original vals values within the slice given
helpers/searchvalues.go:105
FunctionLastIndexOfAny1
(in []rune, find rune)
helpers/indexof.go:162
MethodLastIndexOfAnyExcept
return the last index of our original vals values within the slice given
helpers/searchvalues.go:72
MethodLastIndexOfAnyExcept
return the last index of our original vals values within the slice given
helpers/searchvalues.go:110
FunctionLastIndexOfAnyExcept1
(in []rune, not rune)
helpers/indexof.go:153
FunctionLastIndexOfAnyInRange
(in []rune, first, last rune)
helpers/indexof.go:174
MethodLastIndexOfRune
(startIndex int, endIndex int, find rune)
runner.go:2296
MethodLess
(i, j int)
syntax/charclass.go:809
MethodMarshalText
MarshalText implements [encoding.TextMarshaler]. The output matches that of calling the [Regexp.String] method.
regexp.go:627
MethodMatch
Match reports whether the byte slice b contains any match of the regular expression.
compat/regexp.go:52
MethodMatchIndex
(cap int)
runner.go:2391
MethodMatchLength
(cap int)
runner.go:2388
MethodMatchReader
MatchReader reports whether text returned by r contains any match of the regular expression.
compat/regexp.go:64
FunctionMax
(a, b int)
helpers/math.go:10
FunctionMin
(a, b int)
helpers/math.go:3
FunctionNewRuneSearchValues
(vals string)
helpers/searchvalues.go:87
FunctionOptionDisableCharClassASCIIBitmap
OptionDisableCharClassASCIIBitmap disables compile-time ASCII bitmaps for character classes.
options.go:145
FunctionOptionMaxCachedReplaceBufferLength
OptionMaxCachedReplaceBufferLength limits retained replacement output buffers in the shared size-classed pool.
options.go:124
FunctionOptionMaxCachedRuneBufferLength
OptionMaxCachedRuneBufferLength limits retained string-to-rune buffers in the shared size-classed pool.
options.go:117
MethodRunes
Runes returns the captured text as a rune slice
match.go:68
MethodStackPush
(val int)
runner.go:2327
MethodStackPush2
(val1, val2 int)
runner.go:2333
MethodStackPush3
(val1, val2, val3 int)
runner.go:2341
MethodStackPushN
(vals ...int)
runner.go:2377
MethodStartsWith
(chars []rune)
helpers/searchvalues.go:147
MethodStartsWithIgnoreCase
(chars []rune)
helpers/searchvalues.go:151
MethodString
anchorDescription returns a human-readable description of the anchors
syntax/prefix.go:848
MethodString
()
syntax/charclass.go:401
MethodSwap
(i, j int)
syntax/charclass.go:810
FunctionTestAddLowercaseComplementRange
(t *testing.T)
syntax/charclass_test.go:35
FunctionTestAlternationConstAndEscape
(t *testing.T)
regexp_test.go:491
FunctionTestAlternationConstruct_Matches
(t *testing.T)
regexp_test.go:1487
FunctionTestAlternationNamedOptions_Errors
(t *testing.T)
regexp_test.go:1431
FunctionTestAlternationNamedOptions_Success
(t *testing.T)
regexp_test.go:1452
FunctionTestAnythingSet
(t *testing.T)
regexp_test.go:1909
FunctionTestAsciiSearchValues_Basic
(t *testing.T)
helpers/searchvalues_test.go:5
FunctionTestAsciiSearchValues_Boundaries
(t *testing.T)
helpers/searchvalues_test.go:29
FunctionTestAsciiSearchValues_NotAscii
(t *testing.T)
helpers/searchvalues_test.go:21
FunctionTestAsciiSearchValues_NotFound
(t *testing.T)
helpers/searchvalues_test.go:13
FunctionTestBacktrack_CatastrophicTimeout
(t *testing.T)
regexp_test.go:14
FunctionTestBacktrackingStackLimit
(t *testing.T)
regexp_optimization_test.go:12
FunctionTestBacktrackingStackLimitOverride
(t *testing.T)
regexp_optimization_test.go:45
FunctionTestBadGroupConstruct
(t *testing.T)
regexp_test.go:1621
FunctionTestBasicSplit
(t *testing.T)
split_test.go:9
FunctionTestBasicSplit_IgnoreCase
(t *testing.T)
split_test.go:20
FunctionTestCancellingClasses
(t *testing.T)
regexp_test.go:541
FunctionTestCanonicalize
(t *testing.T)
syntax/charclass_test.go:26
FunctionTestCapture_Basic
check all our functions and properties around basic capture groups and referential for Group 0
regexp_test.go:94
FunctionTestCapture_ByteOffsets
(t *testing.T)
regexp_test.go:155
FunctionTestCapture_ByteOffsetsFindNextMatch
(t *testing.T)
regexp_test.go:183
FunctionTestCapture_ByteOffsetsRightToLeft
(t *testing.T)
regexp_test.go:226
← previousnext →701–800 of 1,027, ranked by callers