MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / class_hit

Method class_hit

std/re/src/main/matcher.rs:224–232  ·  view source on GitHub ↗

Class membership, widening by case when ignorecase is set. */

(&self, items: &[ClassItem], c: char)

Source from the content-addressed store, hash-verified

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; }

Callers 1

single_matchMethod · 0.80

Calls 2

class_containsFunction · 0.85
fold_variantsFunction · 0.85

Tested by

no test coverage detected