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

Method setParenStart

CodenameOne/src/com/codename1/util/regex/RE.java:670–693  ·  view source on GitHub ↗
(int which, int i)

Source from the content-addressed store, hash-verified

668 ///
669 /// - `i`: Index in input array
670 protected final void setParenStart(int which, int i) {
671 if (which < parenCount) {
672 switch (which) {
673 case 0:
674 start0 = i;
675 break;
676
677 case 1:
678 start1 = i;
679 break;
680
681 case 2:
682 start2 = i;
683 break;
684
685 default:
686 if (startn == null) {
687 allocParens();
688 }
689 startn[which] = i;
690 break;
691 }
692 }
693 }
694
695 /// Sets the end of a paren level
696 ///

Callers 2

matchNodesMethod · 0.95
matchAtMethod · 0.95

Calls 1

allocParensMethod · 0.95

Tested by

no test coverage detected