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;
95 inline std::optional<std::string>
region()
const;
109 inline std::optional<std::string>
script()
const;
153 inline const icu4x::capi::Locale* AsFFI()
const;
154 inline icu4x::capi::Locale* AsFFI();
155 inline static const icu4x::Locale* FromFFI(
const icu4x::capi::Locale* ptr);
156 inline static icu4x::Locale* FromFFI(icu4x::capi::Locale* ptr);
157 inline static void operator delete(
void* ptr);
164 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:128
int8_t compare_to(const icu4x::Locale &other) const
Definition Locale.hpp:170
diplomat::result< std::monostate, icu4x::LocaleParseError > set_script(std::string_view s)
Definition Locale.hpp:136
std::unique_ptr< icu4x::Locale > clone() const
Definition Locale.hpp:78
diplomat::result< std::monostate, icu4x::LocaleParseError > set_language(std::string_view s)
Definition Locale.hpp:108
diplomat::result< std::monostate, icu4x::LocaleParseError > set_region(std::string_view s)
Definition Locale.hpp:122
std::string basename() const
Definition Locale.hpp:83
bool operator>=(const icu4x::Locale &other) const
Definition Locale.hpp:187
static std::unique_ptr< icu4x::Locale > unknown()
Definition Locale.hpp:73
static diplomat::result< std::unique_ptr< icu4x::Locale >, icu4x::LocaleParseError > from_string(std::string_view name)
Definition Locale.hpp:68
bool operator>(const icu4x::Locale &other) const
Definition Locale.hpp:195
std::string to_string() const
Definition Locale.hpp:150
bool normalizing_eq(std::string_view other) const
Definition Locale.hpp:158
std::optional< std::string > get_unicode_extension(std::string_view s) const
Definition Locale.hpp:91
bool operator<=(const icu4x::Locale &other) const
Definition Locale.hpp:183
bool operator<(const icu4x::Locale &other) const
Definition Locale.hpp:191
bool operator!=(const icu4x::Locale &other) const
Definition Locale.hpp:179
std::optional< std::string > region() const
Definition Locale.hpp:114
bool operator==(const icu4x::Locale &other) const
Definition Locale.hpp:175
std::string language() const
Definition Locale.hpp:100
int8_t compare_to_string(std::string_view other) const
Definition Locale.hpp:164
static diplomat::result< std::string, icu4x::LocaleParseError > normalize(std::string_view s)
Definition Locale.hpp:142