class ICU4XDataProvider; class ICU4XLocaleFallbacker; #include"ICU4XError.hpp" struct ICU4XLocaleFallbackConfig; class ICU4XLocaleFallbackerWithConfig;
/** * A destruction policy for using ICU4XLocaleFallbacker with std::unique_ptr.
*/ struct ICU4XLocaleFallbackerDeleter { voidoperator()(capi::ICU4XLocaleFallbacker* l) const noexcept {
capi::ICU4XLocaleFallbacker_destroy(l);
}
};
/** * Associates this `ICU4XLocaleFallbacker` with configuration options. * * See the [Rust documentation for `for_config`](https://docs.rs/icu/latest/icu/locid_transform/fallback/struct.LocaleFallbacker.html#method.for_config) for more information. * * Lifetimes: `this` must live at least as long as the output.
*/
diplomat::result<ICU4XLocaleFallbackerWithConfig, ICU4XError> for_config(ICU4XLocaleFallbackConfig config) const; inlineconst capi::ICU4XLocaleFallbacker* AsFFI() const { returnthis->inner.get(); } inline capi::ICU4XLocaleFallbacker* AsFFIMut() { returnthis->inner.get(); } inlineexplicit ICU4XLocaleFallbacker(capi::ICU4XLocaleFallbacker* i) : inner(i) {}
ICU4XLocaleFallbacker() = default;
ICU4XLocaleFallbacker(ICU4XLocaleFallbacker&&) noexcept = default;
ICU4XLocaleFallbacker& operator=(ICU4XLocaleFallbacker&& other) noexcept = default; private:
std::unique_ptr<capi::ICU4XLocaleFallbacker, ICU4XLocaleFallbackerDeleter> inner;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.