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

#include <TitlecaseMapper.d.hpp>

Public Member Functions

diplomat::result< std::string, diplomat::Utf8Errortitlecase_segment_v1 (std::string_view s, const icu4x::Locale &locale, icu4x::TitlecaseOptionsV1 options) const
 

Static Public Member Functions

static diplomat::result< std::unique_ptr< icu4x::TitlecaseMapper >, icu4x::DataErrorcreate ()
 
static diplomat::result< std::unique_ptr< icu4x::TitlecaseMapper >, icu4x::DataErrorcreate_with_provider (const icu4x::DataProvider &provider)
 
static diplomat::result< std::string, diplomat::Utf8Errortitlecase_segment_with_compiled_data_v1 (std::string_view s, const icu4x::Locale &locale, icu4x::TitlecaseOptionsV1 options)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for TitlecaseMapper for more information.

Member Function Documentation

◆ create()

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

Construct a new TitlecaseMapper instance using compiled data.

See the Rust documentation for new for more information.

◆ create_with_provider()

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

Construct a new TitlecaseMapper instance using a particular data source.

See the Rust documentation for new for more information.

◆ operator delete()

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

◆ titlecase_segment_v1()

diplomat::result< std::string, diplomat::Utf8Error > icu4x::TitlecaseMapper::titlecase_segment_v1 ( std::string_view s,
const icu4x::Locale & locale,
icu4x::TitlecaseOptionsV1 options ) const
inline

Returns the full titlecase mapping of the given string

The v1 refers to the version of the options struct, which may change as we add more options

See the Rust documentation for titlecase_segment for more information.

◆ titlecase_segment_with_compiled_data_v1()

diplomat::result< std::string, diplomat::Utf8Error > icu4x::TitlecaseMapper::titlecase_segment_with_compiled_data_v1 ( std::string_view s,
const icu4x::Locale & locale,
icu4x::TitlecaseOptionsV1 options )
inlinestatic

Returns the full titlecase mapping of the given string, using compiled data (avoids having to allocate a TitlecaseMapper object)

The v1 refers to the version of the options struct, which may change as we add more options

See the Rust documentation for titlecase_segment for more information.


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