2 stable releases
1.0.1 | Oct 14, 2024 |
---|
#1023 in Encoding
313 downloads per month
Used in huski
23KB
451 lines
huski-lib
Facility for working with ASCII table and its views into it. Lib component of huski.
See also huski-lib-core.
use huski_lib_core::ranges::{ranges, Ranges};
use huski_lib::acquire;
let rs = acquire(Ranges::Capital);
assert_eq!('A', rs[0].code() as char);
assert_eq!('Z', rs[25].code() as char);
use huski_lib_core::ranges::LETTERS;
use huski_lib::codes;
let cs = codes(&LETTERS);
assert_eq!(52, cs.len());
assert_eq!('A', cs[0].code() as char);
assert_eq!('z', cs[51].code() as char);
lib.rs
:
American Standard Code for Information Interchange table aide library.