namespace icu4x { /** *AnICU4XLocale,capableofrepresentingstringslike`"en-US"`. * *Seethe[Rustdocumentationfor`Locale`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html) for more information.
*/ class Locale {
public:
/** *Constructan{@linkLocale}fromanlocaleidentifier. * *Thiswillrunthecompletelocaleparsingalgorithm.Ifcodesizeand *performancearecriticalandthelocaleisofaknownshape(suchas *`aa-BB`)use`create_und`,`set_language`,`set_script`,and`set_region`. * *Seethe[Rustdocumentationfor`try_from_str`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html#method.try_from_str) for more information.
*/ inlinestatic icu4x::diplomat::result<std::unique_ptr<icu4x::Locale>, icu4x::LocaleParseError> from_string(std::string_view name);
/** *Constructaunknown{@linkLocale}"und". * *Seethe[Rustdocumentationfor`UNKNOWN`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html#associatedconstant.UNKNOWN) for more information.
*/ inlinestatic std::unique_ptr<icu4x::Locale> unknown();
/** *Clonesthe{@linkLocale}. * *Seethe[Rustdocumentationfor`Locale`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html) for more information.
*/ inline std::unique_ptr<icu4x::Locale> clone() const;
/** *Returnsastringrepresentationofthe`LanguageIdentifier`partof *{@linkLocale}. * *Seethe[Rustdocumentationfor`id`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html#structfield.id) for more information.
*/ inline std::string basename() const; template<typename W> inlinevoid basename_write(W& writeable_output) const;
/** *Returnsastringrepresentationof{@linkLocale}. * *Seethe[Rustdocumentationfor`write_to`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html#method.write_to) for more information.
*/ inline std::string to_string() const; template<typename W> inlinevoid to_string_write(W& writeable_output) const;
/** *Seethe[Rustdocumentationfor`normalizing_eq`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html#method.normalizing_eq) for more information.
*/ inlinebool normalizing_eq(std::string_view other) const;
/** *Seethe[Rustdocumentationfor`strict_cmp`](https://docs.rs/icu/2.1.1/icu/locale/struct.Locale.html#method.strict_cmp) for more information.
*/ inline int8_t compare_to_string(std::string_view other) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.