MCPcopy Create free account

hub / github.com/google/re2j / functions

Functions668 in github.com/google/re2j

↓ 199 callersMethodput
(Machine m, boolean isNew)
java/com/google/re2j/RE2.java:239
↓ 123 callersMethodappend
(int l1, int l2)
java/com/google/re2j/Prog.java:138
↓ 94 callersMethodfail
()
java/com/google/re2j/Compiler.java:75
↓ 69 callersMethodcompile
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 callersMethodmatcher
Creates a new {@code Matcher} matching the pattern against the input. @param input the input string
java/com/google/re2j/Pattern.java:183
↓ 57 callersMethodget
()
java/com/google/re2j/RE2.java:221
↓ 47 callersMethodcc
(int... x)
javatests/com/google/re2j/CharClassTest.java:20
↓ 46 callersMethodassertClass
(CharClass cc, int... expected)
javatests/com/google/re2j/CharClassTest.java:32
↓ 44 callersMethodadd
(Queue q, int pc, int pos, int[] cap, int cond, Thread t)
java/com/google/re2j/Machine.java:383
↓ 42 callersMethodsubstring
Helper: return substring for [start, end).
java/com/google/re2j/Matcher.java:382
↓ 42 callersMethodtoString
()
javatests/com/google/re2j/FindTest.java:71
↓ 39 callersMethodfind
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 callersMethodlength
()
java/com/google/re2j/MatcherInput.java:72
↓ 32 callersMethodisEmpty
()
java/com/google/re2j/Machine.java:50
↓ 30 callersMethodequals
(Object that)
java/com/google/re2j/Regexp.java:319
↓ 28 callersMethodcompile
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 callersMethodgroup
Returns the most recent match. @throws IllegalStateException if there is no match
java/com/google/re2j/Matcher.java:235
↓ 24 callersMethodmore
()
java/com/google/re2j/Parser.java:725
↓ 23 callersMethodskip
(int n)
java/com/google/re2j/Parser.java:740
↓ 21 callersMethodindexOf
(byte[] source, byte[] target, int fromIndex)
java/com/google/re2j/Utils.java:127
↓ 20 callersMethodtestSplit
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 callersMethodappendRange
(int lo, int hi)
java/com/google/re2j/CharClass.java:102
↓ 18 callersMethodcleanClass
()
java/com/google/re2j/CharClass.java:66
↓ 16 callersMethodlookingAt
(char c)
java/com/google/re2j/Parser.java:759
↓ 16 callersMethodpop
()
java/com/google/re2j/Parser.java:90
↓ 15 callersMethodappendLiteral
(int x, int flags)
java/com/google/re2j/CharClass.java:97
↓ 15 callersMethodappendReplacement
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 callersMethodsimpleFold
(int r)
java/com/google/re2j/Unicode.java:109
↓ 15 callersMethodtoArray
()
java/com/google/re2j/CharClass.java:54
↓ 15 callersMethodtoString
()
java/com/google/re2j/RE2.java:286
↓ 14 callersMethodop
(Regexp.Op op)
java/com/google/re2j/Parser.java:215
↓ 14 callersMethodparse
Parse regular expression pattern {@code pattern} with mode flags {@code flags}.
java/com/google/re2j/Parser.java:788
↓ 13 callersMethodappendTail
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 callersMethoddoExecute
(MachineInput in, int pos, int anchor, int ncap)
java/com/google/re2j/RE2.java:294
↓ 13 callersMethodmatcher
(String str)
benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java:89
↓ 13 callersMethodstart
Returns the start position of the most recent match. @throws IllegalStateException if there is no match
java/com/google/re2j/Matcher.java:149
↓ 12 callersMethodend
Returns the end position of the most recent match. @throws IllegalStateException if there is no match
java/com/google/re2j/Matcher.java:158
↓ 12 callersMethodi
(int... x)
javatests/com/google/re2j/CharClassTest.java:24
↓ 12 callersMethodmatch
Returns true iff this regexp matches the string {@code s}.
java/com/google/re2j/RE2.java:316
↓ 12 callersMethodmatches
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 callersMethodnewRegexp
(Regexp.Op op)
java/com/google/re2j/Parser.java:69
↓ 11 callersMethodadd
(int codepoint)
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:414
↓ 11 callersMethodfrom
(int beforePos)
java/com/google/re2j/Parser.java:775
↓ 11 callersMethodfromUTF16
(CharSequence s)
java/com/google/re2j/MachineInput.java:28
↓ 11 callersMethodpos
()
java/com/google/re2j/Parser.java:715
↓ 11 callersMethodpush
(Regexp re)
java/com/google/re2j/Parser.java:106
↓ 11 callersMethodreuse
(Regexp re)
java/com/google/re2j/Parser.java:81
↓ 11 callersMethodtestMatchesRE2
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 callersMethodfromUTF8
(byte[] b)
java/com/google/re2j/MachineInput.java:20
↓ 10 callersMethodrest
()
java/com/google/re2j/Parser.java:769
↓ 10 callersMethodsubarray
(int[] array, int start, int end)
java/com/google/re2j/Utils.java:108
↓ 10 callersMethodtestReplaceAll
(String orig, String regex, String repl, String actual)
javatests/com/google/re2j/ApiTestUtils.java:112
↓ 10 callersMethodutf8
Return the MatcherInput for UTF_8 encoding.
java/com/google/re2j/MatcherInput.java:31
↓ 9 callersMethodgetUtf8Bytes
(String string)
javatests/com/google/re2j/ApiTestUtils.java:260
↓ 9 callersMethodlen
(Object[] array)
javatests/com/google/re2j/GoTestUtils.java:15
↓ 9 callersMethodnewInst
(int op)
java/com/google/re2j/Compiler.java:62
↓ 9 callersMethodtestProgramSize
(String pattern, int expectedSize)
javatests/com/google/re2j/ApiTestUtils.java:163
↓ 9 callersMethodtestReplaceFirst
(String orig, String regex, String repl, String actual)
javatests/com/google/re2j/ApiTestUtils.java:129
↓ 8 callersMethodallMatches
(MachineInput input, int n, DeliverFunc deliver)
java/com/google/re2j/RE2.java:535
↓ 8 callersMethoddump
(Regexp re)
javatests/com/google/re2j/ParserTest.java:364
↓ 8 callersMethodgetName
()
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:450
↓ 8 callersMethodmatches
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 callersMethodpeek
()
java/com/google/re2j/Parser.java:731
↓ 8 callersMethodrewindTo
(int pos)
java/com/google/re2j/Parser.java:720
↓ 8 callersMethodutf16
Return the MatcherInput for UTF_16 encoding.
java/com/google/re2j/MatcherInput.java:24
↓ 7 callersMethodappendFoldedRange
(int lo, int hi)
java/com/google/re2j/CharClass.java:133
↓ 7 callersMethodfromUTF8
(byte[] b)
javatests/com/google/re2j/GoTestUtils.java:36
↓ 7 callersMethodstep
( Queue runq, Queue nextq, int pos, int nextPos, int c, int nextCond,
java/com/google/re2j/Machine.java:310
↓ 6 callersMethodappendTable
(int[][] table)
java/com/google/re2j/CharClass.java:202
↓ 6 callersMethodassertNamedGroupsEquals
(Map<String, Integer> expected, String pattern)
javatests/com/google/re2j/PatternTest.java:199
↓ 6 callersMethodempty
(int op)
java/com/google/re2j/Compiler.java:168
↓ 6 callersMethodescapeRune
(StringBuilder out, int rune)
java/com/google/re2j/Utils.java:39
↓ 6 callersMethodgetInst
(int pc)
java/com/google/re2j/Prog.java:30
↓ 6 callersMethodis
(int[][] ranges, int r)
java/com/google/re2j/Unicode.java:54
↓ 6 callersMethodof
(F first, S second)
java/com/google/re2j/Parser.java:1719
↓ 6 callersMethodsimplify1
(Regexp.Op op, int flags, Regexp sub, Regexp re)
java/com/google/re2j/Simplify.java:154
↓ 6 callersMethodsubarray
(Regexp[] array, int start, int end)
java/com/google/re2j/Parser.java:1702
↓ 6 callersMethodtestFind
(String text, String regexp, int start, String output)
javatests/com/google/re2j/ApiTestUtils.java:211
↓ 6 callersMethodtestGroupCount
(String pattern, int count)
javatests/com/google/re2j/ApiTestUtils.java:146
↓ 6 callersMethodtoLowerCase
(int codePoint)
java/com/google/re2j/Characters.java:13
↓ 5 callersMethodappendClass
(int[] x)
java/com/google/re2j/CharClass.java:166
↓ 5 callersMethodcompile
(Blackhole bh)
benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkCompile.java:28
↓ 5 callersMethodfinish
()
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:438
↓ 5 callersMethodisCharClass
(Regexp re)
java/com/google/re2j/Parser.java:1184
↓ 5 callersMethodmatches
()
benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java:17
↓ 5 callersMethodparseInt
(StringIterator t)
java/com/google/re2j/Parser.java:1166
↓ 5 callersMethodreset
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 callersMethodskipString
(String s)
java/com/google/re2j/Parser.java:745
↓ 5 callersMethodtestMatches
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 callersMethodtestParseDump
(String[][] tests, int flags)
javatests/com/google/re2j/ParserTest.java:350
↓ 5 callersMethodunquote
(String s)
javatests/com/google/re2j/Strconv.java:142
↓ 4 callersMethodaddMakeMethod
(CodepointRange r)
unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java:298
↓ 4 callersMethodappendFoldedClass
(int[] x)
java/com/google/re2j/CharClass.java:175
↓ 4 callersMethodappendGroup
(CharGroup g, boolean foldCase)
java/com/google/re2j/CharClass.java:281
↓ 4 callersMethodcat
(Frag f1, Frag f2)
java/com/google/re2j/Compiler.java:92
↓ 4 callersMethodcollapse
(Regexp[] subs, Regexp.Op op)
java/com/google/re2j/Parser.java:318
↓ 4 callersMethodcompileImpl
(String expr, int mode, boolean longest)
java/com/google/re2j/RE2.java:184
↓ 4 callersMethodfind
()
benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java:15
↓ 4 callersMethodflags
Returns the flags used in the constructor.
java/com/google/re2j/Pattern.java:86
↓ 4 callersMethodfree
(Queue queue)
java/com/google/re2j/Machine.java:181
next →1–100 of 668, ranked by callers