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

#include <ICU4XCaseMapCloser.hpp>

Public Member Functions

void add_case_closure_to (char32_t c, ICU4XCodePointSetBuilder &builder) const
 
bool add_string_case_closure_to (const std::string_view s, ICU4XCodePointSetBuilder &builder) const
 
 ICU4XCaseMapCloser (capi::ICU4XCaseMapCloser *i)
 
 ICU4XCaseMapCloser ()=default
 
 ICU4XCaseMapCloser (ICU4XCaseMapCloser &&) noexcept=default
 
ICU4XCaseMapCloseroperator= (ICU4XCaseMapCloser &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XCaseMapCloser, ICU4XErrorcreate (const ICU4XDataProvider &provider)
 

Detailed Description

See the Rust documentation for CaseMapCloser for more information.

Constructor & Destructor Documentation

◆ ICU4XCaseMapCloser() [1/3]

ICU4XCaseMapCloser::ICU4XCaseMapCloser ( capi::ICU4XCaseMapCloser * i)
inlineexplicit

◆ ICU4XCaseMapCloser() [2/3]

ICU4XCaseMapCloser::ICU4XCaseMapCloser ( )
default

◆ ICU4XCaseMapCloser() [3/3]

ICU4XCaseMapCloser::ICU4XCaseMapCloser ( ICU4XCaseMapCloser && )
defaultnoexcept

Member Function Documentation

◆ add_case_closure_to()

void ICU4XCaseMapCloser::add_case_closure_to ( char32_t c,
ICU4XCodePointSetBuilder & 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 ICU4XCaseMapCloser::add_string_case_closure_to ( const std::string_view s,
ICU4XCodePointSetBuilder & 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< ICU4XCaseMapCloser, ICU4XError > ICU4XCaseMapCloser::create ( const ICU4XDataProvider & provider)
inlinestatic

Construct a new ICU4XCaseMapper instance

See the Rust documentation for new for more information.

◆ operator=()

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

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