ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
VerticalOrientation.d.hpp
Go to the documentation of this file.
1#ifndef icu4x_VerticalOrientation_D_HPP
2#define icu4x_VerticalOrientation_D_HPP
3
4#include <stdio.h>
5#include <stdint.h>
6#include <stddef.h>
7#include <stdbool.h>
8#include <memory>
9#include <functional>
10#include <optional>
11#include <cstdlib>
13
14namespace icu4x {
16}
17
18
19namespace icu4x {
20namespace capi {
21 enum VerticalOrientation {
22 VerticalOrientation_Rotated = 0,
23 VerticalOrientation_TransformedRotated = 1,
24 VerticalOrientation_TransformedUpright = 2,
25 VerticalOrientation_Upright = 3,
26 };
27
28 typedef struct VerticalOrientation_option {union { VerticalOrientation ok; }; bool is_ok; } VerticalOrientation_option;
29} // namespace capi
30} // namespace
31
32namespace icu4x {
37public:
44
46 // Implicit conversions between enum and ::Value
47 constexpr VerticalOrientation(Value v) : value(v) {}
48 constexpr operator Value() const { return value; }
49 // Prevent usage as boolean value
50 explicit operator bool() const = delete;
51
55 inline static icu4x::VerticalOrientation for_char(char32_t ch);
56
62 inline std::optional<std::string_view> long_name() const;
63
69 inline std::optional<std::string_view> short_name() const;
70
76 inline uint8_t to_integer_value() const;
77
83 inline static std::optional<icu4x::VerticalOrientation> from_integer_value(uint8_t other);
84
85 inline icu4x::capi::VerticalOrientation AsFFI() const;
86 inline static icu4x::VerticalOrientation FromFFI(icu4x::capi::VerticalOrientation c_enum);
87private:
88 Value value;
89};
90
91} // namespace
92#endif // icu4x_VerticalOrientation_D_HPP
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
@ Upright
Definition VerticalOrientation.d.hpp:42
@ Rotated
Definition VerticalOrientation.d.hpp:39
@ TransformedRotated
Definition VerticalOrientation.d.hpp:40
@ TransformedUpright
Definition VerticalOrientation.d.hpp:41
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
constexpr VerticalOrientation(Value v)
Definition VerticalOrientation.d.hpp:47
Definition Bidi.d.hpp:14