Crate locale-types

travis.ci crates.io docs.rs Minimum Rust Version mit License GitHub stars

This crate provides a Locale enumeration, and a LocaleString structure are provided that may be used to parse and construct locale identifiers in a standards-conformant manner.

It is used by the locale-codes and locale-settings crates.

Example

```rust use simple_locale::LocaleString;

let locale = LocaleString::new("en".tostring()) .withterritory("US".tostring()) .withcodeset("UTF-8".tostring()) .withmodifier("collation=pinyin;currency=CNY".tostring()); println!("{}", locale); ```

History