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

Method getParenEnd

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

Source from the content-addressed store, hash-verified

623 ///
624 /// String index
625 public final int getParenEnd(int which) {
626 if (which < parenCount) {
627 switch (which) {
628 case 0:
629 return end0;
630
631 case 1:
632 return end1;
633
634 case 2:
635 return end2;
636
637 default:
638 if (endn == null) {
639 allocParens();
640 }
641 return endn[which];
642 }
643 }
644 return -1;
645 }
646
647 /// Returns the length of a given paren level.
648 ///

Callers 8

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