(int r, int flags)
| 180 | |
| 181 | // newLiteral returns a new LITERAL Regexp with the given flags |
| 182 | private Regexp newLiteral(int r, int flags) { |
| 183 | Regexp re = newRegexp(Regexp.Op.LITERAL); |
| 184 | re.flags = flags; |
| 185 | if ((flags & RE2.FOLD_CASE) != 0) { |
| 186 | r = minFoldRune(r); |
| 187 | } |
| 188 | re.runes = new int[] {r}; |
| 189 | return re; |
| 190 | } |
| 191 | |
| 192 | // minFoldRune returns the minimum rune fold-equivalent to r. |
| 193 | private static int minFoldRune(int r) { |
no test coverage detected