1#ifndef ICU4XWeekCalculator_HPP
2#define ICU4XWeekCalculator_HPP
12#include "ICU4XWeekCalculator.h"
24struct ICU4XWeekCalculatorDeleter {
25 void operator()(capi::ICU4XWeekCalculator* l)
const noexcept {
26 capi::ICU4XWeekCalculator_destroy(l);
69 inline const capi::ICU4XWeekCalculator* AsFFI()
const {
return this->inner.get(); }
70 inline capi::ICU4XWeekCalculator* AsFFIMut() {
return this->inner.get(); }
79#include "ICU4XDataProvider.hpp"
84 auto diplomat_result_raw_out_value = capi::ICU4XWeekCalculator_create(provider.AsFFI(), locale.AsFFI());
86 if (diplomat_result_raw_out_value.is_ok) {
91 return diplomat_result_out_value;
97 return static_cast<ICU4XIsoWeekday>(capi::ICU4XWeekCalculator_first_weekday(this->inner.get()));
100 return capi::ICU4XWeekCalculator_min_week_days(this->inner.get());
103 capi::ICU4XWeekendContainsDay diplomat_raw_struct_out_value = capi::ICU4XWeekCalculator_weekend(this->inner.get());
104 return ICU4XWeekendContainsDay{ .monday = std::move(diplomat_raw_struct_out_value.monday), .tuesday = std::move(diplomat_raw_struct_out_value.tuesday), .wednesday = std::move(diplomat_raw_struct_out_value.wednesday), .thursday = std::move(diplomat_raw_struct_out_value.thursday), .friday = std::move(diplomat_raw_struct_out_value.friday), .saturday = std::move(diplomat_raw_struct_out_value.saturday), .sunday = std::move(diplomat_raw_struct_out_value.sunday) };
ICU4XError
Definition ICU4XError.hpp:23
ICU4XIsoWeekday
Definition ICU4XIsoWeekday.hpp:15
Definition ICU4XDataProvider.hpp:32
Definition ICU4XLocale.hpp:32
Definition ICU4XWeekCalculator.hpp:35
static diplomat::result< ICU4XWeekCalculator, ICU4XError > create(const ICU4XDataProvider &provider, const ICU4XLocale &locale)
Definition ICU4XWeekCalculator.hpp:83
ICU4XIsoWeekday first_weekday() const
Definition ICU4XWeekCalculator.hpp:96
ICU4XWeekCalculator(capi::ICU4XWeekCalculator *i)
Definition ICU4XWeekCalculator.hpp:71
ICU4XWeekCalculator()=default
uint8_t min_week_days() const
Definition ICU4XWeekCalculator.hpp:99
static ICU4XWeekCalculator create_from_first_day_of_week_and_min_week_days(ICU4XIsoWeekday first_weekday, uint8_t min_week_days)
Definition ICU4XWeekCalculator.hpp:93
ICU4XWeekCalculator(ICU4XWeekCalculator &&) noexcept=default
ICU4XWeekendContainsDay weekend() const
Definition ICU4XWeekCalculator.hpp:102
Definition diplomat_runtime.hpp:84
Definition ICU4XWeekendContainsDay.hpp:21
Definition diplomat_runtime.hpp:69
Definition diplomat_runtime.hpp:55