CollatorResolvedOptionsV1.d.hpp (1997B)
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 <cstdlib> 12 #include "../diplomat_runtime.hpp" 13 #include "CollatorAlternateHandling.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 CollatorCaseFirst; 23 class CollatorCaseLevel; 24 class CollatorMaxVariable; 25 class CollatorNumericOrdering; 26 class CollatorStrength; 27 } 28 29 30 namespace icu4x { 31 namespace capi { 32 struct CollatorResolvedOptionsV1 { 33 icu4x::capi::CollatorStrength strength; 34 icu4x::capi::CollatorAlternateHandling alternate_handling; 35 icu4x::capi::CollatorCaseFirst case_first; 36 icu4x::capi::CollatorMaxVariable max_variable; 37 icu4x::capi::CollatorCaseLevel case_level; 38 icu4x::capi::CollatorNumericOrdering numeric; 39 }; 40 41 typedef struct CollatorResolvedOptionsV1_option {union { CollatorResolvedOptionsV1 ok; }; bool is_ok; } CollatorResolvedOptionsV1_option; 42 } // namespace capi 43 } // namespace 44 45 46 namespace icu4x { 47 /** 48 * See the [Rust documentation for `ResolvedCollatorOptions`](https://docs.rs/icu/latest/icu/collator/options/struct.ResolvedCollatorOptions.html) for more information. 49 */ 50 struct CollatorResolvedOptionsV1 { 51 icu4x::CollatorStrength strength; 52 icu4x::CollatorAlternateHandling alternate_handling; 53 icu4x::CollatorCaseFirst case_first; 54 icu4x::CollatorMaxVariable max_variable; 55 icu4x::CollatorCaseLevel case_level; 56 icu4x::CollatorNumericOrdering numeric; 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