MCPcopy Create free account

hub / github.com/dlclark/regexp2 / functions

Functions981 in github.com/dlclark/regexp2

↓ 1 callersFunctionoptionFromCode
(ch rune)
syntax/parser.go:26
↓ 1 callersFunctionparseRustRegexCorpusFile
(t *testing.T, file string)
regexp_corpus_rust_test.go:208
↓ 1 callersFunctionparseRustRegexInts
(raw string)
regexp_corpus_rust_test.go:397
↓ 1 callersFunctionparseRustRegexMatches
(t *testing.T, raw string)
regexp_corpus_rust_test.go:347
↓ 1 callersFunctionparseRustRegexRegexes
(t *testing.T, raw string)
regexp_corpus_rust_test.go:277
↓ 1 callersFunctionparseRustRegexStringArray
(t *testing.T, raw string)
regexp_corpus_rust_test.go:286
↓ 1 callersFunctionparseRustRegexTomlBlock
(block string)
regexp_corpus_rust_test.go:257
↓ 1 callersMethodpopGroup
Remember the pushed state (in response to a ')')
syntax/parser.go:2398
↓ 1 callersMethodpopInt
This is the pop.
syntax/prefix.go:116
↓ 1 callersFunctionpopN
(r *Runner, n int)
runner_codegen_test.go:29
↓ 1 callersMethodpopcrawl
Remove a number from the longjump unrolling stack
runner.go:1005
↓ 1 callersMethodprepareASCIIBitmap
()
syntax/charclass.go:356
↓ 1 callersMethodprocessNode
(subsequent *RegexNode)
syntax/tree.go:395
↓ 1 callersMethodprocessOneOrMulti
Remove the starting text from the one or multi node. This may end up changing the type of the node to be Empty if the starting text matches the node'
syntax/tree.go:1269
↓ 1 callersMethodpushFC
We also use a stack of RegexFC objects. This is the push.
syntax/prefix.go:123
↓ 1 callersMethodpushGroup
Push the parser state (in response to an open paren)
syntax/parser.go:2390
↓ 1 callersMethodpushInt
To avoid recursion, we use a simple integer stack. This is the push.
syntax/prefix.go:99
↓ 1 callersFunctionquote
(s string)
regexp.go:180
↓ 1 callersMethodreduceAlternation
Basic optimization. Single-letter alternations can be replaced by faster set specifications, and nested alternations with no intervening operators can
syntax/tree.go:1022
↓ 1 callersMethodreduceAtomic
Remove unnecessary atomic nodes, and make appropriate descendents of the atomic node themselves atomic. e.g. (?>(?>(?>a*))) => (?>a*) e.g. (?>(abc*)*)
syntax/tree.go:573
↓ 1 callersMethodreduceBackreferenceConditional
Optimizations for backreference conditionals.
syntax/tree.go:530
↓ 1 callersMethodreduceConcatenation
()
syntax/tree.go:1378
↓ 1 callersMethodreduceConcatenationWithAdjacentLoops
Combine adjacent loops. e.g. a*a*a* => a* e.g. a+ab => a{2,}b
syntax/tree.go:1479
↓ 1 callersMethodreduceConcatenationWithAdjacentStrings
Basic optimization. Adjacent strings can be concatenated. (?:abc)(?:def) -> abcdef
syntax/tree.go:1603
↓ 1 callersMethodreduceExpressionConditional
<summary>Optimizations for expression conditionals.</summary>
syntax/tree.go:543
↓ 1 callersMethodreduceGroup
()
syntax/tree.go:1784
↓ 1 callersMethodreduceLookaround
<summary>Optimizations for positive and negative lookaheads/behinds.</summary>
syntax/tree.go:503
↓ 1 callersMethodreduceRep
Nested repeaters just get multiplied with each other if they're not too lumpy
syntax/tree.go:1682
↓ 1 callersMethodreduceSet
Simple optimization. If a set is a singleton, an inverse singleton, or empty, it's transformed accordingly.
syntax/tree.go:1796
↓ 1 callersMethodreduceSingleLetterAndNestedAlternations
()
syntax/tree.go:1303
↓ 1 callersMethodrefmatch
(index, len int)
runner.go:1304
↓ 1 callersMethodregexFCFromRegexTree
* * The main FC computation. It does a shortcutted depth-first walk * through the tree and calls CalculateFC to emits code before * and after each
syntax/prefix.go:47
↓ 1 callersFunctionregexcmpGroupedPattern
(cases []regexcmpCase)
regexcmp_benchmark_test.go:120
↓ 1 callersFunctionregexcmpRepeats
()
regexcmp_benchmark_test.go:135
↓ 1 callersMethodremoveMatch
Nonpublic builder: removes a group match by capnum
match.go:321
↓ 1 callersMethodremoveRedundantEmptiesAndNothings
Removes unnecessary Empty and Nothing nodes from the alternation. A Nothing will never match, so it can be removed entirely, and an Empty can be remov
syntax/tree.go:1244
↓ 1 callersFunctionrepeat
repeat the rune r, c times... up to the max of MaxPrefixSize
syntax/prefix.go:375
↓ 1 callersFunctionreplaceRunnerLTR
(regex *Regexp, data *syntax.ReplacerData, input string, startAt, count int)
replace.go:147
↓ 1 callersFunctionreplaceRunnerRTL
(regex *Regexp, data *syntax.ReplacerData, input string, startAt, count int)
replace.go:218
↓ 1 callersFunctionreplacementImpl
Given a Match, emits into the StringBuilder the evaluated substitution pattern.
replace.go:296
↓ 1 callersFunctionreplacementImplRTL
(data *syntax.ReplacerData, al *[]string, m *Match)
replace.go:324
↓ 1 callersFunctionrequiredLandmarkAlternativeDescription
(alt RequiredLandmarkAlternative)
syntax/optimizations.go:325
↓ 1 callersMethodreset
(text *matchText, textstart int)
match.go:185
↓ 1 callersMethodreset
(topopts RegexOptions)
syntax/parser.go:500
↓ 1 callersMethodrightchars
()
runner.go:1224
↓ 1 callersFunctionrunClock
()
fastclock.go:122
↓ 1 callersFunctionrunRegexTrial
(t *testing.T, pattern string, options RegexOptions, input, expected string)
regexp_mono_test.go:1049
↓ 1 callersFunctionrunRustRegexCorpusTest
(t *testing.T, tc rustRegexCorpusTest)
regexp_corpus_rust_test.go:56
↓ 1 callersFunctionruneByteOffsets
(runes []rune)
match.go:137
↓ 1 callersMethodrunematch
(str []rune)
runner.go:1259
↓ 1 callersFunctionrustRegexAllMatches
(re *Regexp, input string, limit int)
regexp_corpus_rust_test.go:173
↓ 1 callersFunctionrustRegexCompileOptions
(tc rustRegexCorpusTest)
regexp_corpus_rust_test.go:92
↓ 1 callersFunctionrustRegexFromMatch
(m *Match)
regexp_corpus_rust_test.go:190
↓ 1 callersFunctionrustRegexMatchLimit
(tc rustRegexCorpusTest)
regexp_corpus_rust_test.go:163
↓ 1 callersFunctionrustRegexMatchesEqual
(a, b []rustRegexMatch)
regexp_corpus_rust_test.go:462
↓ 1 callersFunctionrustRegexNumberDepths
(raw string)
regexp_corpus_rust_test.go:413
↓ 1 callersFunctionrustRegexSkipReason
(tc rustRegexCorpusTest)
regexp_corpus_rust_test.go:107
↓ 1 callersFunctionrustRegexValueBalanced
(s string)
regexp_corpus_rust_test.go:517
↓ 1 callersMethodscanBasicBackslash
Scans \-style backreferences and character escapes
syntax/parser.go:1358
↓ 1 callersMethodscanControl
Grabs and converts an ascii control character
syntax/parser.go:2032
↓ 1 callersMethodscanDollar
* * Scans $ patterns recognized within replacement patterns */
syntax/parser.go:829
↓ 1 callersMethodscanECMACapname
()
syntax/parser.go:1600
↓ 1 callersMethodscanGroupOpen
scanGroupOpen scans chars following a '(' (not counting the '('), and returns a RegexNode for the type of group scanned, or nil if the group simply ch
syntax/parser.go:971
↓ 1 callersFunctionscanHex
(line string, idx *int)
regexp_corpus_pcre_test.go:346
↓ 1 callersFunctionscanOctal
Scans up to three octal digits (stops before exceeding 0377).
regexp_corpus_pcre_test.go:380
↓ 1 callersMethodscanOctal
Scans up to three octal digits (stops before exceeding 0377).
syntax/parser.go:2133
↓ 1 callersMethodscanPythonNamedBackref
()
syntax/parser.go:941
↓ 1 callersMethodscanRegex
()
syntax/parser.go:513
↓ 1 callersMethodscanReplacement
* * Simple parsing for replacement patterns */
syntax/parser.go:791
↓ 1 callersMethodsetCode
Returns an index in the set table for a charset uses a map to eliminate duplicates.
syntax/writer.go:439
↓ 1 callersMethodskipChild
Called in Beforechild to prevent further processing of the current child
syntax/prefix.go:151
↓ 1 callersFunctionsplitRustRegexTestBlocks
(raw string)
regexp_corpus_rust_test.go:233
↓ 1 callersFunctionsplitRustRegexTopLevelArrays
(raw string)
regexp_corpus_rust_test.go:434
↓ 1 callersMethodstackDescription
(a []int, index int)
runner.go:2078
↓ 1 callersMethodstackPeek
Technically we are actually peeking at items already popped. So if you want to get and pop the top item from the stack, you do r.stackPop(); r.stackP
runner.go:1207
↓ 1 callersMethodstackPeekN
get the ith element down on the grouping stack
runner.go:1212
↓ 1 callersMethodstackPop
()
runner.go:1194
↓ 1 callersMethodstackPopN
pop framesize items from the grouping stack
runner.go:1199
↓ 1 callersMethodstackPush
Push onto the grouping stack
runner.go:1182
↓ 1 callersMethodstackPush2
(I1, I2 int)
runner.go:1187
↓ 1 callersMethodstartGroup
Start a new round for the parser state (in response to an open paren or string start)
syntax/parser.go:2422
↓ 1 callersMethodstartTimeoutWatch
()
runner.go:2143
↓ 1 callersFunctionstopClock
stop the timeout clock in the background should only used for unit tests to abandon the background goroutine
fastclock.go:93
↓ 1 callersFunctionstringByteOffsets
(s string)
match.go:110
↓ 1 callersMethodstringCode
Returns an index in the string table for a string. uses a map to eliminate duplicates.
syntax/writer.go:459
↓ 1 callersFunctionstringHasLiteralAfterLoop
(input string, searchAt int, literal *syntax.LiteralAfterLoop)
stringprefixfilter.go:369
↓ 1 callersFunctionstripRustRegexComment
(s string)
regexp_corpus_rust_test.go:484
↓ 1 callersMethodtextPos
()
runner.go:1046
↓ 1 callersMethodtextposDescription
()
runner.go:2100
↓ 1 callersMethodtextstart
()
runner.go:1042
↓ 1 callersMethodtextto
(newpos int)
runner.go:1034
↓ 1 callersMethodtidy
(textpos int)
match.go:194
↓ 1 callersMethodtidyMatch
(quick bool)
runner.go:1972
↓ 1 callersFunctiontoRunePrefixes
(prefixes []string)
syntax/optimizations.go:582
↓ 1 callersMethodtopFC
This is the top.
syntax/prefix.go:146
↓ 1 callersMethodtrackPeek
Technically we are actually peeking at items already popped. So if you want to get and pop the top item from the stack, you do r.trackPop(); r.trackP
runner.go:1172
↓ 1 callersMethodtrackPeekN
get the ith element down on the backtracking stack
runner.go:1177
↓ 1 callersMethodtrackPop
()
runner.go:1159
↓ 1 callersMethodtrackPopN
pop framesize items from the backtracking stack
runner.go:1164
↓ 1 callersMethodtrackPush
()
runner.go:1075
← previousnext →501–600 of 981, ranked by callers