1 #ifndef icu4x_CollatorResolvedOptionsV1_D_HPP 2 #define icu4x_CollatorResolvedOptionsV1_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 #include "CollatorAlternateHandling.d.hpp" 13 #include "CollatorBackwardSecondLevel.d.hpp" 14 #include "CollatorCaseFirst.d.hpp" 15 #include "CollatorCaseLevel.d.hpp" 16 #include "CollatorMaxVariable.d.hpp" 17 #include "CollatorNumericOrdering.d.hpp" 18 #include "CollatorStrength.d.hpp" 19 20 namespace icu4x { 21 class CollatorAlternateHandling; 22 class CollatorBackwardSecondLevel; 23 class CollatorCaseFirst; 24 class CollatorCaseLevel; 25 class CollatorMaxVariable; 26 class CollatorNumericOrdering; 27 class CollatorStrength; 28 } 29 30 31 namespace icu4x { 32 namespace capi { 33 struct CollatorResolvedOptionsV1 { 34 icu4x::capi::CollatorStrength strength; 35 icu4x::capi::CollatorAlternateHandling alternate_handling; 36 icu4x::capi::CollatorCaseFirst case_first; 37 icu4x::capi::CollatorMaxVariable max_variable; 38 icu4x::capi::CollatorCaseLevel case_level; 39 icu4x::capi::CollatorNumericOrdering numeric; 40 icu4x::capi::CollatorBackwardSecondLevel backward_second_level; 41 }; 42 43 typedef struct CollatorResolvedOptionsV1_option {union { CollatorResolvedOptionsV1 ok; }; bool is_ok; } CollatorResolvedOptionsV1_option; 44 } // namespace capi 45 } // namespace 46 47 48 namespace icu4x { 49 struct CollatorResolvedOptionsV1 { 50 icu4x::CollatorStrength strength; 51 icu4x::CollatorAlternateHandling alternate_handling; 52 icu4x::CollatorCaseFirst case_first; 53 icu4x::CollatorMaxVariable max_variable; 54 icu4x::CollatorCaseLevel case_level; 55 icu4x::CollatorNumericOrdering numeric; 56 icu4x::CollatorBackwardSecondLevel backward_second_level; 57 58 inline icu4x::capi::CollatorResolvedOptionsV1 AsFFI() const; 59 inline static icu4x::CollatorResolvedOptionsV1 FromFFI(icu4x::capi::CollatorResolvedOptionsV1 c_struct); 60 }; 61 62 } // namespace 63 #endif // icu4x_CollatorResolvedOptionsV1_D_HPP 64