MCPcopy Create free account

hub / github.com/dlclark/regexp2 / functions

Functions1,370 in github.com/dlclark/regexp2

↓ 1 callersFunctionIndexFunc
(in []rune, f func(ch rune) bool)
helpers/indexof.go:139
↓ 1 callersMethodIndexOfAny
(chars []rune)
helpers/searchvalues.go:105
↓ 1 callersFunctionIndexOfAnyExceptInRange
(in []rune, first, last rune)
helpers/indexof.go:127
↓ 1 callersFunctionIndexOfAnyExceptInSet
(in []rune, set syntax.CharSet)
helpers/indexof.go:148
↓ 1 callersFunctionIndexOfAnyInRange
(in []rune, first, last rune)
helpers/indexof.go:73
↓ 1 callersFunctionIsASCIIRunes
IsASCIIRunes reports whether every rune in in is an ASCII code point.
helpers/ascii.go:48
↓ 1 callersMethodIsAtomicloopFamily
()
syntax/tree.go:252
↓ 1 callersFunctionIsCaseEquivalent
IsCaseEquivalent reports whether two runes match ignoring case. It uses Unicode simple folding except in legacy ECMAScript mode, which uses single-cod
syntax/charclass.go:811
↓ 1 callersMethodIsECMABoundary
IsECMABoundary reports whether index is between a letter, nonspacing mark, decimal digit or connector punctuation and something else. Deprecated: IsE
runner.go:2545
↓ 1 callersFunctionIsECMAIdentifierChar
(r rune)
syntax/charclass.go:528
↓ 1 callersFunctionIsECMAWordChar
IsECMAWordChar reports whether r is a letter, nonspacing mark, decimal digit or connector punctuation. This is the classification that Runner.IsECMABo
syntax/charclass.go:489
↓ 1 callersMethodIsEmpty
()
syntax/charclass.go:565
↓ 1 callersFunctionIsInASCIIBitmap
(ch rune, lo uint64, hi uint64)
helpers/runes.go:53
↓ 1 callersFunctionIsInMask32
(ch rune, mask uint32)
helpers/runes.go:34
↓ 1 callersFunctionIsLineBreak
IsLineBreak reports whether r ends a line for the ^ and $ anchors in Multiline mode. Only LF does, except in ECMAScript mode, where every LineTerminat
syntax/charclass.go:517
↓ 1 callersFunctionLastIndexOf
(in []rune, find []rune)
helpers/indexof.go:157
↓ 1 callersMethodLastIndexOfAny
return the last index of our original vals values within the slice given
helpers/searchvalues.go:66
↓ 1 callersFunctionLastIndexOfAny1
(in []rune, find rune)
helpers/indexof.go:189
↓ 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:470
↓ 1 callersMethodMatchString
MatchString reports whether the string s contains any match of the regular expression.
compat/regexp.go:57
↓ 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 callersFunctionNextGraphemeClusterBoundary
NextGraphemeClusterBoundary returns the first extended-grapheme boundary after start, or -1 when start is not a valid input position. It implements th
syntax/grapheme.go:43
↓ 1 callersFunctionPreviousGraphemeClusterBoundary
PreviousGraphemeClusterBoundary returns the first extended-grapheme boundary before end, or -1 when end is not a valid input position.
syntax/grapheme.go:65
↓ 1 callersMethodStackDepth
StackDepth returns the number of integer slots currently used by the generated engine's backtracking stack.
runner.go:2640
↓ 1 callersMethodStackPop
()
runner.go:2629
↓ 1 callersMethodStackPush4
(val1, val2, val3, val4 int)
runner.go:2668
↓ 1 callersMethodStackPush5
(val1, val2, val3, val4, val5 int)
runner.go:2680
↓ 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:2311
↓ 1 callersMethodTryMatchGrapheme
TryMatchGrapheme consumes one Unicode extended grapheme cluster in the runner's current direction. It is exported for regexp2cg-generated engines.
runner.go:1167
↓ 1 callersFunctionUnescape
Unescape removes any backslashes from previously-escaped special characters in the input string
regexp.go:176
↓ 1 callersFunctionUnescape
(input string)
syntax/escape.go:58
↓ 1 callersMethodUnwrap
Unwrap returns the wrapped regexp2 regular expression.
compat/regexp.go:42
↓ 1 callersMethodadd
(key string, data *syntax.ReplacerData)
regexp.go:747
↓ 1 callersMethodaddAlternate
Finish the current concatenation (in response to a |)
syntax/parser.go:2817
↓ 1 callersMethodaddCategory
(categoryName string, negate, caseInsensitive bool)
syntax/charclass.go:751
↓ 1 callersMethodaddConcatenate3
Finish the current quantifiable (when a quantifier is found)
syntax/parser.go:2636
↓ 1 callersMethodaddFC
(fc regexFc, concatenate bool)
syntax/prefix.go:294
↓ 1 callersMethodaddGroup
Finish the current group (in response to a ')' or end)
syntax/parser.go:2713
↓ 1 callersMethodaddLowercaseRange
(chMin, chMax rune)
syntax/charclass.go:1198
↓ 1 callersFunctionaddMinLength
(x, y int)
syntax/tree.go:1545
↓ 1 callersMethodaddNamedASCII
(name string, negate bool)
syntax/charclass.go:871
↓ 1 callersMethodaddNegativeRanges
Merges everything but the new ranges into our own
syntax/charclass.go:678
↓ 1 callersMethodaddQuotedUnit
addQuotedUnit adds the literal characters scanned by \Q...\E. All but the final character are completed immediately so a following quantifier applies
syntax/parser.go:2653
↓ 1 callersMethodaddUnitNotone
Sets the current unit to a single inverse-char node
syntax/parser.go:2693
↓ 1 callersMethodaddUnitOne
Sets the current unit to a single char node
syntax/parser.go:2688
↓ 1 callersMethodaddUnitSet
Sets the current unit to a single set node
syntax/parser.go:2698
↓ 1 callersMethodaddUnitType
Sets the current unit to an assertion of the specified type
syntax/parser.go:2708
↓ 1 callersMethodadvance
(i int)
runner.go:1131
↓ 1 callersFunctionanchorFromType
(t NodeType)
syntax/prefix.go:824
↓ 1 callersFunctionanyParticipateInCaseConversion
(chars []rune)
syntax/charclass.go:1470
↓ 1 callersFunctionanyParticipatesInCaseConversion
(str string)
syntax/charclass.go:1499
↓ 1 callersMethodapplyCompileOption
(*compileConfig)
options.go:65
↓ 1 callersFunctionasciiSearchMask
(chars []rune)
syntax/optimizations.go:412
↓ 1 callersFunctionassertEquivalentStringMatchAPIs
(t *testing.T, optimized, unoptimized *Regexp, input string)
regexp_optimization_test.go:508
↓ 1 callersFunctionassertEquivalentStringMatchStartingAt
(t *testing.T, optimized, unoptimized *Regexp, input string, startAt int)
regexp_optimization_test.go:528
↓ 1 callersMethodassignNameSlots
()
syntax/parser.go:341
↓ 1 callersMethodassignOrderedNameSlots
()
syntax/parser.go:416
↓ 1 callersFunctionb2i
(b bool)
syntax/charclass.go:241
↓ 1 callersMethodbacktrack
()
runner.go:1254
↓ 1 callersMethodbackwardnext
()
runner.go:1489
↓ 1 callersFunctionbenchmarkEqualASCIIPrefixFallback
(input []rune, prefixes [][]rune, firstRunes []rune)
prefixsearch_test.go:243
↓ 1 callersFunctionbenchmarkRegexcmpSet
(b *testing.B, setName string, cases []regexcmpCase, wantCount int, inputString string, inputBytes []byte, inp
regexcmp_benchmark_test.go:70
↓ 1 callersMethodbound
bound lowers match.End so that it holds for every alternative. Another alternative can end before End only if its core starts before End, so End drops
runner.go:1889
↓ 1 callersMethodbuildByteOffsets
()
match.go:152
↓ 1 callersMethodbump
()
runner.go:1359
↓ 1 callersMethodbyteIndex
runeIndex is relative to input; each invalid UTF-8 byte counts as one rune.
regexp.go:422
↓ 1 callersMethodbyteRange
(runeIndex, runeLength int)
match.go:142
↓ 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:1591
↓ 1 callersMethodcanJoinLengthCheck
()
syntax/tree.go:2384
↓ 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:148
↓ 1 callersMethodcharAt
(j int)
runner.go:1497
↓ 1 callersMethodcheckCapturePath
checkCapturePath enforces ECMAScript 2025 §22.2.1.1's duplicate-name early error using §22.2.1.4 MightBothParticipate: a common disjunction must separ
syntax/parser.go:234
↓ 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:113
↓ 1 callersFunctioncommonPrefixLen
commonPrefixLen returns the length of the common prefix of two strings.
syntax/prefixanalyzer.go:379
↓ 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:2081
↓ 1 callersMethodconsume
(properties graphemeProperties)
syntax/grapheme.go:85
↓ 1 callersMethodconsumeCaptureSlot
(capnum int)
syntax/parser.go:482
↓ 1 callersFunctioncontainsEnder
(line string, ender byte, allowFirst bool)
regexp_corpus_pcre_test.go:260
↓ 1 callersMethodcontainsLineBreak
containsLineBreak reports whether the set holds a character that $ can match before in Multiline mode (see IsLineBreak).
syntax/tree.go:971
↓ 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:490
↓ 1 callersFunctiondecodeString
decodeString converts s to []rune for the MatchString startAt<=0 path. Keep this as close as possible to a single UTF-8 walk so 4–30 byte matches stay
decode.go:61
↓ 1 callersMethoddetach
detach gives the caller ownership of the buffer and recycles its wrapper. Only getExact may borrow these wrappers, since a detached one has no buffer.
bufferpool.go:95
↓ 1 callersMethoddisjointAtomicBranchSets
disjointAtomicBranchSets returns the first-character sets when an alternation can select a branch without leaving a backtracking choice.
syntax/tree.go:735
↓ 1 callersMethoddispatchCandidates
dispatchCandidates returns disjoint branch sets and the leading nodes that can be folded into a consuming Dispatch instruction.
syntax/tree.go:744
↓ 1 callersMethoddispatchCode
(sets []*CharSet)
syntax/writer.go:591
↓ 1 callersFunctiondispatchTablesEqual
(left, right []DispatchTable)
syntax/writer.go:80
↓ 1 callersMethoddump
()
syntax/tree.go:2267
↓ 1 callersMethoddumpState
debug
runner.go:2458
↓ 1 callersMethodecmaBoundaryOptions
ecmaBoundaryOptions returns the options of the current \b or \B operator that choose its word characters. The writer sets Ci on it only when its scope
runner.go:2563
↓ 1 callersFunctionecmaRangesForProperty
(property string)
syntax/ecma_unicode.go:132
↓ 1 callersFunctionecmaRangesForScript
(script string)
syntax/ecma_unicode.go:178
↓ 1 callersMethodemit2
Emits a two-argument operation.
syntax/writer.go:714
← previousnext →401–500 of 1,370, ranked by callers