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

Method reset

java/com/google/re2j/Matcher.java:107–113  ·  view source on GitHub ↗

Resets the Matcher, rewinding input and discarding any match information. @return the Matcher itself, for chained method calls

()

Source from the content-addressed store, hash-verified

105 * @return the {@code Matcher} itself, for chained method calls
106 */
107 public Matcher reset() {
108 inputLength = matcherInput.length();
109 appendPos = 0;
110 hasMatch = false;
111 hasGroups = false;
112 return this;
113 }
114
115 /**
116 * Resets the {@code Matcher} and changes the input.

Callers 4

testDocumentedExampleMethod · 0.95
MatcherMethod · 0.95
findMethod · 0.95
replaceMethod · 0.95

Calls 3

utf16Method · 0.95
utf8Method · 0.95
lengthMethod · 0.45

Tested by 1

testDocumentedExampleMethod · 0.76