#ifndef DateTimeFormatter_H #define DateTimeFormatter_H #include #include #include #include #include "diplomat_runtime.h" #include "DataProvider.d.h" #include "DateTime.d.h" #include "DateTimeFormatError.d.h" #include "DateTimeFormatterLoadError.d.h" #include "DateTimeLength.d.h" #include "IsoDateTime.d.h" #include "Locale.d.h" #include "DateTimeFormatter.d.h" typedef struct icu4x_DateTimeFormatter_create_with_length_mv1_result {union {DateTimeFormatter* ok; DateTimeFormatterLoadError err;}; bool is_ok;} icu4x_DateTimeFormatter_create_with_length_mv1_result; icu4x_DateTimeFormatter_create_with_length_mv1_result icu4x_DateTimeFormatter_create_with_length_mv1(const DataProvider* provider, const Locale* locale, DateTimeLength length); typedef struct icu4x_DateTimeFormatter_format_datetime_mv1_result {union { DateTimeFormatError err;}; bool is_ok;} icu4x_DateTimeFormatter_format_datetime_mv1_result; icu4x_DateTimeFormatter_format_datetime_mv1_result icu4x_DateTimeFormatter_format_datetime_mv1(const DateTimeFormatter* self, const DateTime* value, DiplomatWrite* write); typedef struct icu4x_DateTimeFormatter_format_iso_datetime_mv1_result {union { DateTimeFormatError err;}; bool is_ok;} icu4x_DateTimeFormatter_format_iso_datetime_mv1_result; icu4x_DateTimeFormatter_format_iso_datetime_mv1_result icu4x_DateTimeFormatter_format_iso_datetime_mv1(const DateTimeFormatter* self, const IsoDateTime* value, DiplomatWrite* write); void icu4x_DateTimeFormatter_destroy_mv1(DateTimeFormatter* self); #endif // DateTimeFormatter_H