#text #unicode #utilities #iteration

unic-char-range

UNIC — Unicode Character Tools — Character Range and Iteration

4 releases (breaking)

0.9.0 Mar 3, 2019
0.8.0 Jan 2, 2019
0.7.0 Feb 7, 2018
0.6.0 Sep 22, 2017

#832 in Text processing

Download history 56304/week @ 2022-11-26 56133/week @ 2022-12-03 51079/week @ 2022-12-10 62605/week @ 2022-12-17 37783/week @ 2022-12-24 51330/week @ 2022-12-31 64067/week @ 2023-01-07 63387/week @ 2023-01-14 62368/week @ 2023-01-21 70761/week @ 2023-01-28 64478/week @ 2023-02-04 66840/week @ 2023-02-11 68343/week @ 2023-02-18 71390/week @ 2023-02-25 90323/week @ 2023-03-04 64963/week @ 2023-03-11

306,077 downloads per month
Used in 681 crates (20 directly)

MIT/Apache

23KB
353 lines

UNIC — Unicode Character Tools — Character Range

A simple way to control iteration over a range of characters.

Examples

#[macro_use] extern crate unic_char_range;

# fn main() {
for character in chars!('a'..='z') {
    // character is each character in the lowercase english alphabet in order
}

for character in chars!(..) {
    // character is every valid char from lowest codepoint to highest
}
# }

Features

None of these features are included by default; they rely on unstable Rust feature gates.

Dependencies

~0–285KB