1#ifndef icu4x_Locale_D_HPP
2#define icu4x_Locale_D_HPP
15namespace capi {
struct Locale; }
52 inline static std::unique_ptr<icu4x::Locale>
unknown();
59 inline std::unique_ptr<icu4x::Locale>
clone()
const;
102 inline std::optional<std::string>
region()
const;
116 inline std::optional<std::string>
script()
const;
160 inline const icu4x::capi::Locale* AsFFI()
const;
161 inline icu4x::capi::Locale* AsFFI();
162 inline static const icu4x::Locale* FromFFI(
const icu4x::capi::Locale* ptr);
163 inline static icu4x::Locale* FromFFI(icu4x::capi::Locale* ptr);
164 inline static void operator delete(
void* ptr);
171 static void operator delete[](
void*, size_t) =
delete;
Definition diplomat_runtime.hpp:140
Definition LocaleParseError.d.hpp:32
Definition Locale.d.hpp:33
std::optional< std::string > script() const
Definition Locale.hpp:138
int8_t compare_to(const icu4x::Locale &other) const
Definition Locale.hpp:180
diplomat::result< std::monostate, icu4x::LocaleParseError > set_script(std::string_view s)
Definition Locale.hpp:146
std::unique_ptr< icu4x::Locale > clone() const
Definition Locale.hpp:81
diplomat::result< std::monostate, icu4x::LocaleParseError > set_language(std::string_view s)
Definition Locale.hpp:118
diplomat::result< std::monostate, icu4x::LocaleParseError > set_region(std::string_view s)
Definition Locale.hpp:132
std::string basename() const
Definition Locale.hpp:86
bool operator>=(const icu4x::Locale &other) const
Definition Locale.hpp:197
static std::unique_ptr< icu4x::Locale > unknown()
Definition Locale.hpp:76
static diplomat::result< std::unique_ptr< icu4x::Locale >, icu4x::LocaleParseError > from_string(std::string_view name)
Definition Locale.hpp:71
bool operator>(const icu4x::Locale &other) const
Definition Locale.hpp:205
std::string to_string() const
Definition Locale.hpp:160
bool normalizing_eq(std::string_view other) const
Definition Locale.hpp:168
std::optional< std::string > get_unicode_extension(std::string_view s) const
Definition Locale.hpp:94
bool operator<=(const icu4x::Locale &other) const
Definition Locale.hpp:193
bool operator<(const icu4x::Locale &other) const
Definition Locale.hpp:201
std::optional< std::monostate > set_unicode_extension(std::string_view k, std::string_view v)
Definition Locale.hpp:103
bool operator!=(const icu4x::Locale &other) const
Definition Locale.hpp:189
std::optional< std::string > region() const
Definition Locale.hpp:124
bool operator==(const icu4x::Locale &other) const
Definition Locale.hpp:185
std::string language() const
Definition Locale.hpp:110
int8_t compare_to_string(std::string_view other) const
Definition Locale.hpp:174
static diplomat::result< std::string, icu4x::LocaleParseError > normalize(std::string_view s)
Definition Locale.hpp:152