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

Method setParenEnd

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

Source from the content-addressed store, hash-verified

700 ///
701 /// - `i`: Index in input array
702 protected final void setParenEnd(int which, int i) {
703 if (which < parenCount) {
704 switch (which) {
705 case 0:
706 end0 = i;
707 break;
708
709 case 1:
710 end1 = i;
711 break;
712
713 case 2:
714 end2 = i;
715 break;
716
717 default:
718 if (endn == null) {
719 allocParens();
720 }
721 endn[which] = i;
722 break;
723 }
724 }
725 }
726
727 /// Throws an Error representing an internal error condition probably resulting
728 /// from a bug in the regular expression compiler (or possibly data corruption).

Callers 2

matchNodesMethod · 0.95
matchAtMethod · 0.95

Calls 1

allocParensMethod · 0.95

Tested by

no test coverage detected