ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
DecimalParseError.d.hpp
Go to the documentation of this file.
1#ifndef icu4x_DecimalParseError_D_HPP
2#define icu4x_DecimalParseError_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 DecimalParseError {
18 DecimalParseError_Unknown = 0,
19 DecimalParseError_Limit = 1,
20 DecimalParseError_Syntax = 2,
21 };
22
23 typedef struct DecimalParseError_option {union { DecimalParseError ok; }; bool is_ok; } DecimalParseError_option;
24} // namespace capi
25} // namespace
26
27namespace icu4x {
32public:
33 enum Value {
35 Limit = 1,
36 Syntax = 2,
37 };
38
39 DecimalParseError() = default;
40 // Implicit conversions between enum and ::Value
41 constexpr DecimalParseError(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::DecimalParseError AsFFI() const;
47 inline static icu4x::DecimalParseError FromFFI(icu4x::capi::DecimalParseError c_enum);
48private:
49 Value value;
50};
51
52} // namespace
53#endif // icu4x_DecimalParseError_D_HPP
Definition DecimalParseError.d.hpp:31
Value
Definition DecimalParseError.d.hpp:33
@ Limit
Definition DecimalParseError.d.hpp:35
@ Syntax
Definition DecimalParseError.d.hpp:36
@ Unknown
Definition DecimalParseError.d.hpp:34
constexpr DecimalParseError(Value v)
Definition DecimalParseError.d.hpp:41
Definition Bidi.d.hpp:14