Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dlclark/regexp2
/ functions
Functions
981 in github.com/dlclark/regexp2
⨍
Functions
981
◇
Types & classes
72
↓ 1 callers
Function
EqualsIgnoreCase
(in []rune, start int, length int, find []rune)
helpers/indexof.go:376
↓ 1 callers
Method
FindAllIndex
FindAllIndex returns a slice of byte index pairs for all successive matches in b.
compat/regexp.go:191
↓ 1 callers
Method
FindAllStringSubmatch
(s string, n int)
compat/interface.go:33
↓ 1 callers
Method
FindAllStringSubmatchIndex
FindAllStringSubmatchIndex returns a slice of byte index pairs for all successive matches and their submatches in s.
compat/regexp.go:264
↓ 1 callers
Method
FindAllSubmatch
(b []byte, n int)
compat/interface.go:35
↓ 1 callers
Method
FindAllSubmatchIndex
FindAllSubmatchIndex returns a slice of byte index pairs for all successive matches and their submatches in b.
compat/regexp.go:245
↓ 1 callers
Method
FindIndex
FindIndex returns a two-element slice defining the location of the leftmost match in b.
compat/regexp.go:83
↓ 1 callers
Method
FindReaderIndex
(r io.RuneReader)
compat/interface.go:20
↓ 1 callers
Method
FindStartingLiteralNode
Finds the guaranteed beginning literal(s) of the node, or null if none exists. allowZeroWidth = true
syntax/tree.go:2329
↓ 1 callers
Method
FindStringSubmatchIndex
FindStringSubmatchIndex returns a slice holding the byte index pairs of the leftmost match and its submatches.
compat/regexp.go:157
↓ 1 callers
Method
FindSubmatchIndex
FindSubmatchIndex returns a slice holding the byte index pairs of the leftmost match and its submatches.
compat/regexp.go:141
↓ 1 callers
Method
FirstCharOfOneOrMulti
Gets the character that begins a One or Multi.
syntax/tree.go:2363
↓ 1 callers
Method
Hash
()
syntax/charclass.go:1254
↓ 1 callers
Function
IndexFunc
(in []rune, f func(ch rune) bool)
helpers/indexof.go:118
↓ 1 callers
Method
IndexOfAny
return the first index of our original vals values within the slice given
helpers/searchvalues.go:92
↓ 1 callers
Function
IndexOfAny2
(in []rune, find1, find2 rune)
helpers/indexof.go:32
↓ 1 callers
Function
IndexOfAny3
(in []rune, find1, find2, find3 rune)
helpers/indexof.go:42
↓ 1 callers
Function
IndexOfAnyExceptInRange
(in []rune, first, last rune)
helpers/indexof.go:106
↓ 1 callers
Function
IndexOfAnyInRange
(in []rune, first, last rune)
helpers/indexof.go:52
↓ 1 callers
Method
IsAtomicloopFamily
()
syntax/tree.go:251
↓ 1 callers
Method
IsBoundary
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 callers
Method
IsECMABoundary
(index int)
runner.go:2138
↓ 1 callers
Function
IsECMAIdentifierChar
(r rune)
syntax/charclass.go:467
↓ 1 callers
Method
IsEmpty
()
syntax/charclass.go:504
↓ 1 callers
Function
IsInASCIIBitmap
(ch rune, lo uint64, hi uint64)
helpers/runes.go:50
↓ 1 callers
Function
IsInMask32
(ch rune, mask uint32)
helpers/runes.go:31
↓ 1 callers
Method
IsMatch
When a regex is anchored, we can do a quick IsMatch test instead of a Scan
syntax/prefix.go:729
↓ 1 callers
Method
Match
(b []byte)
compat/interface.go:14
↓ 1 callers
Method
MatchReader
(r io.RuneReader)
compat/interface.go:16
↓ 1 callers
Method
MatchString
MatchString return true if the string matches the regex error will be set if a timeout occurs
regexp.go:471
↓ 1 callers
Method
MatchString
MatchString reports whether the string s contains any match of the regular expression.
compat/regexp.go:57
↓ 1 callers
Method
MayOverlap
Determines whether two sets could overlap.
syntax/charclass.go:1136
↓ 1 callers
Function
NewCharSetRuntime
(buf string)
syntax/charclass.go:254
↓ 1 callers
Function
NewReplacerData
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 callers
Method
PrepareCharSetASCIIBitmaps
PrepareCharSetASCIIBitmaps builds bounded ASCII lookup tables for compiled character classes before the regexp is shared across goroutines.
syntax/code.go:154
↓ 1 callers
Method
StackDepth
StackDepth returns the number of integer slots currently used by the generated engine's backtracking stack.
runner.go:2239
↓ 1 callers
Method
StackPop
()
runner.go:2228
↓ 1 callers
Method
StackPush4
(val1, val2, val3, val4 int)
runner.go:2267
↓ 1 callers
Method
StackPush5
(val1, val2, val3, val4, val5 int)
runner.go:2279
↓ 1 callers
Function
StartsWithIgnoreCase
StartsWithIgnoreCaseAscii would be faster find should always be sent in lower-case
helpers/indexof.go:341
↓ 1 callers
Method
TryGetOrdinalCaseInsensitiveString
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 callers
Function
Unescape
Unescape removes any backslashes from previously-escaped special characters in the input string
regexp.go:158
↓ 1 callers
Function
Unescape
(input string)
syntax/escape.go:57
↓ 1 callers
Method
Unwrap
Unwrap returns the wrapped regexp2 regular expression.
compat/regexp.go:42
↓ 1 callers
Method
add
(key string, data *syntax.ReplacerData)
regexp.go:722
↓ 1 callers
Method
addAlternate
Finish the current concatenation (in response to a |)
syntax/parser.go:2429
↓ 1 callers
Method
addCaseEquivalences
Adds to the class any case-equivalence versions of characters already in the class. Used for case-insensitivity.
syntax/charclass.go:712
↓ 1 callers
Method
addConcatenate3
Finish the current quantifiable (when a quantifier is found)
syntax/parser.go:2294
↓ 1 callers
Method
addFC
(fc regexFc, concatenate bool)
syntax/prefix.go:291
↓ 1 callers
Method
addGroup
Finish the current group (in response to a ')' or end)
syntax/parser.go:2325
↓ 1 callers
Method
addLowercaseRange
(chMin, chMax rune)
syntax/charclass.go:1085
↓ 1 callers
Function
addMinLength
(x, y int)
syntax/tree.go:1411
↓ 1 callers
Method
addNamedASCII
(name string, negate bool)
syntax/charclass.go:759
↓ 1 callers
Method
addNegativeRanges
Merges everything but the new ranges into our own
syntax/charclass.go:618
↓ 1 callers
Method
addSubtraction
(sub *CharSet)
syntax/charclass.go:750
↓ 1 callers
Method
addUnitNotone
Sets the current unit to a single inverse-char node
syntax/parser.go:2305
↓ 1 callers
Method
addUnitOne
Sets the current unit to a single char node
syntax/parser.go:2300
↓ 1 callers
Method
addUnitSet
Sets the current unit to a single set node
syntax/parser.go:2310
↓ 1 callers
Method
addUnitType
Sets the current unit to an assertion of the specified type
syntax/parser.go:2320
↓ 1 callers
Method
advance
(i int)
runner.go:1016
↓ 1 callers
Function
anchorFromType
(t NodeType)
syntax/prefix.go:821
↓ 1 callers
Function
anyParticipateInCaseConversion
(chars []rune)
syntax/charclass.go:1336
↓ 1 callers
Function
anyParticipatesInCaseConversion
(str string)
syntax/charclass.go:1365
↓ 1 callers
Method
applyCompileOption
(*compileConfig)
options.go:65
↓ 1 callers
Function
assertEquivalentStringMatchAPIs
(t *testing.T, optimized, unoptimized *Regexp, input string)
regexp_optimization_test.go:451
↓ 1 callers
Function
assertEquivalentStringMatchStartingAt
(t *testing.T, optimized, unoptimized *Regexp, input string, startAt int)
regexp_optimization_test.go:471
↓ 1 callers
Method
assignNameSlots
()
syntax/parser.go:239
↓ 1 callers
Method
assignOrderedNameSlots
()
syntax/parser.go:314
↓ 1 callers
Function
b2i
(b bool)
syntax/charclass.go:222
↓ 1 callers
Method
backtrack
()
runner.go:1123
↓ 1 callers
Method
balanceMatch
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 callers
Function
benchmarkRegexcmpSet
(b *testing.B, setName string, cases []regexcmpCase, wantCount int, inputString string, inputBytes []byte, inp
regexcmp_benchmark_test.go:70
↓ 1 callers
Method
buildByteOffsets
()
match.go:103
↓ 1 callers
Method
bump
()
runner.go:1228
↓ 1 callers
Method
byteIndex
(runeIndex int)
regexp.go:427
↓ 1 callers
Method
byteRange
(runeIndex, runeLength int)
match.go:91
↓ 1 callers
Function
bytesToRunesAndOffsets
(b []byte)
compat/regexp.go:377
↓ 1 callers
Method
cacheReplacerData
(replacement string)
options.go:82
↓ 1 callers
Method
calculateFC
FC computation and shortcut cases for each node type
syntax/prefix.go:156
↓ 1 callers
Function
canCombineCounts
(nodeMin, nodeMax, nextMin, nextMax int)
syntax/tree.go:1457
↓ 1 callers
Method
canJoinLengthCheck
()
syntax/tree.go:2241
↓ 1 callers
Function
captureSlotsInUse
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 callers
Method
codeFromTree
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 callers
Function
commonPrefixLen
commonPrefixLen returns the length of the common prefix of two strings.
syntax/prefixanalyzer.go:354
↓ 1 callers
Function
compileASCIIStringSetPrefixFilter
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 callers
Function
compileRawPattern
(t *testing.T, pattern string)
regexp_corpus_pcre_test.go:192
↓ 1 callers
Method
computeMaxLength
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 callers
Method
consumeCaptureSlot
(capnum int)
syntax/parser.go:372
↓ 1 callers
Function
containsEnder
(line string, ender byte, allowFirst bool)
regexp_corpus_pcre_test.go:260
↓ 1 callers
Function
corpusMatchSubmatchIndex
(m *Match)
regexp_corpus_helpers_test.go:18
↓ 1 callers
Function
corpusRE2ParseResult
(s string)
regexp_corpus_re2_test.go:148
↓ 1 callers
Function
corpusRE2UnquoteC
(t *testing.T, file string, lineno int, s string)
regexp_corpus_re2_test.go:139
↓ 1 callers
Method
countCaptures
CountCaptures is a prescanner for deducing the slots used for captures by doing a partial tokenization of the pattern.
syntax/parser.go:380
↓ 1 callers
Method
dump
()
syntax/tree.go:2124
↓ 1 callers
Method
dumpState
debug
runner.go:2062
↓ 1 callers
Method
emit2
Emits a two-argument operation.
syntax/writer.go:522
↓ 1 callers
Method
emitCapture
(node *RegexNode)
syntax/writer.go:394
↓ 1 callers
Method
emitFragment
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 callers
Method
emptyOptionsStack
True if options stack is empty.
syntax/parser.go:2282
↓ 1 callers
Method
emptyStack
True if the group stack is empty.
syntax/parser.go:2417
← previous
next →
301–400 of 981, ranked by callers