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

Method match

java/com/google/re2j/RE2.java:316–318  ·  view source on GitHub ↗

Returns true iff this regexp matches the string s.

(CharSequence s)

Source from the content-addressed store, hash-verified

314 * Returns true iff this regexp matches the string {@code s}.
315 */
316 boolean match(CharSequence s) {
317 return doExecute(MachineInput.fromUTF16(s), 0, UNANCHORED, 0) != null;
318 }
319
320 boolean match(CharSequence input, int start, int end, int anchor, int[] group, int ngroup) {
321 return match(MatcherInput.utf16(input), start, end, anchor, group, ngroup);

Callers 7

testFindEndMethod · 0.95
testMatchMethod · 0.95
testMatchFunctionMethod · 0.95
testRE2Method · 0.95
testFowlerMethod · 0.95
loadGroupMethod · 0.45
genMatchMethod · 0.45

Calls 8

doExecuteMethod · 0.95
fromUTF16Method · 0.95
utf16Method · 0.95
fromUTF8Method · 0.95
compileMethod · 0.95
getEncodingMethod · 0.45
asCharSequenceMethod · 0.45
asBytesMethod · 0.45

Tested by 5

testFindEndMethod · 0.76
testMatchMethod · 0.76
testMatchFunctionMethod · 0.76
testRE2Method · 0.76
testFowlerMethod · 0.76