#ifndef IsoDate_H #define IsoDate_H #include #include #include #include #include "diplomat_runtime.h" #include "Calendar.d.h" #include "CalendarError.d.h" #include "CalendarParseError.d.h" #include "Date.d.h" #include "IsoWeekday.d.h" #include "WeekCalculator.d.h" #include "WeekOf.d.h" #include "IsoDate.d.h" typedef struct icu4x_IsoDate_create_mv1_result {union {IsoDate* ok; CalendarError err;}; bool is_ok;} icu4x_IsoDate_create_mv1_result; icu4x_IsoDate_create_mv1_result icu4x_IsoDate_create_mv1(int32_t year, uint8_t month, uint8_t day); typedef struct icu4x_IsoDate_from_string_mv1_result {union {IsoDate* ok; CalendarParseError err;}; bool is_ok;} icu4x_IsoDate_from_string_mv1_result; icu4x_IsoDate_from_string_mv1_result icu4x_IsoDate_from_string_mv1(DiplomatStringView v); Date* icu4x_IsoDate_to_calendar_mv1(const IsoDate* self, const Calendar* calendar); Date* icu4x_IsoDate_to_any_mv1(const IsoDate* self); uint16_t icu4x_IsoDate_day_of_year_mv1(const IsoDate* self); uint8_t icu4x_IsoDate_day_of_month_mv1(const IsoDate* self); IsoWeekday icu4x_IsoDate_day_of_week_mv1(const IsoDate* self); uint8_t icu4x_IsoDate_week_of_month_mv1(const IsoDate* self, IsoWeekday first_weekday); WeekOf icu4x_IsoDate_week_of_year_mv1(const IsoDate* self, const WeekCalculator* calculator); uint8_t icu4x_IsoDate_month_mv1(const IsoDate* self); int32_t icu4x_IsoDate_year_mv1(const IsoDate* self); bool icu4x_IsoDate_is_in_leap_year_mv1(const IsoDate* self); uint8_t icu4x_IsoDate_months_in_year_mv1(const IsoDate* self); uint8_t icu4x_IsoDate_days_in_month_mv1(const IsoDate* self); uint16_t icu4x_IsoDate_days_in_year_mv1(const IsoDate* self); void icu4x_IsoDate_destroy_mv1(IsoDate* self); #endif // IsoDate_H