pub const fn is_ascii_tab_newline(c: char) -> bool
Expand description
Checks if a codepoint is equivalent to one of three ASCII whitespace codepoints
- U+0009 TAB
- U+000A LINE FEED (LF)
- U+000D CARRIAGE RETURN (CR)
See also: WHATWG Infra Standard definition
ยงExamples
use whatwg_infra::scalar::is_ascii_tab_newline;
assert!(is_ascii_tab_newline('\t'));
assert!(is_ascii_tab_newline('\r'));
assert!(is_ascii_tab_newline('\n'));
assert!(!is_ascii_tab_newline('a'));