MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / contains

Method contains

src/rgx.rs:54–67  ·  view source on GitHub ↗
(&self, c: char)

Source from the content-addressed store, hash-verified

52 }
53 }
54 fn contains(&self, c: char) -> bool
55 {
56 match self
57 {
58 MetaCharacter::Any => true,
59 MetaCharacter::Num => c.is_numeric(),
60 MetaCharacter::Whitespace => c.is_whitespace(),
61 MetaCharacter::Alphanum => c.is_alphanumeric(),
62 MetaCharacter::NonNum => !c.is_numeric(),
63 MetaCharacter::NonWhitespace => !c.is_whitespace(),
64 MetaCharacter::NonAlphanum => !c.is_alphanumeric(),
65 MetaCharacter::Lit(lc) => c == *lc,
66 }
67 }
68}
69
70

Callers 13

ismatch_hereFunction · 0.80
ismatch_charFunction · 0.80
end_textFunction · 0.80
end_transFunction · 0.80
dec_wFunction · 0.80
left_btn_downMethod · 0.80
left_btn_upMethod · 0.80
right_btn_downMethod · 0.80
right_btn_upMethod · 0.80
proc_packetMethod · 0.80
proc_x_movementMethod · 0.80
proc_y_movementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected