MCPcopy Create free account

hub / github.com/dlclark/regexp2 / functions

Functions1,027 in github.com/dlclark/regexp2

↓ 1 callersFunctionleadingPrefixFirstRunes
(prefixes [][]rune)
syntax/optimizations.go:593
↓ 1 callersMethodleftchars
()
runner.go:1304
↓ 1 callersFunctionliteralAfterLoopDescription
(literal *LiteralAfterLoop)
syntax/optimizations.go:285
↓ 1 callersFunctionmakeQuickCode
(code *syntax.Code)
regexp.go:123
↓ 1 callersFunctionmakeText
(n int)
helpers/searchvalues_test.go:60
↓ 1 callersMethodmatchPattern
(text []rune, index int)
syntax/prefix.go:748
↓ 1 callersFunctionmatchRuneIndexes
(m *regexp2.Match, offsets []int)
compat/regexp.go:332
↓ 1 callersFunctionmatchString
(t *testing.T, re *Regexp, toMatch string)
regexp_corpus_pcre_test.go:241
↓ 1 callersMethodmatchString
(s string)
regexp.go:448
↓ 1 callersFunctionmatchSummary
(m *Match)
regexp_optimization_test.go:506
↓ 1 callersFunctionmaxLessThanTwiceMin
(max, min int)
syntax/tree.go:1559
↓ 1 callersFunctionmayContainCaseInsensitiveMatching
(node *RegexNode)
syntax/prefixanalyzer.go:1062
↓ 1 callersFunctionmayOverlapByEnumeration
(set1, set2 *CharSet)
syntax/charclass.go:1191
↓ 1 callersFunctionmultiplyMaxLength
(x, y int)
syntax/tree.go:1546
↓ 1 callersFunctionmultiplyMinLength
(x, y int)
syntax/tree.go:1528
↓ 1 callersFunctionnewASCIISetStringScanner
(set syntax.FixedDistanceSet)
stringprefixfilter.go:70
↓ 1 callersFunctionnewBmPrefix
(pattern []rune, caseInsensitive, rightToLeft bool)
syntax/prefix.go:415
↓ 1 callersFunctionnewCapture
(text *matchText, runeIndex, runeLength int)
match.go:411
↓ 1 callersFunctionnewEngineRegexp
(pattern string, c compileConfig, engine RuntimeEngineData)
regexp_codegen.go:32
↓ 1 callersFunctionnewFindOptimizations
(tree *RegexTree, opt ParseOptions)
syntax/optimizations.go:344
↓ 1 callersFunctionnewFindOptimizationsForNode
(root *RegexNode, opt ParseOptions, isLeadingPartial bool)
syntax/optimizations.go:363
↓ 1 callersFunctionnewGroup
(name string, text *matchText, caps []int, capcount int)
match.go:395
↓ 1 callersFunctionnewMatchSparse
(regex *Regexp, caps map[int]int, capcount int, text *matchText, startpos int)
match.go:179
↓ 1 callersFunctionnewRegexFc
(ch rune, not, nullable, caseInsensitive bool)
syntax/prefix.go:268
↓ 1 callersFunctionnewReplacerDataCache
(maxSize int)
regexp.go:668
↓ 1 callersFunctionnewStringByteMapper
(s string)
regexp.go:392
↓ 1 callersFunctionnewUnicodeNewlineNode
newUnicodeNewlineNode constructs \R from existing general-purpose nodes. Its branches have disjoint starting sets, and the optional LF is atomic, so r
syntax/parser.go:1397
↓ 1 callersFunctionnewWriter
(quickCaptureSlots []bool)
syntax/writer.go:37
↓ 1 callersFunctionnormalizeUnicodeCategoryAlias
(catName string)
syntax/charclass.go:640
↓ 1 callersMethodnoteCaptureName
(name string, pos int)
syntax/parser.go:219
↓ 1 callersMethodoperand
(i int)
runner.go:1300
↓ 1 callersFunctionoperatorDescription
(op InstOp)
syntax/code.go:244
↓ 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 callersMethodpatchDispatchBranch
(node *RegexNode, branch, target int)
syntax/writer.go:562
↓ 1 callersMethodpopGroup
Remember the pushed state (in response to a ')')
syntax/parser.go:2553
↓ 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:1073
↓ 1 callersMethodprepareASCIIBitmap
()
syntax/charclass.go:356
↓ 1 callersMethodprocessNode
(subsequent *RegexNode)
syntax/tree.go:397
↓ 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:1378
↓ 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:2545
↓ 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:182
↓ 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:1131
↓ 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:575
↓ 1 callersMethodreduceBackreferenceConditional
Optimizations for backreference conditionals.
syntax/tree.go:532
↓ 1 callersMethodreduceConcatenation
()
syntax/tree.go:1487
↓ 1 callersMethodreduceConcatenationWithAdjacentLoops
Combine adjacent loops. e.g. a*a*a* => a* e.g. a+ab => a{2,}b
syntax/tree.go:1588
↓ 1 callersMethodreduceConcatenationWithAdjacentStrings
Basic optimization. Adjacent strings can be concatenated. (?:abc)(?:def) -> abcdef
syntax/tree.go:1712
↓ 1 callersMethodreduceExpressionConditional
<summary>Optimizations for expression conditionals.</summary>
syntax/tree.go:545
↓ 1 callersMethodreduceGroup
()
syntax/tree.go:1893
↓ 1 callersMethodreduceLookaround
<summary>Optimizations for positive and negative lookaheads/behinds.</summary>
syntax/tree.go:505
↓ 1 callersMethodreduceRep
Nested repeaters just get multiplied with each other if they're not too lumpy
syntax/tree.go:1791
↓ 1 callersMethodreduceSet
Simple optimization. If a set is a singleton, an inverse singleton, or empty, it's transformed accordingly.
syntax/tree.go:1905
↓ 1 callersMethodreduceSingleLetterAndNestedAlternations
()
syntax/tree.go:1412
↓ 1 callersMethodrefmatch
(index, len int)
runner.go:1388
↓ 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:1353
↓ 1 callersFunctionrepeat
repeat the rune r, c times... up to the max of MaxPrefixSize
syntax/prefix.go:378
↓ 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:210
↓ 1 callersFunctionreplacementImpl
Given a Match, emits into the StringBuilder the evaluated substitution pattern.
replace.go:280
↓ 1 callersFunctionreplacementImplRTL
(data *syntax.ReplacerData, al *[]string, m *Match)
replace.go:308
↓ 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 callersMethodrestoreLastUnit
restoreLastUnit makes an immediately preceding literal quantifiable again when an empty \Q\E appears between it and its quantifier.
syntax/parser.go:2437
↓ 1 callersMethodrightchars
()
runner.go:1308
↓ 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:1343
↓ 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:1447
↓ 1 callersMethodscanControl
Grabs and converts an ascii control character
syntax/parser.go:2144
↓ 1 callersMethodscanDollar
* * Scans $ patterns recognized within replacement patterns */
syntax/parser.go:835
↓ 1 callersMethodscanECMACapname
()
syntax/parser.go:1689
↓ 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:977
↓ 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:2245
← previousnext →501–600 of 1,027, ranked by callers