ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
ListLength.hpp
Go to the documentation of this file.
1#ifndef ICU4X_ListLength_HPP
2#define ICU4X_ListLength_HPP
3
4#include "ListLength.d.hpp"
5
6#include <stdio.h>
7#include <stdint.h>
8#include <stddef.h>
9#include <stdbool.h>
10#include <memory>
11#include <functional>
12#include <optional>
13#include <cstdlib>
14#include "diplomat_runtime.hpp"
15
16
17namespace icu4x {
18namespace capi {
19
20} // namespace capi
21} // namespace
22
23inline icu4x::capi::ListLength icu4x::ListLength::AsFFI() const {
24 return static_cast<icu4x::capi::ListLength>(value);
25}
26
27inline icu4x::ListLength icu4x::ListLength::FromFFI(icu4x::capi::ListLength c_enum) {
28 switch (c_enum) {
29 case icu4x::capi::ListLength_Wide:
30 case icu4x::capi::ListLength_Short:
31 case icu4x::capi::ListLength_Narrow:
32 return static_cast<icu4x::ListLength::Value>(c_enum);
33 default:
34 std::abort();
35 }
36}
37#endif // ICU4X_ListLength_HPP
Value
Definition ListLength.d.hpp:33
Definition Bidi.d.hpp:13