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

#include <CaseMapCloser.d.hpp>

Public Member Functions

void add_case_closure_to (char32_t c, icu4x::CodePointSetBuilder &builder) const
 
bool add_string_case_closure_to (std::string_view s, icu4x::CodePointSetBuilder &builder) const
 

Static Public Member Functions

static diplomat::result< std::unique_ptr< icu4x::CaseMapCloser >, icu4x::DataErrorcreate ()
 
static diplomat::result< std::unique_ptr< icu4x::CaseMapCloser >, icu4x::DataErrorcreate_with_provider (const icu4x::DataProvider &provider)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for CaseMapCloser for more information.

Member Function Documentation

◆ add_case_closure_to()

void icu4x::CaseMapCloser::add_case_closure_to ( char32_t c,
icu4x::CodePointSetBuilder & builder ) const
inline

Adds all simple case mappings and the full case folding for c to builder. Also adds special case closure mappings.

See the Rust documentation for add_case_closure_to for more information.

◆ add_string_case_closure_to()

bool icu4x::CaseMapCloser::add_string_case_closure_to ( std::string_view s,
icu4x::CodePointSetBuilder & builder ) const
inline

Finds all characters and strings which may casemap to s as their full case folding string and adds them to the set.

Returns true if the string was found

See the Rust documentation for add_string_case_closure_to for more information.

◆ create()

diplomat::result< std::unique_ptr< icu4x::CaseMapCloser >, icu4x::DataError > icu4x::CaseMapCloser::create ( )
inlinestatic

Construct a new CaseMapCloser instance using compiled data.

See the Rust documentation for new for more information.

◆ create_with_provider()

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

Construct a new CaseMapCloser instance using a particular data source.

See the Rust documentation for new for more information.

◆ operator delete()

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

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