1 #ifndef icu4x_WeekOf_D_HPP 2 #define icu4x_WeekOf_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 "WeekRelativeUnit.d.hpp" 13 14 namespace icu4x { 15 class WeekRelativeUnit; 16 } 17 18 19 namespace icu4x { 20 namespace capi { 21 struct WeekOf { 22 uint8_t week; 23 icu4x::capi::WeekRelativeUnit unit; 24 }; 25 26 typedef struct WeekOf_option {union { WeekOf ok; }; bool is_ok; } WeekOf_option; 27 } // namespace capi 28 } // namespace 29 30 31 namespace icu4x { 32 struct WeekOf { 33 uint8_t week; 34 icu4x::WeekRelativeUnit unit; 35 36 inline icu4x::capi::WeekOf AsFFI() const; 37 inline static icu4x::WeekOf FromFFI(icu4x::capi::WeekOf c_struct); 38 }; 39 40 } // namespace 41 #endif // icu4x_WeekOf_D_HPP 42