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

Method getParenStart

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

Source from the content-addressed store, hash-verified

592 ///
593 /// String index
594 public final int getParenStart(int which) {
595 if (which < parenCount) {
596 switch (which) {
597 case 0:
598 return start0;
599
600 case 1:
601 return start1;
602
603 case 2:
604 return start2;
605
606 default:
607 if (startn == null) {
608 allocParens();
609 }
610 return startn[which];
611 }
612 }
613 return -1;
614 }
615
616 /// Returns the end index of a given paren level.
617 ///

Callers 7

getParenMethod · 0.95
getParenLengthMethod · 0.95
matchNodesMethod · 0.95
splitMethod · 0.95
substMethod · 0.95
testMatchAndGroupsMethod · 0.95
invoke2Method · 0.80

Calls 1

allocParensMethod · 0.95

Tested by 1

testMatchAndGroupsMethod · 0.76