1 #ifndef icu4x_Decomposed_D_HPP 2 #define icu4x_Decomposed_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 Decomposed { 17 char32_t first; 18 char32_t second; 19 }; 20 21 typedef struct Decomposed_option {union { Decomposed ok; }; bool is_ok; } Decomposed_option; 22 } // namespace capi 23 } // namespace 24 25 26 namespace icu4x { 27 struct Decomposed { 28 char32_t first; 29 char32_t second; 30 31 inline icu4x::capi::Decomposed AsFFI() const; 32 inline static icu4x::Decomposed FromFFI(icu4x::capi::Decomposed c_struct); 33 }; 34 35 } // namespace 36 #endif // icu4x_Decomposed_D_HPP 37