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

Method appendTable

java/com/google/re2j/CharClass.java:202–214  ·  view source on GitHub ↗
(int[][] table)

Source from the content-addressed store, hash-verified

200 // appendTable() appends the Unicode range table |table| to this CharClass.
201 // Does not mutate |table|.
202 CharClass appendTable(int[][] table) {
203 for (int[] triple : table) {
204 int lo = triple[0], hi = triple[1], stride = triple[2];
205 if (stride == 1) {
206 appendRange(lo, hi);
207 continue;
208 }
209 for (int c = lo; c <= hi; c += stride) {
210 appendRange(c, c);
211 }
212 }
213 return this;
214 }
215
216 // appendNegatedTable() returns the result of appending the negation of range
217 // table |table| to this CharClass. Does not mutate |table|.

Callers 3

appendTableWithSignMethod · 0.95
testAppendTableMethod · 0.80
parseUnicodeClassMethod · 0.80

Calls 1

appendRangeMethod · 0.95

Tested by 1

testAppendTableMethod · 0.64