MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getParen

Method getParen

CodenameOne/src/com/codename1/util/regex/RE.java:577–583  ·  view source on GitHub ↗
(int which)

Source from the content-addressed store, hash-verified

575 ///
576 /// String
577 public String getParen(int which) {
578 int start;
579 if (which < parenCount && (start = getParenStart(which)) >= 0) { //NOPMD AssignmentInOperand
580 return search.substring(start, getParenEnd(which));
581 }
582 return null;
583 }
584
585 /// Returns the start index of a given paren level.
586 ///

Callers 5

substMethod · 0.95
testMatchAndGroupsMethod · 0.95
invoke2Method · 0.80

Calls 3

getParenStartMethod · 0.95
getParenEndMethod · 0.95
substringMethod · 0.65

Tested by 2

testMatchAndGroupsMethod · 0.76