/** * Creates a new [`ICU4XCalendar`] from the specified date and time. * * See the [Rust documentation for `new_for_locale`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.new_for_locale) for more information.
*/ static diplomat::result<ICU4XCalendar, ICU4XError> create_for_locale(const ICU4XDataProvider& provider, const ICU4XLocale& locale);
/** * Creates a new [`ICU4XCalendar`] from the specified date and time. * * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.new) for more information.
*/ static diplomat::result<ICU4XCalendar, ICU4XError> create_for_kind(const ICU4XDataProvider& provider, ICU4XAnyCalendarKind kind);
/** * Returns the kind of this calendar * * See the [Rust documentation for `kind`](https://docs.rs/icu/latest/icu/calendar/enum.AnyCalendar.html#method.kind) for more information.
*/
ICU4XAnyCalendarKind kind() const; inlineconst capi::ICU4XCalendar* AsFFI() const { return this->inner.get(); } inline capi::ICU4XCalendar* AsFFIMut() { return this->inner.get(); } inlineexplicit ICU4XCalendar(capi::ICU4XCalendar* i) : inner(i) {}
ICU4XCalendar() = default;
ICU4XCalendar(ICU4XCalendar&&) noexcept = default;
ICU4XCalendar& operator=(ICU4XCalendar&& other) noexcept = default; private:
std::unique_ptr<capi::ICU4XCalendar, ICU4XCalendarDeleter> 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.