6#include <inflection/util/fwd.hpp>
7#include <inflection/Object.hpp>
111 std::string_view country = std::string_view(),
112 std::string_view variant = std::string_view(),
113 std::string_view keywordsAndValues = std::string_view());
120 ULocale(const ::inflection::util::ULocale& other);
142 bool operator==(const ::inflection::util::ULocale& other)
const;
149 std::strong_ordering
operator<=>(const ::inflection::util::ULocale& other)
const;
198 const ::std::string &
getName()
const;
206 ::std::string language { };
207 ::std::string script { };
208 ::std::string country { };
209 ::std::string variant { };
210 ::std::string fullName { };
216 return other <=> *
this == 0;
219inline std::strong_ordering
222 return fullName <=> other.fullName;
225inline ::std::string_view
231inline ::std::string_view
237inline ::std::string_view
243inline ::std::string_view
249inline const ::std::string &
Inflection's root object.
An object that represents a specific geographical, political, or cultural region.
ULocale(const ::inflection::util::ULocale &other)
const ::std::string & getName() const
std::string_view getScript() const
::inflection::util::ULocale & operator=(const ::inflection::util::ULocale &other)
std::string_view getVariant() const
std::string_view getCountry() const
std::string_view getLanguage() const
bool operator==(const ::inflection::util::ULocale &other) const
ULocale(std::string_view language, std::string_view country=std::string_view(), std::string_view variant=std::string_view(), std::string_view keywordsAndValues=std::string_view())
::std::u16string toString() const override
ULocale getFallback() const
std::strong_ordering operator<=>(const ::inflection::util::ULocale &other) const
std::size_t operator()(const inflection::util::ULocale &locale) const noexcept
The C++ namespace for Inflection.