1#ifndef ICU4X_EastAsianWidth_D_HPP
2#define ICU4X_EastAsianWidth_D_HPP
22 EastAsianWidth_Neutral = 0,
23 EastAsianWidth_Ambiguous = 1,
24 EastAsianWidth_Halfwidth = 2,
25 EastAsianWidth_Fullwidth = 3,
26 EastAsianWidth_Narrow = 4,
27 EastAsianWidth_Wide = 5,
30 typedef struct EastAsianWidth_option {
union { EastAsianWidth ok; };
bool is_ok; } EastAsianWidth_option;
71 constexpr operator Value()
const {
return value; }
73 explicit operator bool()
const =
delete;
85 inline std::optional<std::string_view>
long_name()
const;
92 inline std::optional<std::string_view>
short_name()
const;
108 inline static std::optional<icu4x::EastAsianWidth>
try_from_str(std::string_view s);
110 inline icu4x::capi::EastAsianWidth AsFFI()
const;
Definition EastAsianWidth.d.hpp:38
Value
Definition EastAsianWidth.d.hpp:40
@ Ambiguous
Definition EastAsianWidth.d.hpp:48
@ Neutral
Definition EastAsianWidth.d.hpp:44
@ Halfwidth
Definition EastAsianWidth.d.hpp:52
@ Fullwidth
Definition EastAsianWidth.d.hpp:56
@ Narrow
Definition EastAsianWidth.d.hpp:60
@ Wide
Definition EastAsianWidth.d.hpp:64
uint8_t to_integer_value() const
Definition EastAsianWidth.hpp:74
std::optional< std::string_view > short_name() const
Definition EastAsianWidth.hpp:69
constexpr EastAsianWidth(Value v)
Definition EastAsianWidth.d.hpp:70
static std::optional< icu4x::EastAsianWidth > try_from_str(std::string_view s)
Definition EastAsianWidth.hpp:84
static std::optional< icu4x::EastAsianWidth > from_integer_value(uint8_t other)
Definition EastAsianWidth.hpp:79
static icu4x::EastAsianWidth for_char(char32_t ch)
Definition EastAsianWidth.hpp:59
std::optional< std::string_view > long_name() const
Definition EastAsianWidth.hpp:64
EastAsianWidth()
Definition EastAsianWidth.d.hpp:67