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

Function fold_variants

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

Case variants to test for ignorecase class membership. */

(c: char)

Source from the content-addressed store, hash-verified

288
289/* Case variants to test for ignorecase class membership. */
290fn fold_variants(c: char) -> [char; 2] {
291 let lo = c.to_lowercase().next().unwrap_or(c);
292 let up = c.to_uppercase().next().unwrap_or(c);
293 [lo, up]
294}
295
296/* Fixed codepoint width of a node, None when it varies. */
297pub fn fixed_len(node: &Node) -> Option<usize> {

Callers 1

class_hitMethod · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected