MCPcopy Create free account
hub / github.com/google/re2j / append

Method append

java/com/google/re2j/Prog.java:138–160  ·  view source on GitHub ↗
(int l1, int l2)

Source from the content-addressed store, hash-verified

136 }
137
138 int append(int l1, int l2) {
139 if (l1 == 0) {
140 return l2;
141 }
142 if (l2 == 0) {
143 return l1;
144 }
145 int last = l1;
146 for (; ; ) {
147 int next = next(last);
148 if (next == 0) {
149 break;
150 }
151 last = next;
152 }
153 Inst i = inst[last >> 1];
154 if ((last & 1) == 0) {
155 i.out = l2;
156 } else {
157 i.arg = l2;
158 }
159 return l1;
160 }
161
162 // ---
163

Callers 15

addMethod · 0.80
finishMethod · 0.80
dumpRegexpMethod · 0.80
readLineMethod · 0.80
quoteReplacementMethod · 0.80
appendReplacementMethod · 0.80
appendTailMethod · 0.80
escapeRuneMethod · 0.80
toStringMethod · 0.80
toStringMethod · 0.80
quoteIfHyphenMethod · 0.80

Calls 1

nextMethod · 0.95

Tested by 2

dumpRegexpMethod · 0.64
readLineMethod · 0.64