#ifndef icu4x_GregorianZonedDateTimeFormatter_D_HPP #define icu4x_GregorianZonedDateTimeFormatter_D_HPP #include #include #include #include #include #include #include "../diplomat_runtime.hpp" namespace icu4x { namespace capi { struct DataProvider; } class DataProvider; namespace capi { struct GregorianZonedDateTimeFormatter; } class GregorianZonedDateTimeFormatter; namespace capi { struct IsoDateTime; } class IsoDateTime; namespace capi { struct Locale; } class Locale; namespace capi { struct TimeZoneInfo; } class TimeZoneInfo; class DateTimeFormatError; class DateTimeFormatterLoadError; class DateTimeLength; } namespace icu4x { namespace capi { struct GregorianZonedDateTimeFormatter; } // namespace capi } // namespace namespace icu4x { class GregorianZonedDateTimeFormatter { public: inline static diplomat::result, icu4x::DateTimeFormatterLoadError> create_with_length(const icu4x::DataProvider& provider, const icu4x::Locale& locale, icu4x::DateTimeLength length); inline diplomat::result format_iso_datetime_with_custom_time_zone(const icu4x::IsoDateTime& datetime, const icu4x::TimeZoneInfo& time_zone) const; inline const icu4x::capi::GregorianZonedDateTimeFormatter* AsFFI() const; inline icu4x::capi::GregorianZonedDateTimeFormatter* AsFFI(); inline static const icu4x::GregorianZonedDateTimeFormatter* FromFFI(const icu4x::capi::GregorianZonedDateTimeFormatter* ptr); inline static icu4x::GregorianZonedDateTimeFormatter* FromFFI(icu4x::capi::GregorianZonedDateTimeFormatter* ptr); inline static void operator delete(void* ptr); private: GregorianZonedDateTimeFormatter() = delete; GregorianZonedDateTimeFormatter(const icu4x::GregorianZonedDateTimeFormatter&) = delete; GregorianZonedDateTimeFormatter(icu4x::GregorianZonedDateTimeFormatter&&) noexcept = delete; GregorianZonedDateTimeFormatter operator=(const icu4x::GregorianZonedDateTimeFormatter&) = delete; GregorianZonedDateTimeFormatter operator=(icu4x::GregorianZonedDateTimeFormatter&&) noexcept = delete; static void operator delete[](void*, size_t) = delete; }; } // namespace #endif // icu4x_GregorianZonedDateTimeFormatter_D_HPP