MCPcopy Create free account

hub / github.com/dlclark/regexp2 / functions

Functions981 in github.com/dlclark/regexp2

↓ 1 callersMethodtrackPush1
(I1 int)
runner.go:1080
↓ 1 callersMethodtrackPush2
(I1, I2 int)
runner.go:1087
↓ 1 callersMethodtrackPush3
(I1, I2, I3 int)
runner.go:1096
↓ 1 callersMethodtrackPushNeg1
(I1 int)
runner.go:1107
↓ 1 callersMethodtrackPushNeg2
(I1, I2 int)
runner.go:1114
↓ 1 callersMethodtrackpos
push onto the backtracking stack
runner.go:1051
↓ 1 callersMethodtrackto
(newpos int)
runner.go:1038
↓ 1 callersMethodtransferCapture
transferCapture captures a subexpression. Note that the capnum used here has already been mapped to a non-sparse index (by the code generator RegexWri
runner.go:2015
↓ 1 callersFunctiontryFindCaseEquivalences
Performs a fast lookup which determines if a character is involved in case conversion, as well as returns the OTHER characters that should be consider
syntax/charclass.go:734
↓ 1 callersFunctiontryFindFirstCharClass
Walks the nodes of the expression looking for any node that could possibly match the first character of a match, e.g. in `a*b*c+d`, we'd find [abc], o
syntax/prefixanalyzer.go:49
↓ 1 callersFunctiontryFindPrefix
Processes the node, adding any prefix text to the builder. Returns whether processing should continue with subsequent nodes.
syntax/prefixanalyzer.go:242
↓ 1 callersFunctiontryFindRawFixedSets
Starting from the specified root node, populates results with any characters at a fixed distance from the node's starting position. The function retu
syntax/prefixanalyzer.go:751
↓ 1 callersMethodtypeFromCode
Returns ReNode type for zero-length assertions with a \ code.
syntax/parser.go:1527
↓ 1 callersFunctionunEscapeGroup
(val string)
regexp_corpus_pcre_test.go:328
↓ 1 callersFunctionunEscapeToMatch
(line string)
regexp_corpus_pcre_test.go:270
↓ 1 callersFunctionunwrapImmediateLiteralAfterLoopNode
(node *RegexNode)
syntax/prefixanalyzer.go:1261
↓ 1 callersMethoduseOptionM
True if M option altering meaning of $ and ^ is on.
syntax/parser.go:2252
↓ 1 callersMethoduseOptionS
True if S option altering meaning of . is on.
syntax/parser.go:2257
↓ 1 callersFunctionvalidateMatch
(t *testing.T, re *Regexp, m *Match, toMatch, value string, idx, capIdx int)
regexp_corpus_pcre_test.go:152
↓ 1 callersFunctionvalidateNoMatch
(t *testing.T, re *Regexp, m *Match)
regexp_corpus_pcre_test.go:144
↓ 1 callersFunctionwhitespaceLoop
(node *RegexNode)
syntax/prefixanalyzer.go:1440
↓ 1 callersMethodwriteStrToBuf
(buf *bytes.Buffer)
syntax/tree.go:255
MethodAnalyze
<summary>Analyzes the set to determine some basic properties that can be used to optimize usage.
syntax/charclass.go:1447
FunctionBenchmarkAnchoredLiteralLongNonMatch
(b *testing.B)
regexp_performance_test.go:85
FunctionBenchmarkAnchoredLiteralShortNonMatch
* func BenchmarkReplaceAll(b *testing.B) { x := "abcdefghijklmnopqrstuvwxyz" b.StopTimer() re := MustCompile("[cjrw]", 0) b.StartTimer() for i :
regexp_performance_test.go:73
FunctionBenchmarkAnchoredLongMatch
(b *testing.B)
regexp_performance_test.go:117
FunctionBenchmarkAnchoredShortMatch
(b *testing.B)
regexp_performance_test.go:105
FunctionBenchmarkAsciiSearchValues_1K
(b *testing.B)
helpers/searchvalues_test.go:100
FunctionBenchmarkAsciiSearchValues_1M
(b *testing.B)
helpers/searchvalues_test.go:106
FunctionBenchmarkAsciiSearchValues_32
(b *testing.B)
helpers/searchvalues_test.go:97
FunctionBenchmarkAsciiSearchValues_32K
(b *testing.B)
helpers/searchvalues_test.go:103
FunctionBenchmarkAsciiSearchValues_32M
(b *testing.B)
helpers/searchvalues_test.go:109
FunctionBenchmarkFindLeadingStringsLeftToRight
(b *testing.B)
regexp_performance_test.go:295
FunctionBenchmarkLeading
(b *testing.B)
regexp_performance_test.go:364
FunctionBenchmarkLiteral
(b *testing.B)
regexp_performance_test.go:9
FunctionBenchmarkMatchClass
(b *testing.B)
regexp_performance_test.go:33
FunctionBenchmarkMatchClass_InRange
(b *testing.B)
regexp_performance_test.go:46
FunctionBenchmarkMatchEasy0_1K
(b *testing.B)
regexp_performance_test.go:256
FunctionBenchmarkMatchEasy0_1M
(b *testing.B)
regexp_performance_test.go:258
FunctionBenchmarkMatchEasy0_32
(b *testing.B)
regexp_performance_test.go:255
FunctionBenchmarkMatchEasy0_32K
(b *testing.B)
regexp_performance_test.go:257
FunctionBenchmarkMatchEasy0_32M
(b *testing.B)
regexp_performance_test.go:259
FunctionBenchmarkMatchEasy1_1K
(b *testing.B)
regexp_performance_test.go:261
FunctionBenchmarkMatchEasy1_1M
(b *testing.B)
regexp_performance_test.go:263
FunctionBenchmarkMatchEasy1_32
(b *testing.B)
regexp_performance_test.go:260
FunctionBenchmarkMatchEasy1_32K
(b *testing.B)
regexp_performance_test.go:262
FunctionBenchmarkMatchEasy1_32M
(b *testing.B)
regexp_performance_test.go:264
FunctionBenchmarkMatchHard1_1K
(b *testing.B)
regexp_performance_test.go:276
FunctionBenchmarkMatchHard1_1M
(b *testing.B)
regexp_performance_test.go:278
FunctionBenchmarkMatchHard1_32
(b *testing.B)
regexp_performance_test.go:275
FunctionBenchmarkMatchHard1_32K
(b *testing.B)
regexp_performance_test.go:277
FunctionBenchmarkMatchHard1_32M
(b *testing.B)
regexp_performance_test.go:279
FunctionBenchmarkMatchHard_1K
(b *testing.B)
regexp_performance_test.go:271
FunctionBenchmarkMatchHard_1M
(b *testing.B)
regexp_performance_test.go:273
FunctionBenchmarkMatchHard_32
(b *testing.B)
regexp_performance_test.go:270
FunctionBenchmarkMatchHard_32K
(b *testing.B)
regexp_performance_test.go:272
FunctionBenchmarkMatchHard_32M
(b *testing.B)
regexp_performance_test.go:274
FunctionBenchmarkMatchLeadingPrefixesRunes_32K
(b *testing.B)
regexp_performance_test.go:281
FunctionBenchmarkMatchMedium_1K
(b *testing.B)
regexp_performance_test.go:266
FunctionBenchmarkMatchMedium_1M
(b *testing.B)
regexp_performance_test.go:268
FunctionBenchmarkMatchMedium_32
(b *testing.B)
regexp_performance_test.go:265
FunctionBenchmarkMatchMedium_32K
(b *testing.B)
regexp_performance_test.go:267
FunctionBenchmarkMatchMedium_32M
(b *testing.B)
regexp_performance_test.go:269
FunctionBenchmarkMatchRunesLeadingSetMiss32K
(b *testing.B)
regexp_performance_test.go:335
FunctionBenchmarkMatchStringLeadingSetMiss32K
(b *testing.B)
regexp_performance_test.go:323
FunctionBenchmarkNotLiteral
(b *testing.B)
regexp_performance_test.go:21
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:1529
FunctionBenchmarkQuickCaptureElision
(b *testing.B)
regexp_performance_test.go:311
FunctionBenchmarkRegexcmp
(b *testing.B)
regexcmp_benchmark_test.go:46
FunctionBenchmarkShortSearch
(b *testing.B)
regexp_performance_test.go:378
FunctionBenchmarkStringIndexPrefixesFilter
(b *testing.B)
stringprefixfilter_test.go:372
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:593
MethodDump
()
syntax/tree.go:2120
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:282
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:276
MethodFindStartingLiteral
()
syntax/tree.go:2298
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
← previousnext →601–700 of 981, ranked by callers