MCPcopy Create free account
hub / github.com/google/re2j / parse

Method parse

java/com/google/re2j/Parser.java:788–790  ·  view source on GitHub ↗

Parse regular expression pattern pattern with mode flags flags.

(String pattern, int flags)

Source from the content-addressed store, hash-verified

786 * Parse regular expression pattern {@code pattern} with mode flags {@code flags}.
787 */
788 static Regexp parse(String pattern, int flags) throws PatternSyntaxException {
789 return new Parser(pattern, flags).parseInternal();
790 }
791
792 private Regexp parseInternal() throws PatternSyntaxException {
793 if ((flags & RE2.LITERAL) != 0) {

Callers 7

testCompileMethod · 0.95
testEqualsMethod · 0.95
testParseDumpMethod · 0.95
testSimplifyMethod · 0.95
compileImplMethod · 0.95

Calls 1

parseInternalMethod · 0.80

Tested by 6

testCompileMethod · 0.76
testEqualsMethod · 0.76
testParseDumpMethod · 0.76
testSimplifyMethod · 0.76