Debian Codegraph @

intl/icu_capi/bindings/c/ICU4XTime.h

raw
1 #ifndef ICU4XTime_H
2 #define ICU4XTime_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 ICU4XTime ICU4XTime;
14 #ifdef __cplusplus
15 } // namespace capi
16 #endif
17 #include "diplomat_result_box_ICU4XTime_ICU4XError.h"
18 #ifdef __cplusplus
19 namespace capi {
20 extern "C" {
21 #endif
22
23 diplomat_result_box_ICU4XTime_ICU4XError ICU4XTime_create(uint8_t hour, uint8_t minute, uint8_t second, uint32_t nanosecond);
24
25 diplomat_result_box_ICU4XTime_ICU4XError ICU4XTime_create_midnight();
26
27 uint8_t ICU4XTime_hour(const ICU4XTime* self);
28
29 uint8_t ICU4XTime_minute(const ICU4XTime* self);
30
31 uint8_t ICU4XTime_second(const ICU4XTime* self);
32
33 uint32_t ICU4XTime_nanosecond(const ICU4XTime* self);
34 void ICU4XTime_destroy(ICU4XTime* self);
35
36 #ifdef __cplusplus
37 } // extern "C"
38 } // namespace capi
39 #endif
40 #endif