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>
15
16
17namespace icu4x {
18namespace capi {
19 extern "C" {
20
21 } // extern "C"
22} // namespace capi
23} // namespace
24
25
26inline icu4x::capi::PluralCategories icu4x::PluralCategories::AsFFI() const {
27 return icu4x::capi::PluralCategories {
28 /* .zero = */ zero,
29 /* .one = */ one,
30 /* .two = */ two,
31 /* .few = */ few,
32 /* .many = */ many,
33 /* .other = */ other,
34 };
35}
36
37inline icu4x::PluralCategories icu4x::PluralCategories::FromFFI(icu4x::capi::PluralCategories c_struct) {
38 return icu4x::PluralCategories {
39 /* .zero = */ c_struct.zero,
40 /* .one = */ c_struct.one,
41 /* .two = */ c_struct.two,
42 /* .few = */ c_struct.few,
43 /* .many = */ c_struct.many,
44 /* .other = */ c_struct.other,
45 };
46}
47
48
49#endif // icu4x_PluralCategories_HPP
Definition Bidi.d.hpp:14
bool few
Definition PluralCategories.d.hpp:36
bool one
Definition PluralCategories.d.hpp:34
bool zero
Definition PluralCategories.d.hpp:33
bool two
Definition PluralCategories.d.hpp:35
bool other
Definition PluralCategories.d.hpp:38
bool many
Definition PluralCategories.d.hpp:37