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
Method
trackPush1
(I1 int)
runner.go:1080
↓ 1 callers
Method
trackPush2
(I1, I2 int)
runner.go:1087
↓ 1 callers
Method
trackPush3
(I1, I2, I3 int)
runner.go:1096
↓ 1 callers
Method
trackPushNeg1
(I1 int)
runner.go:1107
↓ 1 callers
Method
trackPushNeg2
(I1, I2 int)
runner.go:1114
↓ 1 callers
Method
trackpos
push onto the backtracking stack
runner.go:1051
↓ 1 callers
Method
trackto
(newpos int)
runner.go:1038
↓ 1 callers
Method
transferCapture
transferCapture captures a subexpression. Note that the capnum used here has already been mapped to a non-sparse index (by the code generator RegexWri
runner.go:2015
↓ 1 callers
Function
tryFindCaseEquivalences
Performs a fast lookup which determines if a character is involved in case conversion, as well as returns the OTHER characters that should be consider
syntax/charclass.go:734
↓ 1 callers
Function
tryFindFirstCharClass
Walks the nodes of the expression looking for any node that could possibly match the first character of a match, e.g. in `a*b*c+d`, we'd find [abc], o
syntax/prefixanalyzer.go:49
↓ 1 callers
Function
tryFindPrefix
Processes the node, adding any prefix text to the builder. Returns whether processing should continue with subsequent nodes.
syntax/prefixanalyzer.go:242
↓ 1 callers
Function
tryFindRawFixedSets
Starting from the specified root node, populates results with any characters at a fixed distance from the node's starting position. The function retu
syntax/prefixanalyzer.go:751
↓ 1 callers
Method
typeFromCode
Returns ReNode type for zero-length assertions with a \ code.
syntax/parser.go:1527
↓ 1 callers
Function
unEscapeGroup
(val string)
regexp_corpus_pcre_test.go:328
↓ 1 callers
Function
unEscapeToMatch
(line string)
regexp_corpus_pcre_test.go:270
↓ 1 callers
Function
unwrapImmediateLiteralAfterLoopNode
(node *RegexNode)
syntax/prefixanalyzer.go:1261
↓ 1 callers
Method
useOptionM
True if M option altering meaning of $ and ^ is on.
syntax/parser.go:2252
↓ 1 callers
Method
useOptionS
True if S option altering meaning of . is on.
syntax/parser.go:2257
↓ 1 callers
Function
validateMatch
(t *testing.T, re *Regexp, m *Match, toMatch, value string, idx, capIdx int)
regexp_corpus_pcre_test.go:152
↓ 1 callers
Function
validateNoMatch
(t *testing.T, re *Regexp, m *Match)
regexp_corpus_pcre_test.go:144
↓ 1 callers
Function
whitespaceLoop
(node *RegexNode)
syntax/prefixanalyzer.go:1440
↓ 1 callers
Method
writeStrToBuf
(buf *bytes.Buffer)
syntax/tree.go:255
Method
Analyze
<summary>Analyzes the set to determine some basic properties that can be used to optimize usage.
syntax/charclass.go:1447
Function
BenchmarkAnchoredLiteralLongNonMatch
(b *testing.B)
regexp_performance_test.go:85
Function
BenchmarkAnchoredLiteralShortNonMatch
* func BenchmarkReplaceAll(b *testing.B) { x := "abcdefghijklmnopqrstuvwxyz" b.StopTimer() re := MustCompile("[cjrw]", 0) b.StartTimer() for i :
regexp_performance_test.go:73
Function
BenchmarkAnchoredLongMatch
(b *testing.B)
regexp_performance_test.go:117
Function
BenchmarkAnchoredShortMatch
(b *testing.B)
regexp_performance_test.go:105
Function
BenchmarkAsciiSearchValues_1K
(b *testing.B)
helpers/searchvalues_test.go:100
Function
BenchmarkAsciiSearchValues_1M
(b *testing.B)
helpers/searchvalues_test.go:106
Function
BenchmarkAsciiSearchValues_32
(b *testing.B)
helpers/searchvalues_test.go:97
Function
BenchmarkAsciiSearchValues_32K
(b *testing.B)
helpers/searchvalues_test.go:103
Function
BenchmarkAsciiSearchValues_32M
(b *testing.B)
helpers/searchvalues_test.go:109
Function
BenchmarkFindLeadingStringsLeftToRight
(b *testing.B)
regexp_performance_test.go:295
Function
BenchmarkLeading
(b *testing.B)
regexp_performance_test.go:364
Function
BenchmarkLiteral
(b *testing.B)
regexp_performance_test.go:9
Function
BenchmarkMatchClass
(b *testing.B)
regexp_performance_test.go:33
Function
BenchmarkMatchClass_InRange
(b *testing.B)
regexp_performance_test.go:46
Function
BenchmarkMatchEasy0_1K
(b *testing.B)
regexp_performance_test.go:256
Function
BenchmarkMatchEasy0_1M
(b *testing.B)
regexp_performance_test.go:258
Function
BenchmarkMatchEasy0_32
(b *testing.B)
regexp_performance_test.go:255
Function
BenchmarkMatchEasy0_32K
(b *testing.B)
regexp_performance_test.go:257
Function
BenchmarkMatchEasy0_32M
(b *testing.B)
regexp_performance_test.go:259
Function
BenchmarkMatchEasy1_1K
(b *testing.B)
regexp_performance_test.go:261
Function
BenchmarkMatchEasy1_1M
(b *testing.B)
regexp_performance_test.go:263
Function
BenchmarkMatchEasy1_32
(b *testing.B)
regexp_performance_test.go:260
Function
BenchmarkMatchEasy1_32K
(b *testing.B)
regexp_performance_test.go:262
Function
BenchmarkMatchEasy1_32M
(b *testing.B)
regexp_performance_test.go:264
Function
BenchmarkMatchHard1_1K
(b *testing.B)
regexp_performance_test.go:276
Function
BenchmarkMatchHard1_1M
(b *testing.B)
regexp_performance_test.go:278
Function
BenchmarkMatchHard1_32
(b *testing.B)
regexp_performance_test.go:275
Function
BenchmarkMatchHard1_32K
(b *testing.B)
regexp_performance_test.go:277
Function
BenchmarkMatchHard1_32M
(b *testing.B)
regexp_performance_test.go:279
Function
BenchmarkMatchHard_1K
(b *testing.B)
regexp_performance_test.go:271
Function
BenchmarkMatchHard_1M
(b *testing.B)
regexp_performance_test.go:273
Function
BenchmarkMatchHard_32
(b *testing.B)
regexp_performance_test.go:270
Function
BenchmarkMatchHard_32K
(b *testing.B)
regexp_performance_test.go:272
Function
BenchmarkMatchHard_32M
(b *testing.B)
regexp_performance_test.go:274
Function
BenchmarkMatchLeadingPrefixesRunes_32K
(b *testing.B)
regexp_performance_test.go:281
Function
BenchmarkMatchMedium_1K
(b *testing.B)
regexp_performance_test.go:266
Function
BenchmarkMatchMedium_1M
(b *testing.B)
regexp_performance_test.go:268
Function
BenchmarkMatchMedium_32
(b *testing.B)
regexp_performance_test.go:265
Function
BenchmarkMatchMedium_32K
(b *testing.B)
regexp_performance_test.go:267
Function
BenchmarkMatchMedium_32M
(b *testing.B)
regexp_performance_test.go:269
Function
BenchmarkMatchRunesLeadingSetMiss32K
(b *testing.B)
regexp_performance_test.go:335
Function
BenchmarkMatchStringLeadingSetMiss32K
(b *testing.B)
regexp_performance_test.go:323
Function
BenchmarkNotLiteral
(b *testing.B)
regexp_performance_test.go:21
Function
BenchmarkNotOnePassShortA
(b *testing.B)
regexp_performance_test.go:148
Function
BenchmarkNotOnePassShortB
(b *testing.B)
regexp_performance_test.go:172
Function
BenchmarkOnePassLongNotPrefix
(b *testing.B)
regexp_performance_test.go:196
Function
BenchmarkOnePassLongPrefix
(b *testing.B)
regexp_performance_test.go:184
Function
BenchmarkOnePassShortA
(b *testing.B)
regexp_performance_test.go:136
Function
BenchmarkOnePassShortB
(b *testing.B)
regexp_performance_test.go:160
Function
BenchmarkParserPrefixLongLen
(b *testing.B)
regexp_test.go:1529
Function
BenchmarkQuickCaptureElision
(b *testing.B)
regexp_performance_test.go:311
Function
BenchmarkRegexcmp
(b *testing.B)
regexcmp_benchmark_test.go:46
Function
BenchmarkShortSearch
(b *testing.B)
regexp_performance_test.go:378
Function
BenchmarkStringIndexPrefixesFilter
(b *testing.B)
stringprefixfilter_test.go:372
Method
ByteRange
ByteRange returns the UTF-8 byte index and byte length of the captured substring. The first call lazily caches byte offsets on shared match text, so i
match.go:76
Function
Compile
Compile parses a regular expression and returns a compat adapter for it.
compat/regexp.go:23
Method
Dump
()
syntax/optimizations.go:222
Method
Dump
Dump returns the contents of the filter as a human readable string
syntax/prefix.go:593
Method
Dump
()
syntax/tree.go:2120
Method
Execute
(r *Runner)
regexp_codegen_test.go:15
Method
Find
Find returns a slice holding the text of the leftmost match in b.
compat/regexp.go:73
Method
FindAll
FindAll returns a slice of all successive matches in b.
compat/regexp.go:178
Method
FindAllString
FindAllString returns a slice of all successive matches in s.
compat/regexp.go:206
Method
FindAllStringIndex
FindAllStringIndex returns a slice of byte index pairs identifying all successive matches in s.
regexp.go:282
Method
FindAllStringIndex
FindAllStringIndex returns a slice of byte index pairs for all successive matches in s.
compat/regexp.go:218
Method
FindAllStringSubmatch
FindAllStringSubmatch returns a slice of all successive matches and their submatches in s.
compat/regexp.go:251
Method
FindAllSubmatch
FindAllSubmatch returns a slice of all successive matches and their submatches in b.
compat/regexp.go:225
Method
FindFirstChar
(r *Runner)
regexp_codegen_test.go:12
Method
FindReaderIndex
FindReaderIndex returns a two-element slice defining the byte location of the leftmost match in text read from r.
compat/regexp.go:112
Method
FindReaderSubmatchIndex
FindReaderSubmatchIndex returns a slice holding the byte index pairs of the leftmost match and its submatches in text read from r.
compat/regexp.go:167
Method
FindRunesMatchStartingAt
FindRunesMatchStartingAt searches the input rune slice for a Regexp match starting at the startAt index
regexp.go:276
Method
FindStartingLiteral
()
syntax/tree.go:2298
Method
FindString
FindString returns a string holding the text of the leftmost match in s.
compat/regexp.go:92
Method
FindStringIndex
FindStringIndex returns a two-element slice defining the location of the leftmost match in s.
compat/regexp.go:102
Method
FindStringSubmatch
FindStringSubmatch returns a slice of strings holding the text of the leftmost match and its submatches.
compat/regexp.go:147
Method
FindSubmatch
FindSubmatch returns a slice of byte slices holding the text of the leftmost match and its submatches.
compat/regexp.go:124
Function
Fuzz
Fuzz is the input point for go-fuzz
syntax/fuzz.go:7
← previous
next →
601–700 of 981, ranked by callers