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

Method groupCount

java/com/google/re2j/Pattern.java:323–325  ·  view source on GitHub ↗

Returns the number of capturing groups in this matcher's pattern. Group zero denotes the entire pattern and is excluded from this count. @return the number of capturing groups in this pattern

()

Source from the content-addressed store, hash-verified

321 * @return the number of capturing groups in this pattern
322 */
323 public int groupCount() {
324 return re2.numberOfCapturingGroups();
325 }
326
327 /**
328 * Return a map of the capturing groups in this matcher's pattern, where key is the name and value

Callers 1

testGroupCountMethod · 0.95

Calls 1

Tested by 1

testGroupCountMethod · 0.76