ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
LanguageDisplay.d.hpp
Go to the documentation of this file.
1#ifndef icu4x_LanguageDisplay_D_HPP
2#define icu4x_LanguageDisplay_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
14
15namespace icu4x {
16namespace capi {
17 enum LanguageDisplay {
18 LanguageDisplay_Dialect = 0,
19 LanguageDisplay_Standard = 1,
20 };
21
22 typedef struct LanguageDisplay_option {union { LanguageDisplay ok; }; bool is_ok; } LanguageDisplay_option;
23} // namespace capi
24} // namespace
25
26namespace icu4x {
31public:
32 enum Value {
35 };
36
37 LanguageDisplay() = default;
38 // Implicit conversions between enum and ::Value
39 constexpr LanguageDisplay(Value v) : value(v) {}
40 constexpr operator Value() const { return value; }
41 // Prevent usage as boolean value
42 explicit operator bool() const = delete;
43
44 inline icu4x::capi::LanguageDisplay AsFFI() const;
45 inline static icu4x::LanguageDisplay FromFFI(icu4x::capi::LanguageDisplay c_enum);
46private:
47 Value value;
48};
49
50} // namespace
51#endif // icu4x_LanguageDisplay_D_HPP
Definition LanguageDisplay.d.hpp:30
constexpr LanguageDisplay(Value v)
Definition LanguageDisplay.d.hpp:39
Value
Definition LanguageDisplay.d.hpp:32
@ Standard
Definition LanguageDisplay.d.hpp:34
@ Dialect
Definition LanguageDisplay.d.hpp:33
Definition Bidi.d.hpp:14