#ifndef icu4x_Calendar_D_HPP #define icu4x_Calendar_D_HPP #include #include #include #include #include #include #include "../diplomat_runtime.hpp" namespace icu4x { namespace capi { struct Calendar; } class Calendar; namespace capi { struct DataProvider; } class DataProvider; namespace capi { struct Locale; } class Locale; class AnyCalendarKind; class DataError; } namespace icu4x { namespace capi { struct Calendar; } // namespace capi } // namespace namespace icu4x { class Calendar { public: inline static diplomat::result, icu4x::DataError> create_for_locale(const icu4x::DataProvider& provider, const icu4x::Locale& locale); inline static diplomat::result, icu4x::DataError> create_for_kind(const icu4x::DataProvider& provider, icu4x::AnyCalendarKind kind); inline icu4x::AnyCalendarKind kind() const; inline const icu4x::capi::Calendar* AsFFI() const; inline icu4x::capi::Calendar* AsFFI(); inline static const icu4x::Calendar* FromFFI(const icu4x::capi::Calendar* ptr); inline static icu4x::Calendar* FromFFI(icu4x::capi::Calendar* ptr); inline static void operator delete(void* ptr); private: Calendar() = delete; Calendar(const icu4x::Calendar&) = delete; Calendar(icu4x::Calendar&&) noexcept = delete; Calendar operator=(const icu4x::Calendar&) = delete; Calendar operator=(icu4x::Calendar&&) noexcept = delete; static void operator delete[](void*, size_t) = delete; }; } // namespace #endif // icu4x_Calendar_D_HPP