unicode-locale-parser 0.1.0

The parser for Unicode Locale Identifiers
Documentation
  • Coverage
  • 29.27%
    12 out of 41 items documented5 out of 5 items with examples
  • Size
  • Source code size: 72.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.79 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • kazupon/unicode-locale-parser
    8 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kazupon

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