Debian Codegraph @

intl/icu_capi/bindings/cpp/ICU4XCustomTimeZone.h

raw
1 #ifndef ICU4XCustomTimeZone_H
2 #define ICU4XCustomTimeZone_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 ICU4XCustomTimeZone ICU4XCustomTimeZone;
14 #ifdef __cplusplus
15 } // namespace capi
16 #endif
17 #include "diplomat_result_box_ICU4XCustomTimeZone_ICU4XError.h"
18 #include "diplomat_result_void_ICU4XError.h"
19 #include "diplomat_result_int32_t_ICU4XError.h"
20 #include "diplomat_result_bool_ICU4XError.h"
21 #include "ICU4XIanaToBcp47Mapper.h"
22 #include "ICU4XTimeZoneIdMapper.h"
23 #include "ICU4XMetazoneCalculator.h"
24 #include "ICU4XIsoDateTime.h"
25 #ifdef __cplusplus
26 namespace capi {
27 extern "C" {
28 #endif
29
30 diplomat_result_box_ICU4XCustomTimeZone_ICU4XError ICU4XCustomTimeZone_create_from_string(const char* s_data, size_t s_len);
31
32 ICU4XCustomTimeZone* ICU4XCustomTimeZone_create_empty();
33
34 ICU4XCustomTimeZone* ICU4XCustomTimeZone_create_utc();
35
36 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_try_set_gmt_offset_seconds(ICU4XCustomTimeZone* self, int32_t offset_seconds);
37
38 void ICU4XCustomTimeZone_clear_gmt_offset(ICU4XCustomTimeZone* self);
39
40 diplomat_result_int32_t_ICU4XError ICU4XCustomTimeZone_gmt_offset_seconds(const ICU4XCustomTimeZone* self);
41
42 diplomat_result_bool_ICU4XError ICU4XCustomTimeZone_is_gmt_offset_positive(const ICU4XCustomTimeZone* self);
43
44 diplomat_result_bool_ICU4XError ICU4XCustomTimeZone_is_gmt_offset_zero(const ICU4XCustomTimeZone* self);
45
46 diplomat_result_bool_ICU4XError ICU4XCustomTimeZone_gmt_offset_has_minutes(const ICU4XCustomTimeZone* self);
47
48 diplomat_result_bool_ICU4XError ICU4XCustomTimeZone_gmt_offset_has_seconds(const ICU4XCustomTimeZone* self);
49
50 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_try_set_time_zone_id(ICU4XCustomTimeZone* self, const char* id_data, size_t id_len);
51
52 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_try_set_iana_time_zone_id(ICU4XCustomTimeZone* self, const ICU4XIanaToBcp47Mapper* mapper, const char* id_data, size_t id_len);
53
54 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_try_set_iana_time_zone_id_2(ICU4XCustomTimeZone* self, const ICU4XTimeZoneIdMapper* mapper, const char* id_data, size_t id_len);
55
56 void ICU4XCustomTimeZone_clear_time_zone_id(ICU4XCustomTimeZone* self);
57
58 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_time_zone_id(const ICU4XCustomTimeZone* self, DiplomatWriteable* write);
59
60 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_try_set_metazone_id(ICU4XCustomTimeZone* self, const char* id_data, size_t id_len);
61
62 void ICU4XCustomTimeZone_clear_metazone_id(ICU4XCustomTimeZone* self);
63
64 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_metazone_id(const ICU4XCustomTimeZone* self, DiplomatWriteable* write);
65
66 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_try_set_zone_variant(ICU4XCustomTimeZone* self, const char* id_data, size_t id_len);
67
68 void ICU4XCustomTimeZone_clear_zone_variant(ICU4XCustomTimeZone* self);
69
70 diplomat_result_void_ICU4XError ICU4XCustomTimeZone_zone_variant(const ICU4XCustomTimeZone* self, DiplomatWriteable* write);
71
72 void ICU4XCustomTimeZone_set_standard_time(ICU4XCustomTimeZone* self);
73
74 void ICU4XCustomTimeZone_set_daylight_time(ICU4XCustomTimeZone* self);
75
76 diplomat_result_bool_ICU4XError ICU4XCustomTimeZone_is_standard_time(const ICU4XCustomTimeZone* self);
77
78 diplomat_result_bool_ICU4XError ICU4XCustomTimeZone_is_daylight_time(const ICU4XCustomTimeZone* self);
79
80 void ICU4XCustomTimeZone_maybe_calculate_metazone(ICU4XCustomTimeZone* self, const ICU4XMetazoneCalculator* metazone_calculator, const ICU4XIsoDateTime* local_datetime);
81 void ICU4XCustomTimeZone_destroy(ICU4XCustomTimeZone* self);
82
83 #ifdef __cplusplus
84 } // extern "C"
85 } // namespace capi
86 #endif
87 #endif