Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dlclark/regexp2
/ functions
Functions
1,027 in github.com/dlclark/regexp2
⨍
Functions
1,027
◇
Types & classes
78
↓ 1 callers
Method
scanPythonNamedBackref
()
syntax/parser.go:947
↓ 1 callers
Method
scanRegex
()
syntax/parser.go:513
↓ 1 callers
Method
scanReplacement
* * Simple parsing for replacement patterns */
syntax/parser.go:797
↓ 1 callers
Method
skipChild
Called in Beforechild to prevent further processing of the current child
syntax/prefix.go:151
↓ 1 callers
Function
splitRustRegexTestBlocks
(raw string)
regexp_corpus_rust_test.go:233
↓ 1 callers
Function
splitRustRegexTopLevelArrays
(raw string)
regexp_corpus_rust_test.go:434
↓ 1 callers
Method
stackDescription
(a []int, index int)
runner.go:2162
↓ 1 callers
Method
stackPeek
Technically we are actually peeking at items already popped. So if you want to get and pop the top item from the stack, you do r.stackPop(); r.stackP
runner.go:1291
↓ 1 callers
Method
stackPeekN
get the ith element down on the grouping stack
runner.go:1296
↓ 1 callers
Method
stackPop
()
runner.go:1278
↓ 1 callers
Method
stackPopN
pop framesize items from the grouping stack
runner.go:1283
↓ 1 callers
Method
stackPush
Push onto the grouping stack
runner.go:1266
↓ 1 callers
Method
stackPush2
(I1, I2 int)
runner.go:1271
↓ 1 callers
Method
startGroup
Start a new round for the parser state (in response to an open paren or string start)
syntax/parser.go:2577
↓ 1 callers
Method
startTimeoutWatch
()
runner.go:2227
↓ 1 callers
Function
stopClock
stop the timeout clock in the background should only used for unit tests to abandon the background goroutine
fastclock.go:93
↓ 1 callers
Function
stringByteOffsets
(s string)
match.go:110
↓ 1 callers
Method
stringCode
Returns an index in the string table for a string. uses a map to eliminate duplicates.
syntax/writer.go:592
↓ 1 callers
Function
stringHasLiteralAfterLoop
(input string, searchAt int, literal *syntax.LiteralAfterLoop)
stringprefixfilter.go:369
↓ 1 callers
Function
stripRustRegexComment
(s string)
regexp_corpus_rust_test.go:484
↓ 1 callers
Method
textPos
()
runner.go:1114
↓ 1 callers
Method
textposDescription
()
runner.go:2184
↓ 1 callers
Method
textstart
()
runner.go:1110
↓ 1 callers
Method
textto
(newpos int)
runner.go:1102
↓ 1 callers
Method
tidy
(textpos int)
match.go:194
↓ 1 callers
Method
tidyMatch
(quick bool)
runner.go:2056
↓ 1 callers
Function
toRunePrefixes
(prefixes []string)
syntax/optimizations.go:582
↓ 1 callers
Method
topFC
This is the top.
syntax/prefix.go:146
↓ 1 callers
Method
trackPeek
Technically we are actually peeking at items already popped. So if you want to get and pop the top item from the stack, you do r.trackPop(); r.trackP
runner.go:1256
↓ 1 callers
Method
trackPeekN
get the ith element down on the backtracking stack
runner.go:1261
↓ 1 callers
Method
trackPop
()
runner.go:1243
↓ 1 callers
Method
trackPopN
pop framesize items from the backtracking stack
runner.go:1248
↓ 1 callers
Method
trackPush
()
runner.go:1159
↓ 1 callers
Method
trackPush1
(I1 int)
runner.go:1164
↓ 1 callers
Method
trackPush2
(I1, I2 int)
runner.go:1171
↓ 1 callers
Method
trackPush3
(I1, I2, I3 int)
runner.go:1180
↓ 1 callers
Method
trackPushNeg1
(I1 int)
runner.go:1191
↓ 1 callers
Method
trackPushNeg2
(I1, I2 int)
runner.go:1198
↓ 1 callers
Method
trackpos
push onto the backtracking stack
runner.go:1135
↓ 1 callers
Method
trackto
(newpos int)
runner.go:1106
↓ 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:2099
↓ 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
tryFindPrefix
Processes the node, adding any prefix text to the builder. Returns whether processing should continue with subsequent nodes.
syntax/prefixanalyzer.go:247
↓ 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:756
↓ 1 callers
Method
typeFromCode
Returns ReNode type for zero-length assertions with a \ code.
syntax/parser.go:1616
↓ 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:1267
↓ 1 callers
Method
useOptionM
True if M option altering meaning of $ and ^ is on.
syntax/parser.go:2364
↓ 1 callers
Method
useOptionS
True if S option altering meaning of . is on.
syntax/parser.go:2369
↓ 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:1446
↓ 1 callers
Method
writeStrToBuf
(buf *bytes.Buffer)
syntax/tree.go:257
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
BenchmarkDisjointAlternationDispatch
(b *testing.B)
regexp_performance_test.go:208
Function
BenchmarkDisjointAlternationDispatchLoop
(b *testing.B)
regexp_performance_test.go:242
Function
BenchmarkFindLeadingStringsLeftToRight
(b *testing.B)
regexp_performance_test.go:340
Function
BenchmarkLeading
(b *testing.B)
regexp_performance_test.go:409
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:301
Function
BenchmarkMatchEasy0_1M
(b *testing.B)
regexp_performance_test.go:303
Function
BenchmarkMatchEasy0_32
(b *testing.B)
regexp_performance_test.go:300
Function
BenchmarkMatchEasy0_32K
(b *testing.B)
regexp_performance_test.go:302
Function
BenchmarkMatchEasy0_32M
(b *testing.B)
regexp_performance_test.go:304
Function
BenchmarkMatchEasy1_1K
(b *testing.B)
regexp_performance_test.go:306
Function
BenchmarkMatchEasy1_1M
(b *testing.B)
regexp_performance_test.go:308
Function
BenchmarkMatchEasy1_32
(b *testing.B)
regexp_performance_test.go:305
Function
BenchmarkMatchEasy1_32K
(b *testing.B)
regexp_performance_test.go:307
Function
BenchmarkMatchEasy1_32M
(b *testing.B)
regexp_performance_test.go:309
Function
BenchmarkMatchHard1_1K
(b *testing.B)
regexp_performance_test.go:321
Function
BenchmarkMatchHard1_1M
(b *testing.B)
regexp_performance_test.go:323
Function
BenchmarkMatchHard1_32
(b *testing.B)
regexp_performance_test.go:320
Function
BenchmarkMatchHard1_32K
(b *testing.B)
regexp_performance_test.go:322
Function
BenchmarkMatchHard1_32M
(b *testing.B)
regexp_performance_test.go:324
Function
BenchmarkMatchHard_1K
(b *testing.B)
regexp_performance_test.go:316
Function
BenchmarkMatchHard_1M
(b *testing.B)
regexp_performance_test.go:318
Function
BenchmarkMatchHard_32
(b *testing.B)
regexp_performance_test.go:315
Function
BenchmarkMatchHard_32K
(b *testing.B)
regexp_performance_test.go:317
Function
BenchmarkMatchHard_32M
(b *testing.B)
regexp_performance_test.go:319
Function
BenchmarkMatchLeadingPrefixesRunes_32K
(b *testing.B)
regexp_performance_test.go:326
Function
BenchmarkMatchMedium_1K
(b *testing.B)
regexp_performance_test.go:311
Function
BenchmarkMatchMedium_1M
(b *testing.B)
regexp_performance_test.go:313
Function
BenchmarkMatchMedium_32
(b *testing.B)
regexp_performance_test.go:310
Function
BenchmarkMatchMedium_32K
(b *testing.B)
regexp_performance_test.go:312
Function
BenchmarkMatchMedium_32M
(b *testing.B)
regexp_performance_test.go:314
Function
BenchmarkMatchRunesLeadingSetMiss32K
(b *testing.B)
regexp_performance_test.go:380
Function
BenchmarkMatchStringLeadingSetMiss32K
(b *testing.B)
regexp_performance_test.go:368
Function
BenchmarkNotLiteral
(b *testing.B)
regexp_performance_test.go:21
← previous
next →
601–700 of 1,027, ranked by callers