1#ifndef ICU4XLocaleExpander_HPP
2#define ICU4XLocaleExpander_HPP
12#include "ICU4XLocaleExpander.h"
23struct ICU4XLocaleExpanderDeleter {
24 void operator()(capi::ICU4XLocaleExpander* l)
const noexcept {
25 capi::ICU4XLocaleExpander_destroy(l);
65 inline const capi::ICU4XLocaleExpander* AsFFI()
const {
return this->inner.get(); }
66 inline capi::ICU4XLocaleExpander* AsFFIMut() {
return this->inner.get(); }
75#include "ICU4XDataProvider.hpp"
79 auto diplomat_result_raw_out_value = capi::ICU4XLocaleExpander_create(provider.AsFFI());
81 if (diplomat_result_raw_out_value.is_ok) {
86 return diplomat_result_out_value;
89 auto diplomat_result_raw_out_value = capi::ICU4XLocaleExpander_create_extended(provider.AsFFI());
91 if (diplomat_result_raw_out_value.is_ok) {
96 return diplomat_result_out_value;
99 return static_cast<ICU4XTransformResult>(capi::ICU4XLocaleExpander_maximize(this->inner.get(), locale.AsFFIMut()));
102 return static_cast<ICU4XTransformResult>(capi::ICU4XLocaleExpander_minimize(this->inner.get(), locale.AsFFIMut()));
105 return static_cast<ICU4XTransformResult>(capi::ICU4XLocaleExpander_minimize_favor_script(this->inner.get(), locale.AsFFIMut()));
ICU4XError
Definition ICU4XError.hpp:23
Definition ICU4XDataProvider.hpp:32
Definition ICU4XLocaleExpander.hpp:34
static diplomat::result< ICU4XLocaleExpander, ICU4XError > create(const ICU4XDataProvider &provider)
Definition ICU4XLocaleExpander.hpp:78
static diplomat::result< ICU4XLocaleExpander, ICU4XError > create_extended(const ICU4XDataProvider &provider)
Definition ICU4XLocaleExpander.hpp:88
ICU4XTransformResult maximize(ICU4XLocale &locale) const
Definition ICU4XLocaleExpander.hpp:98
ICU4XLocaleExpander(capi::ICU4XLocaleExpander *i)
Definition ICU4XLocaleExpander.hpp:67
ICU4XTransformResult minimize(ICU4XLocale &locale) const
Definition ICU4XLocaleExpander.hpp:101
ICU4XLocaleExpander()=default
ICU4XLocaleExpander(ICU4XLocaleExpander &&) noexcept=default
ICU4XTransformResult minimize_favor_script(ICU4XLocale &locale) const
Definition ICU4XLocaleExpander.hpp:104
Definition ICU4XLocale.hpp:32
Definition diplomat_runtime.hpp:84
Definition diplomat_runtime.hpp:69
Definition diplomat_runtime.hpp:55