| 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|. |