1#ifndef icu4x_VerticalOrientation_HPP
2#define icu4x_VerticalOrientation_HPP
21 icu4x::capi::VerticalOrientation icu4x_VerticalOrientation_for_char_mv1(
char32_t ch);
23 typedef struct icu4x_VerticalOrientation_long_name_mv1_result {
union {diplomat::capi::DiplomatStringView ok; };
bool is_ok;} icu4x_VerticalOrientation_long_name_mv1_result;
24 icu4x_VerticalOrientation_long_name_mv1_result icu4x_VerticalOrientation_long_name_mv1(icu4x::capi::VerticalOrientation self);
26 typedef struct icu4x_VerticalOrientation_short_name_mv1_result {
union {diplomat::capi::DiplomatStringView ok; };
bool is_ok;} icu4x_VerticalOrientation_short_name_mv1_result;
27 icu4x_VerticalOrientation_short_name_mv1_result icu4x_VerticalOrientation_short_name_mv1(icu4x::capi::VerticalOrientation self);
29 uint8_t icu4x_VerticalOrientation_to_integer_value_mv1(icu4x::capi::VerticalOrientation self);
31 typedef struct icu4x_VerticalOrientation_from_integer_value_mv1_result {
union {icu4x::capi::VerticalOrientation ok; };
bool is_ok;} icu4x_VerticalOrientation_from_integer_value_mv1_result;
32 icu4x_VerticalOrientation_from_integer_value_mv1_result icu4x_VerticalOrientation_from_integer_value_mv1(uint8_t other);
38inline icu4x::capi::VerticalOrientation icu4x::VerticalOrientation::AsFFI()
const {
39 return static_cast<icu4x::capi::VerticalOrientation
>(value);
42inline icu4x::VerticalOrientation icu4x::VerticalOrientation::FromFFI(icu4x::capi::VerticalOrientation c_enum) {
44 case icu4x::capi::VerticalOrientation_Rotated:
45 case icu4x::capi::VerticalOrientation_TransformedRotated:
46 case icu4x::capi::VerticalOrientation_TransformedUpright:
47 case icu4x::capi::VerticalOrientation_Upright:
55 auto result = icu4x::capi::icu4x_VerticalOrientation_for_char_mv1(ch);
56 return icu4x::VerticalOrientation::FromFFI(result);
60 auto result = icu4x::capi::icu4x_VerticalOrientation_long_name_mv1(this->AsFFI());
61 return result.is_ok ? std::optional<std::string_view>(std::string_view(result.ok.data, result.ok.len)) : std::nullopt;
65 auto result = icu4x::capi::icu4x_VerticalOrientation_short_name_mv1(this->AsFFI());
66 return result.is_ok ? std::optional<std::string_view>(std::string_view(result.ok.data, result.ok.len)) : std::nullopt;
70 auto result = icu4x::capi::icu4x_VerticalOrientation_to_integer_value_mv1(this->AsFFI());
75 auto result = icu4x::capi::icu4x_VerticalOrientation_from_integer_value_mv1(other);
76 return result.is_ok ? std::optional<icu4x::VerticalOrientation>(icu4x::VerticalOrientation::FromFFI(result.ok)) : std::nullopt;
Definition VerticalOrientation.d.hpp:36
std::optional< std::string_view > long_name() const
Definition VerticalOrientation.hpp:59
uint8_t to_integer_value() const
Definition VerticalOrientation.hpp:69
Value
Definition VerticalOrientation.d.hpp:38
std::optional< std::string_view > short_name() const
Definition VerticalOrientation.hpp:64
static std::optional< icu4x::VerticalOrientation > from_integer_value(uint8_t other)
Definition VerticalOrientation.hpp:74
static icu4x::VerticalOrientation for_char(char32_t ch)
Definition VerticalOrientation.hpp:54