6 releases (3 breaking)
0.4.0 | Sep 28, 2022 |
---|---|
0.3.0 | Sep 28, 2022 |
0.2.2 | Sep 27, 2022 |
0.1.0 | Sep 24, 2022 |
#691 in Text processing
70 downloads per month
Used in 15 crates
(2 directly)
545KB
9K
SLoC
#[test]
fn test_ascii_range() {
let mut set = CharacterSet::default();
set.insert('a'..'z');
set.insert('A'..'Z');
set.insert('0'..'9');
set.optimize();
assert_eq!(set.count(), 62);
assert!(set.contains('a'));
assert!(!set.contains(' '));
}
Dependencies
~0.5–1MB
~27K SLoC