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