1#ifndef ICU4X_ZonedDateTime_HPP
2#define ICU4X_ZonedDateTime_HPP
28 typedef struct icu4x_ZonedDateTime_strict_from_string_mv1_result {
union {icu4x::capi::ZonedDateTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedDateTime_strict_from_string_mv1_result;
29 icu4x_ZonedDateTime_strict_from_string_mv1_result icu4x_ZonedDateTime_strict_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::Calendar* calendar,
const icu4x::capi::IanaParser* iana_parser);
31 typedef struct icu4x_ZonedDateTime_full_from_string_mv1_result {
union {icu4x::capi::ZonedDateTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedDateTime_full_from_string_mv1_result;
32 icu4x_ZonedDateTime_full_from_string_mv1_result icu4x_ZonedDateTime_full_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::Calendar* calendar,
const icu4x::capi::IanaParser* iana_parser,
const icu4x::capi::VariantOffsetsCalculator* _offset_calculator);
34 typedef struct icu4x_ZonedDateTime_location_only_from_string_mv1_result {
union {icu4x::capi::ZonedDateTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedDateTime_location_only_from_string_mv1_result;
35 icu4x_ZonedDateTime_location_only_from_string_mv1_result icu4x_ZonedDateTime_location_only_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::Calendar* calendar,
const icu4x::capi::IanaParser* iana_parser);
37 typedef struct icu4x_ZonedDateTime_offset_only_from_string_mv1_result {
union {icu4x::capi::ZonedDateTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedDateTime_offset_only_from_string_mv1_result;
38 icu4x_ZonedDateTime_offset_only_from_string_mv1_result icu4x_ZonedDateTime_offset_only_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::Calendar* calendar);
40 typedef struct icu4x_ZonedDateTime_lenient_from_string_mv1_result {
union {icu4x::capi::ZonedDateTime ok; icu4x::capi::Rfc9557ParseError err;};
bool is_ok;} icu4x_ZonedDateTime_lenient_from_string_mv1_result;
41 icu4x_ZonedDateTime_lenient_from_string_mv1_result icu4x_ZonedDateTime_lenient_from_string_mv1(icu4x::diplomat::capi::DiplomatStringView v,
const icu4x::capi::Calendar* calendar,
const icu4x::capi::IanaParser* iana_parser);
48 auto result = icu4x::capi::icu4x_ZonedDateTime_strict_from_string_mv1({v.data(), v.size()},
55 auto result = icu4x::capi::icu4x_ZonedDateTime_full_from_string_mv1({v.data(), v.size()},
58 _offset_calculator.AsFFI());
63 auto result = icu4x::capi::icu4x_ZonedDateTime_location_only_from_string_mv1({v.data(), v.size()},
70 auto result = icu4x::capi::icu4x_ZonedDateTime_offset_only_from_string_mv1({v.data(), v.size()},
76 auto result = icu4x::capi::icu4x_ZonedDateTime_lenient_from_string_mv1({v.data(), v.size()},
83inline icu4x::capi::ZonedDateTime icu4x::ZonedDateTime::AsFFI()
const {
84 return icu4x::capi::ZonedDateTime {
91inline icu4x::ZonedDateTime icu4x::ZonedDateTime::FromFFI(icu4x::capi::ZonedDateTime c_struct) {
92 return icu4x::ZonedDateTime {
93 std::unique_ptr<icu4x::Date>(icu4x::Date::FromFFI(c_struct.date)),
94 std::unique_ptr<icu4x::Time>(icu4x::Time::FromFFI(c_struct.time)),
95 std::unique_ptr<icu4x::TimeZoneInfo>(icu4x::TimeZoneInfo::FromFFI(c_struct.zone)),
Definition Calendar.d.hpp:34
Definition IanaParser.d.hpp:42
Definition VariantOffsetsCalculator.d.hpp:42
Definition diplomat_runtime.hpp:166
static icu4x::diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseError > strict_from_string(std::string_view v, const icu4x::Calendar &calendar, const icu4x::IanaParser &iana_parser)
Definition ZonedDateTime.hpp:47
static icu4x::diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseError > location_only_from_string(std::string_view v, const icu4x::Calendar &calendar, const icu4x::IanaParser &iana_parser)
Definition ZonedDateTime.hpp:62
static icu4x::diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseError > full_from_string(std::string_view v, const icu4x::Calendar &calendar, const icu4x::IanaParser &iana_parser, const icu4x::VariantOffsetsCalculator &_offset_calculator)
Definition ZonedDateTime.hpp:54
static icu4x::diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseError > offset_only_from_string(std::string_view v, const icu4x::Calendar &calendar)
Definition ZonedDateTime.hpp:69
static icu4x::diplomat::result< icu4x::ZonedDateTime, icu4x::Rfc9557ParseError > lenient_from_string(std::string_view v, const icu4x::Calendar &calendar, const icu4x::IanaParser &iana_parser)
Definition ZonedDateTime.hpp:75
Definition diplomat_runtime.hpp:146
Definition diplomat_runtime.hpp:128