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

#include <DecomposingNormalizer.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::DecomposingNormalizercreate_nfd ()
 
static diplomat::result< std::unique_ptr< icu4x::DecomposingNormalizer >, icu4x::DataErrorcreate_nfd_with_provider (const icu4x::DataProvider &provider)
 
static std::unique_ptr< icu4x::DecomposingNormalizercreate_nfkd ()
 
static diplomat::result< std::unique_ptr< icu4x::DecomposingNormalizer >, icu4x::DataErrorcreate_nfkd_with_provider (const icu4x::DataProvider &provider)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for DecomposingNormalizer for more information.

Member Function Documentation

◆ create_nfd()

std::unique_ptr< icu4x::DecomposingNormalizer > icu4x::DecomposingNormalizer::create_nfd ( )
inlinestatic

Construct a new DecomposingNormalizer instance for NFD using compiled data.

See the Rust documentation for new_nfd for more information.

◆ create_nfd_with_provider()

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

Construct a new DecomposingNormalizer instance for NFD using a particular data source.

See the Rust documentation for new_nfd for more information.

◆ create_nfkd()

std::unique_ptr< icu4x::DecomposingNormalizer > icu4x::DecomposingNormalizer::create_nfkd ( )
inlinestatic

Construct a new DecomposingNormalizer instance for NFKD using compiled data.

See the Rust documentation for new_nfkd for more information.

◆ create_nfkd_with_provider()

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

Construct a new DecomposingNormalizer instance for NFKD using a particular data source.

See the Rust documentation for new_nfkd for more information.

◆ is_normalized()

bool icu4x::DecomposingNormalizer::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::DecomposingNormalizer::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::DecomposingNormalizer::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::DecomposingNormalizer::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::DecomposingNormalizer::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::DecomposingNormalizer::operator delete ( void * ptr)
inlinestatic

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