/** * Creates a new `RegionDisplayNames` from locale data and an options bag. * * See the [Rust documentation for `try_new`](https://docs.rs/icu/latest/icu/displaynames/struct.RegionDisplayNames.html#method.try_new) for more information.
*/ static diplomat::result<ICU4XRegionDisplayNames, ICU4XError> create(const ICU4XDataProvider& provider, const ICU4XLocale& locale);
/** * Returns the locale specific display name of a region. * Note that the function returns an empty string in case the display name for a given * region code is not found. * * See the [Rust documentation for `of`](https://docs.rs/icu/latest/icu/displaynames/struct.RegionDisplayNames.html#method.of) for more information.
*/ template<typename W> diplomat::result<std::monostate, ICU4XError> of_to_writeable(const std::string_view region, W& write) const;
/** * Returns the locale specific display name of a region. * Note that the function returns an empty string in case the display name for a given * region code is not found. * * See the [Rust documentation for `of`](https://docs.rs/icu/latest/icu/displaynames/struct.RegionDisplayNames.html#method.of) for more information.
*/
diplomat::result<std::string, ICU4XError> of(const std::string_view region) const; inlineconst capi::ICU4XRegionDisplayNames* AsFFI() const { return this->inner.get(); } inline capi::ICU4XRegionDisplayNames* AsFFIMut() { return this->inner.get(); } inlineexplicit ICU4XRegionDisplayNames(capi::ICU4XRegionDisplayNames* i) : inner(i) {}
ICU4XRegionDisplayNames() = default;
ICU4XRegionDisplayNames(ICU4XRegionDisplayNames&&) noexcept = default;
ICU4XRegionDisplayNames& operator=(ICU4XRegionDisplayNames&& other) noexcept = default; private:
std::unique_ptr<capi::ICU4XRegionDisplayNames, ICU4XRegionDisplayNamesDeleter> 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.