| 1 |
#ifndef ICU4XIsoDate_H |
| 2 |
#define ICU4XIsoDate_H |
| 3 |
#include <stdio.h> |
| 4 |
#include <stdint.h> |
| 5 |
#include <stddef.h> |
| 6 |
#include <stdbool.h> |
| 7 |
#include "diplomat_runtime.h" |
| 8 |
|
| 9 |
#ifdef __cplusplus |
| 10 |
namespace capi { |
| 11 |
#endif |
| 12 |
|
| 13 |
typedef struct ICU4XIsoDate ICU4XIsoDate; |
| 14 |
#ifdef __cplusplus |
| 15 |
} // namespace capi |
| 16 |
#endif |
| 17 |
#include "diplomat_result_box_ICU4XIsoDate_ICU4XError.h" |
| 18 |
#include "ICU4XCalendar.h" |
| 19 |
#include "ICU4XDate.h" |
| 20 |
#include "ICU4XIsoWeekday.h" |
| 21 |
#include "ICU4XWeekCalculator.h" |
| 22 |
#include "diplomat_result_ICU4XWeekOf_ICU4XError.h" |
| 23 |
#ifdef __cplusplus |
| 24 |
namespace capi { |
| 25 |
extern "C" { |
| 26 |
#endif |
| 27 |
|
| 28 |
diplomat_result_box_ICU4XIsoDate_ICU4XError ICU4XIsoDate_create(int32_t year, uint8_t month, uint8_t day); |
| 29 |
|
| 30 |
ICU4XIsoDate* ICU4XIsoDate_create_for_unix_epoch(); |
| 31 |
|
| 32 |
ICU4XDate* ICU4XIsoDate_to_calendar(const ICU4XIsoDate* self, const ICU4XCalendar* calendar); |
| 33 |
|
| 34 |
ICU4XDate* ICU4XIsoDate_to_any(const ICU4XIsoDate* self); |
| 35 |
|
| 36 |
uint16_t ICU4XIsoDate_day_of_year(const ICU4XIsoDate* self); |
| 37 |
|
| 38 |
uint32_t ICU4XIsoDate_day_of_month(const ICU4XIsoDate* self); |
| 39 |
|
| 40 |
ICU4XIsoWeekday ICU4XIsoDate_day_of_week(const ICU4XIsoDate* self); |
| 41 |
|
| 42 |
uint32_t ICU4XIsoDate_week_of_month(const ICU4XIsoDate* self, ICU4XIsoWeekday first_weekday); |
| 43 |
|
| 44 |
diplomat_result_ICU4XWeekOf_ICU4XError ICU4XIsoDate_week_of_year(const ICU4XIsoDate* self, const ICU4XWeekCalculator* calculator); |
| 45 |
|
| 46 |
uint32_t ICU4XIsoDate_month(const ICU4XIsoDate* self); |
| 47 |
|
| 48 |
int32_t ICU4XIsoDate_year(const ICU4XIsoDate* self); |
| 49 |
|
| 50 |
bool ICU4XIsoDate_is_in_leap_year(const ICU4XIsoDate* self); |
| 51 |
|
| 52 |
uint8_t ICU4XIsoDate_months_in_year(const ICU4XIsoDate* self); |
| 53 |
|
| 54 |
uint8_t ICU4XIsoDate_days_in_month(const ICU4XIsoDate* self); |
| 55 |
|
| 56 |
uint16_t ICU4XIsoDate_days_in_year(const ICU4XIsoDate* self); |
| 57 |
void ICU4XIsoDate_destroy(ICU4XIsoDate* self); |
| 58 |
|
| 59 |
#ifdef __cplusplus |
| 60 |
} // extern "C" |
| 61 |
} // namespace capi |
| 62 |
#endif |
| 63 |
#endif |