Time.h (1352B)
1 #ifndef Time_H 2 #define Time_H 3 4 #include <stdio.h> 5 #include <stdint.h> 6 #include <stddef.h> 7 #include <stdbool.h> 8 #include "diplomat_runtime.h" 9 10 #include "CalendarError.d.h" 11 #include "Rfc9557ParseError.d.h" 12 13 #include "Time.d.h" 14 15 16 17 18 19 20 typedef struct icu4x_Time_create_mv1_result {union {Time* ok; CalendarError err;}; bool is_ok;} icu4x_Time_create_mv1_result; 21 icu4x_Time_create_mv1_result icu4x_Time_create_mv1(uint8_t hour, uint8_t minute, uint8_t second, uint32_t subsecond); 22 23 typedef struct icu4x_Time_from_string_mv1_result {union {Time* ok; Rfc9557ParseError err;}; bool is_ok;} icu4x_Time_from_string_mv1_result; 24 icu4x_Time_from_string_mv1_result icu4x_Time_from_string_mv1(DiplomatStringView v); 25 26 typedef struct icu4x_Time_start_of_day_mv1_result {union {Time* ok; CalendarError err;}; bool is_ok;} icu4x_Time_start_of_day_mv1_result; 27 icu4x_Time_start_of_day_mv1_result icu4x_Time_start_of_day_mv1(void); 28 29 typedef struct icu4x_Time_noon_mv1_result {union {Time* ok; CalendarError err;}; bool is_ok;} icu4x_Time_noon_mv1_result; 30 icu4x_Time_noon_mv1_result icu4x_Time_noon_mv1(void); 31 32 uint8_t icu4x_Time_hour_mv1(const Time* self); 33 34 uint8_t icu4x_Time_minute_mv1(const Time* self); 35 36 uint8_t icu4x_Time_second_mv1(const Time* self); 37 38 uint32_t icu4x_Time_subsecond_mv1(const Time* self); 39 40 void icu4x_Time_destroy_mv1(Time* self); 41 42 43 44 45 46 #endif // Time_H