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