1#ifndef ICU4X_TimeZone_D_HPP
2#define ICU4X_TimeZone_D_HPP
14namespace capi {
struct TimeZone; }
16namespace capi {
struct TimeZoneInfo; }
18namespace capi {
struct UtcOffset; }
42 inline static std::unique_ptr<icu4x::TimeZone>
unknown();
56 inline static std::unique_ptr<icu4x::TimeZone>
create_from_iana_id(std::string_view iana_id);
63 inline static std::unique_ptr<icu4x::TimeZone>
create_from_windows_id(std::string_view windows_id, std::string_view region);
70 inline static std::unique_ptr<icu4x::TimeZone>
create_from_system_id(std::string_view
id, std::string_view _region);
79 inline static std::unique_ptr<icu4x::TimeZone>
create_from_bcp47(std::string_view
id);
89 inline std::unique_ptr<icu4x::TimeZoneInfo>
without_offset()
const;
91 inline const icu4x::capi::TimeZone* AsFFI()
const;
92 inline icu4x::capi::TimeZone* AsFFI();
93 inline static const icu4x::TimeZone* FromFFI(
const icu4x::capi::TimeZone* ptr);
95 inline static void operator delete(
void* ptr);
102 static void operator delete[](
void*, size_t) =
delete;
Definition TimeZoneInfo.d.hpp:44
Definition TimeZone.d.hpp:34
static std::unique_ptr< icu4x::TimeZone > create_from_iana_id(std::string_view iana_id)
Definition TimeZone.hpp:55
static std::unique_ptr< icu4x::TimeZone > create_from_system_id(std::string_view id, std::string_view _region)
Definition TimeZone.hpp:66
std::unique_ptr< icu4x::TimeZoneInfo > without_offset() const
Definition TimeZone.hpp:83
bool is_unknown() const
Definition TimeZone.hpp:50
std::unique_ptr< icu4x::TimeZoneInfo > with_offset(const icu4x::UtcOffset &offset) const
Definition TimeZone.hpp:77
static std::unique_ptr< icu4x::TimeZone > create_from_bcp47(std::string_view id)
Definition TimeZone.hpp:72
static std::unique_ptr< icu4x::TimeZone > create_from_windows_id(std::string_view windows_id, std::string_view region)
Definition TimeZone.hpp:60
static std::unique_ptr< icu4x::TimeZone > unknown()
Definition TimeZone.hpp:45
Definition UtcOffset.d.hpp:31