Crates.io | unicode-range |
lib.rs | unicode-range |
version | 0.1.0 |
source | src |
created_at | 2024-12-06 14:30:02.200285 |
updated_at | 2024-12-06 14:30:02.200285 |
description | UnicodeRange is a Rust library for parsing and stringifying Unicode ranges. It provides functionality to convert a string representation of Unicode ranges into a vector of code points and vice versa. |
homepage | https://chinese-font.netlify.app/ |
repository | https://github.com/konghaYao/cn-font-split |
max_upload_size | |
id | 1474317 |
size | 6,718 |
UnicodeRange
is a Rust library for parsing and stringifying Unicode ranges. It provides functionality to convert a string representation of Unicode ranges into a vector of code points and vice versa.
use unicode_range::UnicodeRange;
fn main() {
let input = "U+0-7F,U+007F-00FF,U+4??,U+ff65";
let code_points = UnicodeRange::parse(input);
println!("{:?}", code_points);
let stringified = UnicodeRange::stringify(&code_points);
println!("{}", stringified);
}