| 1 |
#ifndef ICU4XTimeZoneFormatter_H |
| 2 |
#define ICU4XTimeZoneFormatter_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 ICU4XTimeZoneFormatter ICU4XTimeZoneFormatter; |
| 14 |
#ifdef __cplusplus |
| 15 |
} // namespace capi |
| 16 |
#endif |
| 17 |
#include "ICU4XDataProvider.h" |
| 18 |
#include "ICU4XLocale.h" |
| 19 |
#include "diplomat_result_box_ICU4XTimeZoneFormatter_ICU4XError.h" |
| 20 |
#include "ICU4XIsoTimeZoneOptions.h" |
| 21 |
#include "diplomat_result_void_ICU4XError.h" |
| 22 |
#include "ICU4XCustomTimeZone.h" |
| 23 |
#ifdef __cplusplus |
| 24 |
namespace capi { |
| 25 |
extern "C" { |
| 26 |
#endif |
| 27 |
|
| 28 |
diplomat_result_box_ICU4XTimeZoneFormatter_ICU4XError ICU4XTimeZoneFormatter_create_with_localized_gmt_fallback(const ICU4XDataProvider* provider, const ICU4XLocale* locale); |
| 29 |
|
| 30 |
diplomat_result_box_ICU4XTimeZoneFormatter_ICU4XError ICU4XTimeZoneFormatter_create_with_iso_8601_fallback(const ICU4XDataProvider* provider, const ICU4XLocale* locale, ICU4XIsoTimeZoneOptions options); |
| 31 |
|
| 32 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_load_generic_non_location_long(ICU4XTimeZoneFormatter* self, const ICU4XDataProvider* provider); |
| 33 |
|
| 34 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_load_generic_non_location_short(ICU4XTimeZoneFormatter* self, const ICU4XDataProvider* provider); |
| 35 |
|
| 36 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_load_specific_non_location_long(ICU4XTimeZoneFormatter* self, const ICU4XDataProvider* provider); |
| 37 |
|
| 38 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_load_specific_non_location_short(ICU4XTimeZoneFormatter* self, const ICU4XDataProvider* provider); |
| 39 |
|
| 40 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_load_generic_location_format(ICU4XTimeZoneFormatter* self, const ICU4XDataProvider* provider); |
| 41 |
|
| 42 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_include_localized_gmt_format(ICU4XTimeZoneFormatter* self); |
| 43 |
|
| 44 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_load_iso_8601_format(ICU4XTimeZoneFormatter* self, ICU4XIsoTimeZoneOptions options); |
| 45 |
|
| 46 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_format_custom_time_zone(const ICU4XTimeZoneFormatter* self, const ICU4XCustomTimeZone* value, DiplomatWriteable* write); |
| 47 |
|
| 48 |
diplomat_result_void_ICU4XError ICU4XTimeZoneFormatter_format_custom_time_zone_no_fallback(const ICU4XTimeZoneFormatter* self, const ICU4XCustomTimeZone* value, DiplomatWriteable* write); |
| 49 |
void ICU4XTimeZoneFormatter_destroy(ICU4XTimeZoneFormatter* self); |
| 50 |
|
| 51 |
#ifdef __cplusplus |
| 52 |
} // extern "C" |
| 53 |
} // namespace capi |
| 54 |
#endif |
| 55 |
#endif |