MCPcopy Create free account

hub / github.com/dlclark/regexp2 / functions

Functions981 in github.com/dlclark/regexp2

↓ 1 callersMethodemptyStack
Returns true if the stack is empty.
syntax/writer.go:412
↓ 1 callersFunctionequalInts
(left, right []int)
runner_codegen_test.go:37
↓ 1 callersFunctionexecuteDefault
(r *Runner)
runner.go:218
↓ 1 callersFunctionextendClock
extendClock ensures that clock is live and will run until at least end.
fastclock.go:71
↓ 1 callersMethodextractCommonPrefixOneNotoneSet
This function optimizes out prefix nodes from alternation branches that are the same across multiple contiguous branches. e.g. \w12|\d34|\d56|\w78|\w9
syntax/tree.go:1168
↓ 1 callersMethodextractCommonPrefixText
Analyzes all the branches of the alternation for text that's identical at the beginning of every branch. That text is then pulled out into its own on
syntax/tree.go:1053
↓ 1 callersFunctionextractRequiredLandmark
(node *RegexNode)
syntax/prefixanalyzer.go:1342
↓ 1 callersFunctionextractRequiredLandmarkAlternative
(node *RegexNode)
syntax/prefixanalyzer.go:1367
↓ 1 callersMethodfcIsEmpty
True if the stack is empty.
syntax/prefix.go:135
↓ 1 callersMethodfinalOptimize
Performs additional optimizations on an entire tree prior to being used. Some optimizations are performed by the parser while parsing, and others are
syntax/tree.go:304
↓ 1 callersMethodfindAndMakeLoopsAtomic
Finds {one/notone/set}loop nodes in the concatenation that can be automatically upgraded to {one/notone/set}loopatomic nodes. Such changes avoid pote
syntax/tree.go:372
↓ 1 callersFunctionfindFixedDistanceCharLeftToRight
(r *Runner, ch rune, distance int)
runner.go:1615
↓ 1 callersFunctionfindFixedDistanceSets
arbitrary cut-off to avoid generating lots of sets unnecessarily Finds sets at fixed-offsets from the beginning of the pattern/</summary> set "thoroug
syntax/prefixanalyzer.go:696
↓ 1 callersFunctionfindFixedDistanceSetsLeftToRight
(r *Runner, sets []syntax.FixedDistanceSet)
runner.go:1667
↓ 1 callersFunctionfindFixedDistanceString
Analyzes a list of fixed-distance sets to extract a case-sensitive string at a fixed distance.</summary>
syntax/optimizations.go:632
↓ 1 callersFunctionfindFixedDistanceStringLeftToRight
(r *Runner, literal []rune, distance int)
runner.go:1639
↓ 1 callersFunctionfindLeadingOrTrailingAnchor
(node *RegexNode, leading bool)
syntax/prefix.go:880
↓ 1 callersFunctionfindLeadingPositiveLookahead
Returns a leading positive lookahead if found and whether to keep examining subsequent nodes in a concatenation.
syntax/prefixanalyzer.go:1453
↓ 1 callersFunctionfindLeadingStringLeftToRight
(r *Runner, prefix []rune, ignoreCase bool)
runner.go:1522
↓ 1 callersFunctionfindLiteralAfterLoopLeftToRight
(r *Runner, literal *syntax.LiteralAfterLoop)
runner.go:1697
↓ 1 callersFunctionfindLiteralFollowingLeadingLoop
The above table was generated programmatically with the following. This can be augmented to incorporate additional data sources, though it is only in
syntax/prefixanalyzer.go:1146
↓ 1 callersFunctionfindNextRequiredLandmarkRunes
(input []rune, startAt, endAt int, landmark syntax.RequiredLandmark)
runner.go:1772
↓ 1 callersFunctionfindPrefixesCore
Updates the results list with found prefixes. All existing strings in the list are treated as existing discovered prefixes prior to the node being pro
syntax/prefixanalyzer.go:446
↓ 1 callersFunctionfindRequiredLandmarkChain
(node *RegexNode)
syntax/prefixanalyzer.go:1277
↓ 1 callersFunctionfindRequiredLandmarkChainLeftToRight
(r *Runner, chain *syntax.RequiredLandmarkChain)
runner.go:1725
↓ 1 callersFunctionfindTrailingFixedLengthEnd
(r *Runner, fixedLength int)
runner.go:1512
↓ 1 callersFunctionfixedDistanceSetDescription
(set FixedDistanceSet)
syntax/optimizations.go:272
↓ 1 callersFunctionfixedDistanceSetsMatchAt
(r *Runner, sets []syntax.FixedDistanceSet, start int)
runner.go:1879
↓ 1 callersMethodget
(neededSize, maxSize int)
bufferpool.go:38
↓ 1 callersFunctiongetAnchors
(tree *RegexTree)
syntax/prefix.go:782
↓ 1 callersFunctiongetCharSetFromCategoryString
(negateSet bool, negateCat bool, cats ...string)
syntax/charclass.go:97
↓ 1 callersFunctiongetCharSetFromOldString
(setText []rune, negate bool)
syntax/charclass.go:116
↓ 1 callersFunctiongetEngineRegexp
(pattern string, c compileConfig)
regexp_codegen.go:52
↓ 1 callersFunctiongetFindMode
(rtl bool, t NodeType)
syntax/optimizations.go:603
↓ 1 callersMethodgetFirstChars
()
syntax/prefix.go:283
↓ 1 callersFunctiongetFirstCharsPrefix
It takes a RegexTree and computes the set of chars that can start it.
syntax/prefix.go:18
↓ 1 callersFunctiongetPrefix
This is a related computation: it takes a RegexTree and computes the leading substring if it sees one. It's quite trivial and gives up easily.
syntax/prefix.go:318
↓ 1 callersFunctiongetRangeLength
(r *SingleRange, negated bool)
syntax/prefixanalyzer.go:1014
↓ 1 callersMethodgetReplacerData
(replacement string)
regexp.go:208
↓ 1 callersFunctiongetRunes
(s string)
regexp.go:545
↓ 1 callersMethodgoTo
(newpos int)
runner.go:1021
↓ 1 callersMethodgrowTrack
()
runner.go:1055
↓ 1 callersFunctionhasHighFrequencyChars
(set FixedDistanceSet)
syntax/prefixanalyzer.go:1037
↓ 1 callersFunctionhexDigit
Returns n <= 0xF for a hex digit.
regexp_corpus_pcre_test.go:362
↓ 1 callersMethodindex
(input string)
stringprefixfilter.go:128
↓ 1 callersFunctionindexASCIIByteIgnoreCase
(s string, ch byte)
helpers/indexof.go:270
↓ 1 callersFunctionindexOfAnyRunes
(input, find []rune)
runner.go:1600
↓ 1 callersFunctionindexOfLiteralAfterLoop
(r *Runner, literal *syntax.LiteralAfterLoop, searchStart int)
runner.go:1823
↓ 1 callersFunctionindexOfSet
(chars []rune, set syntax.FixedDistanceSet)
runner.go:1861
↓ 1 callersMethodinitMatch
(textInfo *matchText)
runner.go:1922
↓ 1 callersMethodinitTrackCount
()
runner.go:2158
↓ 1 callersMethodintIsEmpty
True if the stack is empty.
syntax/prefix.go:111
↓ 1 callersFunctionisASCIIRunes
(in []rune)
runner.go:1852
↓ 1 callersFunctionisAsciiRunes
(in []rune)
syntax/charclass.go:1374
↓ 1 callersFunctionisOnlyTopOption
Returns true for options allowed only at the top level
syntax/parser.go:1938
↓ 1 callersFunctionisQuantifier
Returns true for those characters that begin a quantifier.
syntax/parser.go:2477
↓ 1 callersFunctionisRustRegexQuote
(c byte)
regexp_corpus_rust_test.go:550
↓ 1 callersFunctionisSpace
(ch rune)
syntax/parser.go:2462
↓ 1 callersFunctionisSpecial
Returns true for those characters that terminate a string of ordinary chars.
syntax/parser.go:2467
↓ 1 callersFunctionisStopperX
Returns true for those characters that terminate a string of ordinary chars.
syntax/parser.go:2472
↓ 1 callersMethodisTrueQuantifier
()
syntax/parser.go:2481
↓ 1 callersFunctionisUnboundedSetLoop
(node *RegexNode)
syntax/prefixanalyzer.go:1335
↓ 1 callersMethodisUseful
()
syntax/optimizations.go:578
↓ 1 callersFunctionisZeroWidthLandmarkGap
(node *RegexNode)
syntax/prefixanalyzer.go:1313
↓ 1 callersFunctionkeepCacheBytes
(maxBytes, actualBytes int)
options.go:89
↓ 1 callersFunctionknownDistinctSets
(set1, set2 *CharSet)
syntax/charclass.go:1183
↓ 1 callersFunctionlandmarkChainDescription
(chain *RequiredLandmarkChain)
syntax/optimizations.go:303
↓ 1 callersFunctionleadingPrefixFirstRunes
(prefixes [][]rune)
syntax/optimizations.go:593
↓ 1 callersMethodleftchars
()
runner.go:1220
↓ 1 callersFunctionliteralAfterLoopDescription
(literal *LiteralAfterLoop)
syntax/optimizations.go:285
↓ 1 callersMethodmakeQuantifier
(lazy bool, min, max int)
syntax/tree.go:1825
↓ 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:745
↓ 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:483
↓ 1 callersFunctionmatchSummary
(m *Match)
regexp_optimization_test.go:506
↓ 1 callersFunctionmaxLessThanTwiceMin
(max, min int)
syntax/tree.go:1450
↓ 1 callersFunctionmayContainCaseInsensitiveMatching
(node *RegexNode)
syntax/prefixanalyzer.go:1056
↓ 1 callersFunctionmayOverlapByEnumeration
(set1, set2 *CharSet)
syntax/charclass.go:1191
↓ 1 callersFunctionmultiplyMaxLength
(x, y int)
syntax/tree.go:1437
↓ 1 callersFunctionmultiplyMinLength
(x, y int)
syntax/tree.go:1419
↓ 1 callersFunctionnewASCIISetStringScanner
(set syntax.FixedDistanceSet)
stringprefixfilter.go:70
↓ 1 callersFunctionnewBmPrefix
(pattern []rune, caseInsensitive, rightToLeft bool)
syntax/prefix.go:412
↓ 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:265
↓ 1 callersFunctionnewRegexNodeStr
(t NodeType, opt RegexOptions, str []rune)
syntax/tree.go:148
↓ 1 callersFunctionnewReplacerDataCache
(maxSize int)
regexp.go:703
↓ 1 callersFunctionnewStringByteMapper
(s string)
regexp.go:405
↓ 1 callersFunctionnewWriter
(quickCaptureSlots []bool)
syntax/writer.go:28
↓ 1 callersFunctionnormalizeUnicodeCategoryAlias
(catName string)
syntax/charclass.go:640
↓ 1 callersMethodnoteCaptureName
(name string, pos int)
syntax/parser.go:219
↓ 1 callersMethodoperand
(i int)
runner.go:1216
↓ 1 callersFunctionoperatorDescription
(op InstOp)
syntax/code.go:227
← previousnext →401–500 of 981, ranked by callers