Class membership, widening by case when ignorecase is set. */
(&self, items: &[ClassItem], c: char)
| 222 | |
| 223 | /* Class membership, widening by case when ignorecase is set. */ |
| 224 | fn class_hit(&self, items: &[ClassItem], c: char) -> bool { |
| 225 | if class_contains(items, c) { return true; } |
| 226 | if self.flags.ignorecase { |
| 227 | for alt in fold_variants(c) { |
| 228 | if alt != c && class_contains(items, alt) { return true; } |
| 229 | } |
| 230 | } |
| 231 | false |
| 232 | } |
| 233 | |
| 234 | fn ci_eq(&self, a: char, b: char) -> bool { |
| 235 | if a == b { return true; } |
no test coverage detected