(CharGroup g, boolean foldCase)
| 279 | // appendGroup() appends CharGroup |g| to this CharClass, folding iff |
| 280 | // |foldCase|. Does not mutate |g|. |
| 281 | CharClass appendGroup(CharGroup g, boolean foldCase) { |
| 282 | int[] cls = g.cls; |
| 283 | if (foldCase) { |
| 284 | cls = new CharClass().appendFoldedClass(cls).cleanClass().toArray(); |
| 285 | } |
| 286 | return appendClassWithSign(cls, g.sign); |
| 287 | } |
| 288 | |
| 289 | // cmp() returns the ordering of the pair (a[i], a[i+1]) relative to |
| 290 | // (pivotFrom, pivotTo), where the first component of the pair (lo) is |