unicode-range

Crates.iounicode-range
lib.rsunicode-range
version0.1.0
sourcesrc
created_at2024-12-06 14:30:02.200285
updated_at2024-12-06 14:30:02.200285
descriptionUnicodeRange 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.
homepagehttps://chinese-font.netlify.app/
repositoryhttps://github.com/konghaYao/cn-font-split
max_upload_size
id1474317
size6,718
江夏尧 (KonghaYao)

documentation

README

UnicodeRange

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.

Usage

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);
}
Commit count: 125

cargo fmt