1#ifndef ICU4X_NumericType_D_HPP
2#define ICU4X_NumericType_D_HPP
23 NumericType_Decimal = 1,
24 NumericType_Digit = 2,
25 NumericType_Numeric = 3,
28 typedef struct NumericType_option {
union { NumericType ok; };
bool is_ok; } NumericType_option;
61 constexpr operator Value()
const {
return value; }
63 explicit operator bool()
const =
delete;
75 inline std::optional<std::string_view>
long_name()
const;
82 inline std::optional<std::string_view>
short_name()
const;
98 inline static std::optional<icu4x::NumericType>
try_from_str(std::string_view s);
100 inline icu4x::capi::NumericType AsFFI()
const;
Definition NumericType.d.hpp:36
static icu4x::NumericType for_char(char32_t ch)
Definition NumericType.hpp:57
NumericType()
Definition NumericType.d.hpp:57
static std::optional< icu4x::NumericType > try_from_str(std::string_view s)
Definition NumericType.hpp:82
std::optional< std::string_view > long_name() const
Definition NumericType.hpp:62
std::optional< std::string_view > short_name() const
Definition NumericType.hpp:67
constexpr NumericType(Value v)
Definition NumericType.d.hpp:60
static std::optional< icu4x::NumericType > from_integer_value(uint8_t other)
Definition NumericType.hpp:77
uint8_t to_integer_value() const
Definition NumericType.hpp:72
Value
Definition NumericType.d.hpp:38
@ Numeric
Definition NumericType.d.hpp:54
@ Decimal
Definition NumericType.d.hpp:46
@ None
Definition NumericType.d.hpp:42
@ Digit
Definition NumericType.d.hpp:50