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

#include <ICU4XComposingNormalizer.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
 
 ICU4XComposingNormalizer (capi::ICU4XComposingNormalizer *i)
 
 ICU4XComposingNormalizer ()=default
 
 ICU4XComposingNormalizer (ICU4XComposingNormalizer &&) noexcept=default
 
ICU4XComposingNormalizeroperator= (ICU4XComposingNormalizer &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XComposingNormalizer, ICU4XErrorcreate_nfc (const ICU4XDataProvider &provider)
 
static diplomat::result< ICU4XComposingNormalizer, ICU4XErrorcreate_nfkc (const ICU4XDataProvider &provider)
 

Detailed Description

See the Rust documentation for ComposingNormalizer for more information.

Constructor & Destructor Documentation

◆ ICU4XComposingNormalizer() [1/3]

ICU4XComposingNormalizer::ICU4XComposingNormalizer ( capi::ICU4XComposingNormalizer * i)
inlineexplicit

◆ ICU4XComposingNormalizer() [2/3]

ICU4XComposingNormalizer::ICU4XComposingNormalizer ( )
default

◆ ICU4XComposingNormalizer() [3/3]

ICU4XComposingNormalizer::ICU4XComposingNormalizer ( ICU4XComposingNormalizer && )
defaultnoexcept

Member Function Documentation

◆ create_nfc()

diplomat::result< ICU4XComposingNormalizer, ICU4XError > ICU4XComposingNormalizer::create_nfc ( const ICU4XDataProvider & provider)
inlinestatic

Construct a new ICU4XComposingNormalizer instance for NFC

See the Rust documentation for new_nfc for more information.

◆ create_nfkc()

diplomat::result< ICU4XComposingNormalizer, ICU4XError > ICU4XComposingNormalizer::create_nfkc ( const ICU4XDataProvider & provider)
inlinestatic

Construct a new ICU4XComposingNormalizer instance for NFKC

See the Rust documentation for new_nfkc for more information.

◆ is_normalized()

bool ICU4XComposingNormalizer::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 > ICU4XComposingNormalizer::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 > ICU4XComposingNormalizer::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=()

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

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