unicode-locale-parser

Crates.iounicode-locale-parser
lib.rsunicode-locale-parser
version0.1.0
sourcesrc
created_at2024-01-09 01:25:06.406158
updated_at2024-01-09 01:25:06.406158
descriptionThe parser for Unicode Locale Identifiers
homepage
repositoryhttps://github.com/kazupon/unicode-locale-parser
max_upload_size
id1093193
size72,685
kazuya kawaguchi (kazupon)

documentation

README

unicode-locale-parser

CI

The parser for Unicode Locale Identifiers

⛏ī¸ Conformance

All code implements of Unicode UTS #35 Language and Locale Identifiers.

🚀 Usages

use unicode_locale_parser::parse_locale_id;

fn main() {
    // simple language
    let locale = parse_locale_id("ja-JP");
    println!("{:#?}", locale);

    // language & unicode locale extension
    let locale = parse_locale_id("de-Latn-DE-u-ca-buddhist");
    println!("{:#?}", locale);
}

🤝 API

✅ TODO

  • Locale Id Canonicalization
  • Split some packages with Cargo workspace
  • Performance
    • should optimize for string processor with using like TinyStr
  • Add more convenient manipulation API for Locale
  • Some Trait implementation
    • Eq, Clone, Default, Hash, PartialOrd and Ord

Šī¸ License

MIT

Commit count: 0

cargo fmt