/** * Normalize a string * * Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according * to the WHATWG Encoding Standard. * * See the [Rust documentation for `normalize_utf8`](https://docs.rs/icu/latest/icu/normalizer/struct.ComposingNormalizer.html#method.normalize_utf8) for more information.
*/ template<typename W> diplomat::result<std::monostate, ICU4XError> normalize_to_writeable(const std::string_view s, W& write) const;
/** * Normalize a string * * Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according * to the WHATWG Encoding Standard. * * See the [Rust documentation for `normalize_utf8`](https://docs.rs/icu/latest/icu/normalizer/struct.ComposingNormalizer.html#method.normalize_utf8) for more information.
*/
diplomat::result<std::string, ICU4XError> normalize(const std::string_view s) const;
/** * Check if a string is normalized * * Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according * to the WHATWG Encoding Standard. * * See the [Rust documentation for `is_normalized_utf8`](https://docs.rs/icu/latest/icu/normalizer/struct.ComposingNormalizer.html#method.is_normalized_utf8) for more information.
*/ bool is_normalized(const std::string_view s) const; inlineconst capi::ICU4XComposingNormalizer* AsFFI() const { return this->inner.get(); } inline capi::ICU4XComposingNormalizer* AsFFIMut() { return this->inner.get(); } inlineexplicit ICU4XComposingNormalizer(capi::ICU4XComposingNormalizer* i) : inner(i) {}
ICU4XComposingNormalizer() = default;
ICU4XComposingNormalizer(ICU4XComposingNormalizer&&) noexcept = default;
ICU4XComposingNormalizer& operator=(ICU4XComposingNormalizer&& other) noexcept = default; private:
std::unique_ptr<capi::ICU4XComposingNormalizer, ICU4XComposingNormalizerDeleter> 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.