(c: char)
| 10 | |
| 11 | #[inline(always)] |
| 12 | pub const fn is_non_ascii(c: char) -> bool { |
| 13 | if c as usize >= 0x10000 { |
| 14 | return true; |
| 15 | } |
| 16 | matches!(c, |
| 17 | '\u{00b7}' | '\u{200c}' | '\u{200d}' | '\u{203f}' | '\u{2040}' | |
| 18 | '\u{00c0}'..='\u{00d6}' | '\u{00d8}'..='\u{00f6}' | |
| 19 | '\u{00f8}'..='\u{037d}' | '\u{037f}'..='\u{1fff}' | |
| 20 | '\u{2070}'..='\u{218f}' | '\u{2c00}'..='\u{2fef}' | |
| 21 | '\u{3001}'..='\u{d7ff}' | '\u{f900}'..='\u{fdcf}' | |
| 22 | '\u{fdf0}'..='\u{fffd}' |
| 23 | ) |
| 24 | } |
| 25 | |
| 26 | #[inline(always)] |
| 27 | pub fn is_ident_start(c: char) -> bool { |
no outgoing calls
no test coverage detected