ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
ICU4XDecomposingNormalizer Class Reference

#include <ICU4XDecomposingNormalizer.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrornormalize_to_writeable (const std::string_view s, W &write) const
 
diplomat::result< std::string, ICU4XErrornormalize (const std::string_view s) const
 
bool is_normalized (const std::string_view s) const
 
 ICU4XDecomposingNormalizer (capi::ICU4XDecomposingNormalizer *i)
 
 ICU4XDecomposingNormalizer ()=default
 
 ICU4XDecomposingNormalizer (ICU4XDecomposingNormalizer &&) noexcept=default
 
ICU4XDecomposingNormalizeroperator= (ICU4XDecomposingNormalizer &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XDecomposingNormalizer, ICU4XErrorcreate_nfd (const ICU4XDataProvider &provider)
 
static diplomat::result< ICU4XDecomposingNormalizer, ICU4XErrorcreate_nfkd (const ICU4XDataProvider &provider)
 

Detailed Description

See the Rust documentation for DecomposingNormalizer for more information.

Constructor & Destructor Documentation

◆ ICU4XDecomposingNormalizer() [1/3]

ICU4XDecomposingNormalizer::ICU4XDecomposingNormalizer ( capi::ICU4XDecomposingNormalizer * i)
inlineexplicit

◆ ICU4XDecomposingNormalizer() [2/3]

ICU4XDecomposingNormalizer::ICU4XDecomposingNormalizer ( )
default

◆ ICU4XDecomposingNormalizer() [3/3]

ICU4XDecomposingNormalizer::ICU4XDecomposingNormalizer ( ICU4XDecomposingNormalizer && )
defaultnoexcept

Member Function Documentation

◆ create_nfd()

diplomat::result< ICU4XDecomposingNormalizer, ICU4XError > ICU4XDecomposingNormalizer::create_nfd ( const ICU4XDataProvider & provider)
inlinestatic

Construct a new ICU4XDecomposingNormalizer instance for NFC

See the Rust documentation for new_nfd for more information.

◆ create_nfkd()

diplomat::result< ICU4XDecomposingNormalizer, ICU4XError > ICU4XDecomposingNormalizer::create_nfkd ( const ICU4XDataProvider & provider)
inlinestatic

Construct a new ICU4XDecomposingNormalizer instance for NFKC

See the Rust documentation for new_nfkd for more information.

◆ is_normalized()

bool ICU4XDecomposingNormalizer::is_normalized ( const std::string_view s) const
inline

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 for more information.

◆ normalize()

diplomat::result< std::string, ICU4XError > ICU4XDecomposingNormalizer::normalize ( const std::string_view s) const
inline

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 for more information.

◆ normalize_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XDecomposingNormalizer::normalize_to_writeable ( const std::string_view s,
W & write ) const
inline

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 for more information.

◆ operator=()

ICU4XDecomposingNormalizer & ICU4XDecomposingNormalizer::operator= ( ICU4XDecomposingNormalizer && other)
defaultnoexcept

The documentation for this class was generated from the following file: