#ifndef icu4x_CollatorResolvedOptionsV1_HPP #define icu4x_CollatorResolvedOptionsV1_HPP #include "CollatorResolvedOptionsV1.d.hpp" #include #include #include #include #include #include #include "../diplomat_runtime.hpp" #include "CollatorAlternateHandling.hpp" #include "CollatorBackwardSecondLevel.hpp" #include "CollatorCaseFirst.hpp" #include "CollatorCaseLevel.hpp" #include "CollatorMaxVariable.hpp" #include "CollatorNumeric.hpp" #include "CollatorStrength.hpp" namespace icu4x { namespace capi { extern "C" { } // extern "C" } // namespace capi } // namespace inline icu4x::capi::CollatorResolvedOptionsV1 icu4x::CollatorResolvedOptionsV1::AsFFI() const { return icu4x::capi::CollatorResolvedOptionsV1 { /* .strength = */ strength.AsFFI(), /* .alternate_handling = */ alternate_handling.AsFFI(), /* .case_first = */ case_first.AsFFI(), /* .max_variable = */ max_variable.AsFFI(), /* .case_level = */ case_level.AsFFI(), /* .numeric = */ numeric.AsFFI(), /* .backward_second_level = */ backward_second_level.AsFFI(), }; } inline icu4x::CollatorResolvedOptionsV1 icu4x::CollatorResolvedOptionsV1::FromFFI(icu4x::capi::CollatorResolvedOptionsV1 c_struct) { return icu4x::CollatorResolvedOptionsV1 { /* .strength = */ icu4x::CollatorStrength::FromFFI(c_struct.strength), /* .alternate_handling = */ icu4x::CollatorAlternateHandling::FromFFI(c_struct.alternate_handling), /* .case_first = */ icu4x::CollatorCaseFirst::FromFFI(c_struct.case_first), /* .max_variable = */ icu4x::CollatorMaxVariable::FromFFI(c_struct.max_variable), /* .case_level = */ icu4x::CollatorCaseLevel::FromFFI(c_struct.case_level), /* .numeric = */ icu4x::CollatorNumeric::FromFFI(c_struct.numeric), /* .backward_second_level = */ icu4x::CollatorBackwardSecondLevel::FromFFI(c_struct.backward_second_level), }; } #endif // icu4x_CollatorResolvedOptionsV1_HPP