ZonedDateTimeFormatterGregorian.h (9048B)
1 #ifndef ZonedDateTimeFormatterGregorian_H 2 #define ZonedDateTimeFormatterGregorian_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 "DataProvider.d.h" 11 #include "DateTimeFormatterGregorian.d.h" 12 #include "DateTimeFormatterLoadError.d.h" 13 #include "DateTimeWriteError.d.h" 14 #include "IsoDate.d.h" 15 #include "Locale.d.h" 16 #include "Time.d.h" 17 #include "TimeZoneInfo.d.h" 18 19 #include "ZonedDateTimeFormatterGregorian.d.h" 20 21 22 23 24 25 26 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_mv1_result; 27 icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 28 29 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_with_provider_mv1_result; 30 icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_specific_long_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 31 32 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_mv1_result; 33 icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 34 35 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_with_provider_mv1_result; 36 icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_specific_short_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 37 38 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_mv1_result; 39 icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 40 41 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_with_provider_mv1_result; 42 icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_long_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 43 44 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_mv1_result; 45 icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 46 47 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_with_provider_mv1_result; 48 icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_localized_offset_short_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 49 50 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_mv1_result; 51 icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 52 53 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_with_provider_mv1_result; 54 icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_generic_long_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 55 56 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_mv1_result; 57 icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 58 59 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_with_provider_mv1_result; 60 icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_generic_short_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 61 62 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_location_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_location_mv1_result; 63 icu4x_ZonedDateTimeFormatterGregorian_create_location_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_location_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 64 65 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_location_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_location_with_provider_mv1_result; 66 icu4x_ZonedDateTimeFormatterGregorian_create_location_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_location_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 67 68 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_mv1_result; 69 icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_mv1(const Locale* locale, const DateTimeFormatterGregorian* formatter); 70 71 typedef struct icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_with_provider_mv1_result {union {ZonedDateTimeFormatterGregorian* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_with_provider_mv1_result; 72 icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_with_provider_mv1_result icu4x_ZonedDateTimeFormatterGregorian_create_exemplar_city_with_provider_mv1(const DataProvider* provider, const Locale* locale, const DateTimeFormatterGregorian* formatter); 73 74 typedef struct icu4x_ZonedDateTimeFormatterGregorian_format_iso_mv1_result {union { DateTimeWriteError err;}; bool is_ok;} icu4x_ZonedDateTimeFormatterGregorian_format_iso_mv1_result; 75 icu4x_ZonedDateTimeFormatterGregorian_format_iso_mv1_result icu4x_ZonedDateTimeFormatterGregorian_format_iso_mv1(const ZonedDateTimeFormatterGregorian* self, const IsoDate* date, const Time* time, const TimeZoneInfo* zone, DiplomatWrite* write); 76 77 void icu4x_ZonedDateTimeFormatterGregorian_destroy_mv1(ZonedDateTimeFormatterGregorian* self); 78 79 80 81 82 83 #endif // ZonedDateTimeFormatterGregorian_H