ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::ComposingNormalizer Class Reference

#include <ComposingNormalizer.d.hpp>

Public Member Functions

std::string normalize (std::string_view s) const
 
bool is_normalized (std::string_view s) const
 
bool is_normalized16 (std::u16string_view s) const
 
size_t is_normalized_up_to (std::string_view s) const
 
size_t is_normalized16_up_to (std::u16string_view s) const
 

Static Public Member Functions

static std::unique_ptr< icu4x::ComposingNormalizercreate_nfc ()
 
static diplomat::result< std::unique_ptr< icu4x::ComposingNormalizer >, icu4x::DataErrorcreate_nfc_with_provider (const icu4x::DataProvider &provider)
 
static std::unique_ptr< icu4x::ComposingNormalizercreate_nfkc ()
 
static diplomat::result< std::unique_ptr< icu4x::ComposingNormalizer >, icu4x::DataErrorcreate_nfkc_with_provider (const icu4x::DataProvider &provider)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for ComposingNormalizer for more information.

Member Function Documentation

◆ create_nfc()

std::unique_ptr< icu4x::ComposingNormalizer > icu4x::ComposingNormalizer::create_nfc ( )
inlinestatic

Construct a new ComposingNormalizer instance for NFC using compiled data.

See the Rust documentation for new_nfc for more information.

◆ create_nfc_with_provider()

diplomat::result< std::unique_ptr< icu4x::ComposingNormalizer >, icu4x::DataError > icu4x::ComposingNormalizer::create_nfc_with_provider ( const icu4x::DataProvider & provider)
inlinestatic

Construct a new ComposingNormalizer instance for NFC using a particular data source.

See the Rust documentation for new_nfc for more information.

◆ create_nfkc()

std::unique_ptr< icu4x::ComposingNormalizer > icu4x::ComposingNormalizer::create_nfkc ( )
inlinestatic

Construct a new ComposingNormalizer instance for NFKC using compiled data.

See the Rust documentation for new_nfkc for more information.

◆ create_nfkc_with_provider()

diplomat::result< std::unique_ptr< icu4x::ComposingNormalizer >, icu4x::DataError > icu4x::ComposingNormalizer::create_nfkc_with_provider ( const icu4x::DataProvider & provider)
inlinestatic

Construct a new ComposingNormalizer instance for NFKC using a particular data source.

See the Rust documentation for new_nfkc for more information.

◆ is_normalized()

bool icu4x::ComposingNormalizer::is_normalized ( 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.

◆ is_normalized16()

bool icu4x::ComposingNormalizer::is_normalized16 ( std::u16string_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_utf16 for more information.

◆ is_normalized16_up_to()

size_t icu4x::ComposingNormalizer::is_normalized16_up_to ( std::u16string_view s) const
inline

Return the index a slice of potentially-invalid UTF-16 is normalized up to

See the Rust documentation for split_normalized_utf16 for more information.

◆ is_normalized_up_to()

size_t icu4x::ComposingNormalizer::is_normalized_up_to ( std::string_view s) const
inline

Return the index a slice of potentially-invalid UTF-8 is normalized up to

See the Rust documentation for split_normalized_utf8 for more information.

See the Rust documentation for split_normalized for more information.

◆ normalize()

std::string icu4x::ComposingNormalizer::normalize ( 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.

◆ operator delete()

void icu4x::ComposingNormalizer::operator delete ( void * ptr)
inlinestatic

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