#ifndef Date_H #define Date_H #include #include #include #include #include "diplomat_runtime.h" #include "Calendar.d.h" #include "CalendarError.d.h" #include "CalendarParseError.d.h" #include "IsoDate.d.h" #include "IsoWeekday.d.h" #include "WeekCalculator.d.h" #include "WeekOf.d.h" #include "Date.d.h" typedef struct icu4x_Date_from_iso_in_calendar_mv1_result {union {Date* ok; CalendarError err;}; bool is_ok;} icu4x_Date_from_iso_in_calendar_mv1_result; icu4x_Date_from_iso_in_calendar_mv1_result icu4x_Date_from_iso_in_calendar_mv1(int32_t year, uint8_t month, uint8_t day, const Calendar* calendar); typedef struct icu4x_Date_from_codes_in_calendar_mv1_result {union {Date* ok; CalendarError err;}; bool is_ok;} icu4x_Date_from_codes_in_calendar_mv1_result; icu4x_Date_from_codes_in_calendar_mv1_result icu4x_Date_from_codes_in_calendar_mv1(DiplomatStringView era_code, int32_t year, DiplomatStringView month_code, uint8_t day, const Calendar* calendar); typedef struct icu4x_Date_from_string_mv1_result {union {Date* ok; CalendarParseError err;}; bool is_ok;} icu4x_Date_from_string_mv1_result; icu4x_Date_from_string_mv1_result icu4x_Date_from_string_mv1(DiplomatStringView v); Date* icu4x_Date_to_calendar_mv1(const Date* self, const Calendar* calendar); IsoDate* icu4x_Date_to_iso_mv1(const Date* self); uint16_t icu4x_Date_day_of_year_mv1(const Date* self); uint8_t icu4x_Date_day_of_month_mv1(const Date* self); IsoWeekday icu4x_Date_day_of_week_mv1(const Date* self); uint8_t icu4x_Date_week_of_month_mv1(const Date* self, IsoWeekday first_weekday); WeekOf icu4x_Date_week_of_year_mv1(const Date* self, const WeekCalculator* calculator); uint8_t icu4x_Date_ordinal_month_mv1(const Date* self); void icu4x_Date_month_code_mv1(const Date* self, DiplomatWrite* write); uint8_t icu4x_Date_month_number_mv1(const Date* self); bool icu4x_Date_month_is_leap_mv1(const Date* self); int32_t icu4x_Date_year_in_era_mv1(const Date* self); int32_t icu4x_Date_extended_year_mv1(const Date* self); void icu4x_Date_era_mv1(const Date* self, DiplomatWrite* write); uint8_t icu4x_Date_months_in_year_mv1(const Date* self); uint8_t icu4x_Date_days_in_month_mv1(const Date* self); uint16_t icu4x_Date_days_in_year_mv1(const Date* self); Calendar* icu4x_Date_calendar_mv1(const Date* self); void icu4x_Date_destroy_mv1(Date* self); #endif // Date_H