#include <Locale.d.hpp>
An ICU4X Locale, capable of representing strings like "en-US"
.
See the Rust documentation for Locale
for more information.
◆ basename()
std::string icu4x::Locale::basename |
( |
| ) |
const |
|
inline |
◆ clone()
◆ compare_to()
int8_t icu4x::Locale::compare_to |
( |
const icu4x::Locale & | other | ) |
const |
|
inline |
◆ compare_to_string()
int8_t icu4x::Locale::compare_to_string |
( |
std::string_view | other | ) |
const |
|
inline |
◆ from_string()
Construct an Locale
from an locale identifier.
This will run the complete locale parsing algorithm. If code size and performance are critical and the locale is of a known shape (such as aa-BB
) use create_und
, set_language
, set_script
, and set_region
.
See the Rust documentation for try_from_str
for more information.
◆ get_unicode_extension()
std::optional< std::string > icu4x::Locale::get_unicode_extension |
( |
std::string_view | s | ) |
const |
|
inline |
◆ language()
std::string icu4x::Locale::language |
( |
| ) |
const |
|
inline |
◆ normalize()
◆ normalizing_eq()
bool icu4x::Locale::normalizing_eq |
( |
std::string_view | other | ) |
const |
|
inline |
◆ operator delete()
void icu4x::Locale::operator delete |
( |
void * | ptr | ) |
|
|
inlinestatic |
◆ operator!=()
bool icu4x::Locale::operator!= |
( |
const icu4x::Locale & | other | ) |
const |
|
inline |
◆ operator<()
bool icu4x::Locale::operator< |
( |
const icu4x::Locale & | other | ) |
const |
|
inline |
◆ operator<=()
bool icu4x::Locale::operator<= |
( |
const icu4x::Locale & | other | ) |
const |
|
inline |
◆ operator==()
bool icu4x::Locale::operator== |
( |
const icu4x::Locale & | other | ) |
const |
|
inline |
◆ operator>()
bool icu4x::Locale::operator> |
( |
const icu4x::Locale & | other | ) |
const |
|
inline |
◆ operator>=()
bool icu4x::Locale::operator>= |
( |
const icu4x::Locale & | other | ) |
const |
|
inline |
◆ region()
std::optional< std::string > icu4x::Locale::region |
( |
| ) |
const |
|
inline |
◆ script()
std::optional< std::string > icu4x::Locale::script |
( |
| ) |
const |
|
inline |
◆ set_language()
◆ set_region()
◆ set_script()
◆ to_string()
std::string icu4x::Locale::to_string |
( |
| ) |
const |
|
inline |
◆ unknown()
The documentation for this class was generated from the following files: