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