MCPcopy Create free account

hub / github.com/dlclark/regexp2 / functions

Functions981 in github.com/dlclark/regexp2

↓ 1 callersFunctionEqualsIgnoreCase
(in []rune, start int, length int, find []rune)
helpers/indexof.go:376
↓ 1 callersMethodFindAllIndex
FindAllIndex returns a slice of byte index pairs for all successive matches in b.
compat/regexp.go:191
↓ 1 callersMethodFindAllStringSubmatch
(s string, n int)
compat/interface.go:33
↓ 1 callersMethodFindAllStringSubmatchIndex
FindAllStringSubmatchIndex returns a slice of byte index pairs for all successive matches and their submatches in s.
compat/regexp.go:264
↓ 1 callersMethodFindAllSubmatch
(b []byte, n int)
compat/interface.go:35
↓ 1 callersMethodFindAllSubmatchIndex
FindAllSubmatchIndex returns a slice of byte index pairs for all successive matches and their submatches in b.
compat/regexp.go:245
↓ 1 callersMethodFindIndex
FindIndex returns a two-element slice defining the location of the leftmost match in b.
compat/regexp.go:83
↓ 1 callersMethodFindReaderIndex
(r io.RuneReader)
compat/interface.go:20
↓ 1 callersMethodFindStartingLiteralNode
Finds the guaranteed beginning literal(s) of the node, or null if none exists. allowZeroWidth = true
syntax/tree.go:2329
↓ 1 callersMethodFindStringSubmatchIndex
FindStringSubmatchIndex returns a slice holding the byte index pairs of the leftmost match and its submatches.
compat/regexp.go:157
↓ 1 callersMethodFindSubmatchIndex
FindSubmatchIndex returns a slice holding the byte index pairs of the leftmost match and its submatches.
compat/regexp.go:141
↓ 1 callersMethodFirstCharOfOneOrMulti
Gets the character that begins a One or Multi.
syntax/tree.go:2363
↓ 1 callersMethodHash
()
syntax/charclass.go:1254
↓ 1 callersFunctionIndexFunc
(in []rune, f func(ch rune) bool)
helpers/indexof.go:118
↓ 1 callersMethodIndexOfAny
return the first index of our original vals values within the slice given
helpers/searchvalues.go:92
↓ 1 callersFunctionIndexOfAny2
(in []rune, find1, find2 rune)
helpers/indexof.go:32
↓ 1 callersFunctionIndexOfAny3
(in []rune, find1, find2, find3 rune)
helpers/indexof.go:42
↓ 1 callersFunctionIndexOfAnyExceptInRange
(in []rune, first, last rune)
helpers/indexof.go:106
↓ 1 callersFunctionIndexOfAnyInRange
(in []rune, first, last rune)
helpers/indexof.go:52
↓ 1 callersMethodIsAtomicloopFamily
()
syntax/tree.go:251
↓ 1 callersMethodIsBoundary
decide whether the pos at the specified index is a boundary or not. It's just not worth emitting inline code for this logic.
runner.go:2133
↓ 1 callersMethodIsECMABoundary
(index int)
runner.go:2138
↓ 1 callersFunctionIsECMAIdentifierChar
(r rune)
syntax/charclass.go:467
↓ 1 callersMethodIsEmpty
()
syntax/charclass.go:504
↓ 1 callersFunctionIsInASCIIBitmap
(ch rune, lo uint64, hi uint64)
helpers/runes.go:50
↓ 1 callersFunctionIsInMask32
(ch rune, mask uint32)
helpers/runes.go:31
↓ 1 callersMethodIsMatch
When a regex is anchored, we can do a quick IsMatch test instead of a Scan
syntax/prefix.go:729
↓ 1 callersMethodMatch
(b []byte)
compat/interface.go:14
↓ 1 callersMethodMatchReader
(r io.RuneReader)
compat/interface.go:16
↓ 1 callersMethodMatchString
MatchString return true if the string matches the regex error will be set if a timeout occurs
regexp.go:471
↓ 1 callersMethodMatchString
MatchString reports whether the string s contains any match of the regular expression.
compat/regexp.go:57
↓ 1 callersMethodMayOverlap
Determines whether two sets could overlap.
syntax/charclass.go:1136
↓ 1 callersFunctionNewCharSetRuntime
(buf string)
syntax/charclass.go:254
↓ 1 callersFunctionNewReplacerData
NewReplacerData will populate a reusable replacer data struct based on the given replacement string and the capture group data from a regexp
syntax/replacerdata.go:27
↓ 1 callersMethodPrepareCharSetASCIIBitmaps
PrepareCharSetASCIIBitmaps builds bounded ASCII lookup tables for compiled character classes before the regexp is shared across goroutines.
syntax/code.go:154
↓ 1 callersMethodStackDepth
StackDepth returns the number of integer slots currently used by the generated engine's backtracking stack.
runner.go:2239
↓ 1 callersMethodStackPop
()
runner.go:2228
↓ 1 callersMethodStackPush4
(val1, val2, val3, val4 int)
runner.go:2267
↓ 1 callersMethodStackPush5
(val1, val2, val3, val4, val5 int)
runner.go:2279
↓ 1 callersFunctionStartsWithIgnoreCase
StartsWithIgnoreCaseAscii would be faster find should always be sent in lower-case
helpers/indexof.go:341
↓ 1 callersMethodTryGetOrdinalCaseInsensitiveString
Determines whether the specified child index of a concatenation begins a sequence whose values should be used to perform an ordinal case-insensitive c
syntax/tree.go:2168
↓ 1 callersFunctionUnescape
Unescape removes any backslashes from previously-escaped special characters in the input string
regexp.go:158
↓ 1 callersFunctionUnescape
(input string)
syntax/escape.go:57
↓ 1 callersMethodUnwrap
Unwrap returns the wrapped regexp2 regular expression.
compat/regexp.go:42
↓ 1 callersMethodadd
(key string, data *syntax.ReplacerData)
regexp.go:722
↓ 1 callersMethodaddAlternate
Finish the current concatenation (in response to a |)
syntax/parser.go:2429
↓ 1 callersMethodaddCaseEquivalences
Adds to the class any case-equivalence versions of characters already in the class. Used for case-insensitivity.
syntax/charclass.go:712
↓ 1 callersMethodaddConcatenate3
Finish the current quantifiable (when a quantifier is found)
syntax/parser.go:2294
↓ 1 callersMethodaddFC
(fc regexFc, concatenate bool)
syntax/prefix.go:291
↓ 1 callersMethodaddGroup
Finish the current group (in response to a ')' or end)
syntax/parser.go:2325
↓ 1 callersMethodaddLowercaseRange
(chMin, chMax rune)
syntax/charclass.go:1085
↓ 1 callersFunctionaddMinLength
(x, y int)
syntax/tree.go:1411
↓ 1 callersMethodaddNamedASCII
(name string, negate bool)
syntax/charclass.go:759
↓ 1 callersMethodaddNegativeRanges
Merges everything but the new ranges into our own
syntax/charclass.go:618
↓ 1 callersMethodaddSubtraction
(sub *CharSet)
syntax/charclass.go:750
↓ 1 callersMethodaddUnitNotone
Sets the current unit to a single inverse-char node
syntax/parser.go:2305
↓ 1 callersMethodaddUnitOne
Sets the current unit to a single char node
syntax/parser.go:2300
↓ 1 callersMethodaddUnitSet
Sets the current unit to a single set node
syntax/parser.go:2310
↓ 1 callersMethodaddUnitType
Sets the current unit to an assertion of the specified type
syntax/parser.go:2320
↓ 1 callersMethodadvance
(i int)
runner.go:1016
↓ 1 callersFunctionanchorFromType
(t NodeType)
syntax/prefix.go:821
↓ 1 callersFunctionanyParticipateInCaseConversion
(chars []rune)
syntax/charclass.go:1336
↓ 1 callersFunctionanyParticipatesInCaseConversion
(str string)
syntax/charclass.go:1365
↓ 1 callersMethodapplyCompileOption
(*compileConfig)
options.go:65
↓ 1 callersFunctionassertEquivalentStringMatchAPIs
(t *testing.T, optimized, unoptimized *Regexp, input string)
regexp_optimization_test.go:451
↓ 1 callersFunctionassertEquivalentStringMatchStartingAt
(t *testing.T, optimized, unoptimized *Regexp, input string, startAt int)
regexp_optimization_test.go:471
↓ 1 callersMethodassignNameSlots
()
syntax/parser.go:239
↓ 1 callersMethodassignOrderedNameSlots
()
syntax/parser.go:314
↓ 1 callersFunctionb2i
(b bool)
syntax/charclass.go:222
↓ 1 callersMethodbacktrack
()
runner.go:1123
↓ 1 callersMethodbalanceMatch
Nonpublic builder: Add a capture to balance the specified group. This is used by the balanced match construct. (?<foo-foo2>...) If there were no s
match.go:296
↓ 1 callersFunctionbenchmarkRegexcmpSet
(b *testing.B, setName string, cases []regexcmpCase, wantCount int, inputString string, inputBytes []byte, inp
regexcmp_benchmark_test.go:70
↓ 1 callersMethodbuildByteOffsets
()
match.go:103
↓ 1 callersMethodbump
()
runner.go:1228
↓ 1 callersMethodbyteIndex
(runeIndex int)
regexp.go:427
↓ 1 callersMethodbyteRange
(runeIndex, runeLength int)
match.go:91
↓ 1 callersFunctionbytesToRunesAndOffsets
(b []byte)
compat/regexp.go:377
↓ 1 callersMethodcacheReplacerData
(replacement string)
options.go:82
↓ 1 callersMethodcalculateFC
FC computation and shortcut cases for each node type
syntax/prefix.go:156
↓ 1 callersFunctioncanCombineCounts
(nodeMin, nodeMax, nextMin, nextMax int)
syntax/tree.go:1457
↓ 1 callersMethodcanJoinLengthCheck
()
syntax/tree.go:2241
↓ 1 callersFunctioncaptureSlotsInUse
captureSlotsInUse returns the capture slots whose values can affect matching. Group 0 is always retained as the success marker. Ordinary captures that
syntax/code.go:123
↓ 1 callersMethodcodeFromTree
The top level RegexCode generator. It does a depth-first walk through the tree and calls EmitFragment to emits code before and after each child of an
syntax/writer.go:70
↓ 1 callersFunctioncommonPrefixLen
commonPrefixLen returns the length of the common prefix of two strings.
syntax/prefixanalyzer.go:354
↓ 1 callersFunctioncompileASCIIStringSetPrefixFilter
compileASCIIStringSetPrefixFilter builds a byte-oriented multi-prefix scanner for the narrow shape where it beats running strings.Index once per prefi
stringprefixfilter.go:225
↓ 1 callersFunctioncompileRawPattern
(t *testing.T, pattern string)
regexp_corpus_pcre_test.go:192
↓ 1 callersMethodcomputeMaxLength
Computes a maximum length of any string that could possibly match. or -1 if the length may not always be the same.
syntax/tree.go:1942
↓ 1 callersMethodconsumeCaptureSlot
(capnum int)
syntax/parser.go:372
↓ 1 callersFunctioncontainsEnder
(line string, ender byte, allowFirst bool)
regexp_corpus_pcre_test.go:260
↓ 1 callersFunctioncorpusMatchSubmatchIndex
(m *Match)
regexp_corpus_helpers_test.go:18
↓ 1 callersFunctioncorpusRE2ParseResult
(s string)
regexp_corpus_re2_test.go:148
↓ 1 callersFunctioncorpusRE2UnquoteC
(t *testing.T, file string, lineno int, s string)
regexp_corpus_re2_test.go:139
↓ 1 callersMethodcountCaptures
CountCaptures is a prescanner for deducing the slots used for captures by doing a partial tokenization of the pattern.
syntax/parser.go:380
↓ 1 callersMethoddump
()
syntax/tree.go:2124
↓ 1 callersMethoddumpState
debug
runner.go:2062
↓ 1 callersMethodemit2
Emits a two-argument operation.
syntax/writer.go:522
↓ 1 callersMethodemitCapture
(node *RegexNode)
syntax/writer.go:394
↓ 1 callersMethodemitFragment
The main RegexCode generator. It does a depth-first walk through the tree and calls EmitFragment to emits code before and after each child of an inter
syntax/writer.go:179
↓ 1 callersMethodemptyOptionsStack
True if options stack is empty.
syntax/parser.go:2282
↓ 1 callersMethodemptyStack
True if the group stack is empty.
syntax/parser.go:2417
← previousnext →301–400 of 981, ranked by callers