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

#include <Collator.d.hpp>

Public Member Functions

int8_t compare (std::string_view left, std::string_view right) const
 
int8_t compare16 (std::u16string_view left, std::u16string_view right) const
 
icu4x::CollatorResolvedOptionsV1 resolved_options_v1 () const
 

Static Public Member Functions

static diplomat::result< std::unique_ptr< icu4x::Collator >, icu4x::DataErrorcreate_v1 (const icu4x::Locale &locale, icu4x::CollatorOptionsV1 options)
 
static diplomat::result< std::unique_ptr< icu4x::Collator >, icu4x::DataErrorcreate_v1_with_provider (const icu4x::DataProvider &provider, const icu4x::Locale &locale, icu4x::CollatorOptionsV1 options)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for Collator for more information.

Member Function Documentation

◆ compare()

int8_t icu4x::Collator::compare ( std::string_view left,
std::string_view right ) const
inline

Compare two strings.

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 compare_utf8 for more information.

◆ compare16()

int8_t icu4x::Collator::compare16 ( std::u16string_view left,
std::u16string_view right ) const
inline

Compare two strings.

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 compare_utf16 for more information.

◆ create_v1()

diplomat::result< std::unique_ptr< icu4x::Collator >, icu4x::DataError > icu4x::Collator::create_v1 ( const icu4x::Locale & locale,
icu4x::CollatorOptionsV1 options )
inlinestatic

Construct a new Collator instance using compiled data.

See the Rust documentation for try_new for more information.

◆ create_v1_with_provider()

diplomat::result< std::unique_ptr< icu4x::Collator >, icu4x::DataError > icu4x::Collator::create_v1_with_provider ( const icu4x::DataProvider & provider,
const icu4x::Locale & locale,
icu4x::CollatorOptionsV1 options )
inlinestatic

Construct a new Collator instance using a particular data source.

See the Rust documentation for try_new for more information.

◆ operator delete()

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

◆ resolved_options_v1()

icu4x::CollatorResolvedOptionsV1 icu4x::Collator::resolved_options_v1 ( ) const
inline

The resolved options showing how the default options, the requested options, and the options from locale data were combined. None of the struct fields will have Auto as the value.

See the Rust documentation for resolved_options for more information.


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