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