()
| 52 | // operations may mutate this array, so typically this is the last operation |
| 53 | // performed on a given CharClass instance. |
| 54 | int[] toArray() { |
| 55 | if (this.len == r.length) { |
| 56 | return r; |
| 57 | } else { |
| 58 | int[] r2 = new int[len]; |
| 59 | System.arraycopy(r, 0, r2, 0, len); |
| 60 | return r2; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // cleanClass() sorts the ranges (pairs of elements) of this CharClass, |
| 65 | // merges them, and eliminates duplicates. |
no outgoing calls