1#ifndef ICU4X_ZonedTime_HPP
2#define ICU4X_ZonedTime_HPP
25 typedef struct icu4x_ZonedTime_strict_from_string_mv1_result {
union {icu4x::capi::ZonedTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedTime_strict_from_string_mv1_result;
26 icu4x_ZonedTime_strict_from_string_mv1_result icu4x_ZonedTime_strict_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::IanaParser* iana_parser);
28 typedef struct icu4x_ZonedTime_location_only_from_string_mv1_result {
union {icu4x::capi::ZonedTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedTime_location_only_from_string_mv1_result;
29 icu4x_ZonedTime_location_only_from_string_mv1_result icu4x_ZonedTime_location_only_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::IanaParser* iana_parser);
31 typedef struct icu4x_ZonedTime_offset_only_from_string_mv1_result {
union {icu4x::capi::ZonedTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedTime_offset_only_from_string_mv1_result;
32 icu4x_ZonedTime_offset_only_from_string_mv1_result icu4x_ZonedTime_offset_only_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v);
34 typedef struct icu4x_ZonedTime_lenient_from_string_mv1_result {
union {icu4x::capi::ZonedTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedTime_lenient_from_string_mv1_result;
35 icu4x_ZonedTime_lenient_from_string_mv1_result icu4x_ZonedTime_lenient_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::IanaParser* iana_parser);
42 auto result = icu4x::capi::icu4x_ZonedTime_strict_from_string_mv1({v.data(), v.size()},
48 auto result = icu4x::capi::icu4x_ZonedTime_location_only_from_string_mv1({v.data(), v.size()},
54 auto result = icu4x::capi::icu4x_ZonedTime_offset_only_from_string_mv1({v.data(), v.size()});
59 auto result = icu4x::capi::icu4x_ZonedTime_lenient_from_string_mv1({v.data(), v.size()},
65inline icu4x::capi::ZonedTime icu4x::ZonedTime::AsFFI()
const {
66 return icu4x::capi::ZonedTime {
72inline icu4x::ZonedTime icu4x::ZonedTime::FromFFI(icu4x::capi::ZonedTime c_struct) {
73 return icu4x::ZonedTime {
74 std::unique_ptr<icu4x::Time>(icu4x::Time::FromFFI(c_struct.time)),
75 std::unique_ptr<icu4x::TimeZoneInfo>(icu4x::TimeZoneInfo::FromFFI(c_struct.zone)),
Definition IanaParser.d.hpp:42
Definition diplomat_runtime.hpp:166
bool is_ok() const
Definition diplomat_runtime.hpp:181
static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > lenient_from_string(std::string_view v, const icu4x::IanaParser &iana_parser)
Definition ZonedTime.hpp:58
static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > offset_only_from_string(std::string_view v)
Definition ZonedTime.hpp:53
static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > strict_from_string(std::string_view v, const icu4x::IanaParser &iana_parser)
Definition ZonedTime.hpp:41
static icu4x::diplomat::result< icu4x::ZonedTime, icu4x::Rfc9557ParseError > location_only_from_string(std::string_view v, const icu4x::IanaParser &iana_parser)
Definition ZonedTime.hpp:47
Definition diplomat_runtime.hpp:146
Definition diplomat_runtime.hpp:128