1 #ifndef icu4x_PluralCategories_D_HPP 2 #define icu4x_PluralCategories_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 "../diplomat_runtime.hpp" 12 13 14 namespace icu4x { 15 namespace capi { 16 struct PluralCategories { 17 bool zero; 18 bool one; 19 bool two; 20 bool few; 21 bool many; 22 bool other; 23 }; 24 25 typedef struct PluralCategories_option {union { PluralCategories ok; }; bool is_ok; } PluralCategories_option; 26 } // namespace capi 27 } // namespace 28 29 30 namespace icu4x { 31 struct PluralCategories { 32 bool zero; 33 bool one; 34 bool two; 35 bool few; 36 bool many; 37 bool other; 38 39 inline icu4x::capi::PluralCategories AsFFI() const; 40 inline static icu4x::PluralCategories FromFFI(icu4x::capi::PluralCategories c_struct); 41 }; 42 43 } // namespace 44 #endif // icu4x_PluralCategories_D_HPP 45