ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
PluralCategories.hpp
Go to the documentation of this file.
1#ifndef ICU4X_PluralCategories_HPP
2#define ICU4X_PluralCategories_HPP
3
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
23
24inline icu4x::capi::PluralCategories icu4x::PluralCategories::AsFFI() const {
25 return icu4x::capi::PluralCategories {
26 /* .zero = */ zero,
27 /* .one = */ one,
28 /* .two = */ two,
29 /* .few = */ few,
30 /* .many = */ many,
31 /* .other = */ other,
32 };
33}
34
35inline icu4x::PluralCategories icu4x::PluralCategories::FromFFI(icu4x::capi::PluralCategories c_struct) {
36 return icu4x::PluralCategories {
37 /* .zero = */ c_struct.zero,
38 /* .one = */ c_struct.one,
39 /* .two = */ c_struct.two,
40 /* .few = */ c_struct.few,
41 /* .many = */ c_struct.many,
42 /* .other = */ c_struct.other,
43 };
44}
45
46
47#endif // ICU4X_PluralCategories_HPP
Definition Bidi.d.hpp:13
bool few
Definition PluralCategories.d.hpp:39
bool one
Definition PluralCategories.d.hpp:37
bool zero
Definition PluralCategories.d.hpp:36
bool two
Definition PluralCategories.d.hpp:38
bool other
Definition PluralCategories.d.hpp:41
bool many
Definition PluralCategories.d.hpp:40