Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/re2j
/ functions
Functions
668 in github.com/google/re2j
⨍
Functions
668
◇
Types & classes
78
↓ 199 callers
Method
put
(Machine m, boolean isNew)
java/com/google/re2j/RE2.java:239
↓ 123 callers
Method
append
(int l1, int l2)
java/com/google/re2j/Prog.java:138
↓ 94 callers
Method
fail
()
java/com/google/re2j/Compiler.java:75
↓ 69 callers
Method
compile
Creates and returns a new {@code Pattern} corresponding to compiling {@code regex} with the default flags (0). @param regex the regular expression @t
java/com/google/re2j/Pattern.java:108
↓ 60 callers
Method
matcher
Creates a new {@code Matcher} matching the pattern against the input. @param input the input string
java/com/google/re2j/Pattern.java:183
↓ 57 callers
Method
get
()
java/com/google/re2j/RE2.java:221
↓ 47 callers
Method
cc
(int... x)
javatests/com/google/re2j/CharClassTest.java:20
↓ 46 callers
Method
assertClass
(CharClass cc, int... expected)
javatests/com/google/re2j/CharClassTest.java:32
↓ 44 callers
Method
add
(Queue q, int pc, int pos, int[] cap, int cond, Thread t)
java/com/google/re2j/Machine.java:383
↓ 42 callers
Method
substring
Helper: return substring for [start, end).
java/com/google/re2j/Matcher.java:382
↓ 42 callers
Method
toString
()
javatests/com/google/re2j/FindTest.java:71
↓ 39 callers
Method
find
Matches the input against the pattern (unanchored). The search begins at the end of the last match, or else the beginning of the input. If there is a
java/com/google/re2j/Matcher.java:339
↓ 37 callers
Method
length
()
java/com/google/re2j/MatcherInput.java:72
↓ 32 callers
Method
isEmpty
()
java/com/google/re2j/Machine.java:50
↓ 30 callers
Method
equals
(Object that)
java/com/google/re2j/Regexp.java:319
↓ 28 callers
Method
compile
Parses a regular expression and returns, if successful, an {@code RE2} instance that can be used to match against text. <p> When matching against tex
java/com/google/re2j/RE2.java:157
↓ 28 callers
Method
group
Returns the most recent match. @throws IllegalStateException if there is no match
java/com/google/re2j/Matcher.java:235
↓ 24 callers
Method
more
()
java/com/google/re2j/Parser.java:725
↓ 23 callers
Method
skip
(int n)
java/com/google/re2j/Parser.java:740
↓ 21 callers
Method
indexOf
(byte[] source, byte[] target, int fromIndex)
java/com/google/re2j/Utils.java:127
↓ 20 callers
Method
testSplit
Tests that both RE2 and JDK split the string on the regex in the same way, and that that way matches our expectations.
javatests/com/google/re2j/ApiTestUtils.java:99
↓ 19 callers
Method
appendRange
(int lo, int hi)
java/com/google/re2j/CharClass.java:102
↓ 18 callers
Method
cleanClass
()
java/com/google/re2j/CharClass.java:66
↓ 16 callers
Method
lookingAt
(char c)
java/com/google/re2j/Parser.java:759
↓ 16 callers
Method
pop
()
java/com/google/re2j/Parser.java:90
↓ 15 callers
Method
appendLiteral
(int x, int flags)
java/com/google/re2j/CharClass.java:97
↓ 15 callers
Method
appendReplacement
Appends to {@code sb} two strings: the text from the append position up to the beginning of the most recent match, and then the replacement with subma
java/com/google/re2j/Matcher.java:445
↓ 15 callers
Method
simpleFold
(int r)
java/com/google/re2j/Unicode.java:109
↓ 15 callers
Method
toArray
()
java/com/google/re2j/CharClass.java:54
↓ 15 callers
Method
toString
()
java/com/google/re2j/RE2.java:286
↓ 14 callers
Method
op
(Regexp.Op op)
java/com/google/re2j/Parser.java:215
↓ 14 callers
Method
parse
Parse regular expression pattern {@code pattern} with mode flags {@code flags}.
java/com/google/re2j/Parser.java:788
↓ 13 callers
Method
appendTail
Appends to {@code sb} the substring of the input from the append position to the end of the input. @param sb the {@link StringBuffer} to append to @r
java/com/google/re2j/Matcher.java:554
↓ 13 callers
Method
doExecute
(MachineInput in, int pos, int anchor, int ncap)
java/com/google/re2j/RE2.java:294
↓ 13 callers
Method
matcher
(String str)
benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java:89
↓ 13 callers
Method
start
Returns the start position of the most recent match. @throws IllegalStateException if there is no match
java/com/google/re2j/Matcher.java:149
↓ 12 callers
Method
end
Returns the end position of the most recent match. @throws IllegalStateException if there is no match
java/com/google/re2j/Matcher.java:158
↓ 12 callers
Method
i
(int... x)
javatests/com/google/re2j/CharClassTest.java:24
↓ 12 callers
Method
match
Returns true iff this regexp matches the string {@code s}.
java/com/google/re2j/RE2.java:316
↓ 12 callers
Method
matches
Matches the entire input against the pattern (anchored start and end). If there is a match, {@code matches} sets the match state to describe it. @ret
java/com/google/re2j/Matcher.java:318
↓ 12 callers
Method
newRegexp
(Regexp.Op op)
java/com/google/re2j/Parser.java:69
↓ 11 callers
Method
add
(int codepoint)
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:414
↓ 11 callers
Method
from
(int beforePos)
java/com/google/re2j/Parser.java:775
↓ 11 callers
Method
fromUTF16
(CharSequence s)
java/com/google/re2j/MachineInput.java:28
↓ 11 callers
Method
pos
()
java/com/google/re2j/Parser.java:715
↓ 11 callers
Method
push
(Regexp re)
java/com/google/re2j/Parser.java:106
↓ 11 callers
Method
reuse
(Regexp re)
java/com/google/re2j/Parser.java:81
↓ 11 callers
Method
testMatchesRE2
This takes a regex and it's compile time flags, a string that is expected to match the regex and a string that is not expected to match the regex. We
javatests/com/google/re2j/ApiTestUtils.java:86
↓ 10 callers
Method
fromUTF8
(byte[] b)
java/com/google/re2j/MachineInput.java:20
↓ 10 callers
Method
rest
()
java/com/google/re2j/Parser.java:769
↓ 10 callers
Method
subarray
(int[] array, int start, int end)
java/com/google/re2j/Utils.java:108
↓ 10 callers
Method
testReplaceAll
(String orig, String regex, String repl, String actual)
javatests/com/google/re2j/ApiTestUtils.java:112
↓ 10 callers
Method
utf8
Return the MatcherInput for UTF_8 encoding.
java/com/google/re2j/MatcherInput.java:31
↓ 9 callers
Method
getUtf8Bytes
(String string)
javatests/com/google/re2j/ApiTestUtils.java:260
↓ 9 callers
Method
len
(Object[] array)
javatests/com/google/re2j/GoTestUtils.java:15
↓ 9 callers
Method
newInst
(int op)
java/com/google/re2j/Compiler.java:62
↓ 9 callers
Method
testProgramSize
(String pattern, int expectedSize)
javatests/com/google/re2j/ApiTestUtils.java:163
↓ 9 callers
Method
testReplaceFirst
(String orig, String regex, String repl, String actual)
javatests/com/google/re2j/ApiTestUtils.java:129
↓ 8 callers
Method
allMatches
(MachineInput input, int n, DeliverFunc deliver)
java/com/google/re2j/RE2.java:535
↓ 8 callers
Method
dump
(Regexp re)
javatests/com/google/re2j/ParserTest.java:364
↓ 8 callers
Method
getName
()
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:450
↓ 8 callers
Method
matches
Matches a string against a regular expression. @param regex the regular expression @param input the input @return true if the regular expression matc
java/com/google/re2j/Pattern.java:162
↓ 8 callers
Method
peek
()
java/com/google/re2j/Parser.java:731
↓ 8 callers
Method
rewindTo
(int pos)
java/com/google/re2j/Parser.java:720
↓ 8 callers
Method
utf16
Return the MatcherInput for UTF_16 encoding.
java/com/google/re2j/MatcherInput.java:24
↓ 7 callers
Method
appendFoldedRange
(int lo, int hi)
java/com/google/re2j/CharClass.java:133
↓ 7 callers
Method
fromUTF8
(byte[] b)
javatests/com/google/re2j/GoTestUtils.java:36
↓ 7 callers
Method
step
( Queue runq, Queue nextq, int pos, int nextPos, int c, int nextCond,
java/com/google/re2j/Machine.java:310
↓ 6 callers
Method
appendTable
(int[][] table)
java/com/google/re2j/CharClass.java:202
↓ 6 callers
Method
assertNamedGroupsEquals
(Map<String, Integer> expected, String pattern)
javatests/com/google/re2j/PatternTest.java:199
↓ 6 callers
Method
empty
(int op)
java/com/google/re2j/Compiler.java:168
↓ 6 callers
Method
escapeRune
(StringBuilder out, int rune)
java/com/google/re2j/Utils.java:39
↓ 6 callers
Method
getInst
(int pc)
java/com/google/re2j/Prog.java:30
↓ 6 callers
Method
is
(int[][] ranges, int r)
java/com/google/re2j/Unicode.java:54
↓ 6 callers
Method
of
(F first, S second)
java/com/google/re2j/Parser.java:1719
↓ 6 callers
Method
simplify1
(Regexp.Op op, int flags, Regexp sub, Regexp re)
java/com/google/re2j/Simplify.java:154
↓ 6 callers
Method
subarray
(Regexp[] array, int start, int end)
java/com/google/re2j/Parser.java:1702
↓ 6 callers
Method
testFind
(String text, String regexp, int start, String output)
javatests/com/google/re2j/ApiTestUtils.java:211
↓ 6 callers
Method
testGroupCount
(String pattern, int count)
javatests/com/google/re2j/ApiTestUtils.java:146
↓ 6 callers
Method
toLowerCase
(int codePoint)
java/com/google/re2j/Characters.java:13
↓ 5 callers
Method
appendClass
(int[] x)
java/com/google/re2j/CharClass.java:166
↓ 5 callers
Method
compile
(Blackhole bh)
benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkCompile.java:28
↓ 5 callers
Method
finish
()
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:438
↓ 5 callers
Method
isCharClass
(Regexp re)
java/com/google/re2j/Parser.java:1184
↓ 5 callers
Method
matches
()
benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java:17
↓ 5 callers
Method
parseInt
(StringIterator t)
java/com/google/re2j/Parser.java:1166
↓ 5 callers
Method
reset
Resets the {@code Matcher}, rewinding input and discarding any match information. @return the {@code Matcher} itself, for chained method calls
java/com/google/re2j/Matcher.java:107
↓ 5 callers
Method
skipString
(String s)
java/com/google/re2j/Parser.java:745
↓ 5 callers
Method
testMatches
Tests that both RE2's and JDK's pattern class act as we expect them. The regular expression {@code regexp} matches the string {@code match} and doesn'
javatests/com/google/re2j/ApiTestUtils.java:30
↓ 5 callers
Method
testParseDump
(String[][] tests, int flags)
javatests/com/google/re2j/ParserTest.java:350
↓ 5 callers
Method
unquote
(String s)
javatests/com/google/re2j/Strconv.java:142
↓ 4 callers
Method
addMakeMethod
(CodepointRange r)
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:298
↓ 4 callers
Method
appendFoldedClass
(int[] x)
java/com/google/re2j/CharClass.java:175
↓ 4 callers
Method
appendGroup
(CharGroup g, boolean foldCase)
java/com/google/re2j/CharClass.java:281
↓ 4 callers
Method
cat
(Frag f1, Frag f2)
java/com/google/re2j/Compiler.java:92
↓ 4 callers
Method
collapse
(Regexp[] subs, Regexp.Op op)
java/com/google/re2j/Parser.java:318
↓ 4 callers
Method
compileImpl
(String expr, int mode, boolean longest)
java/com/google/re2j/RE2.java:184
↓ 4 callers
Method
find
()
benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java:15
↓ 4 callers
Method
flags
Returns the flags used in the constructor.
java/com/google/re2j/Pattern.java:86
↓ 4 callers
Method
free
(Queue queue)
java/com/google/re2j/Machine.java:181
next →
1–100 of 668, ranked by callers