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

#include <ICU4XTitlecaseMapper.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrortitlecase_segment_v1_to_writeable (const std::string_view s, const ICU4XLocale &locale, ICU4XTitlecaseOptionsV1 options, W &write) const
 
diplomat::result< std::string, ICU4XErrortitlecase_segment_v1 (const std::string_view s, const ICU4XLocale &locale, ICU4XTitlecaseOptionsV1 options) const
 
 ICU4XTitlecaseMapper (capi::ICU4XTitlecaseMapper *i)
 
 ICU4XTitlecaseMapper ()=default
 
 ICU4XTitlecaseMapper (ICU4XTitlecaseMapper &&) noexcept=default
 
ICU4XTitlecaseMapperoperator= (ICU4XTitlecaseMapper &&other) noexcept=default
 

Static Public Member Functions

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

Detailed Description

See the Rust documentation for TitlecaseMapper for more information.

Constructor & Destructor Documentation

◆ ICU4XTitlecaseMapper() [1/3]

ICU4XTitlecaseMapper::ICU4XTitlecaseMapper ( capi::ICU4XTitlecaseMapper * i)
inlineexplicit

◆ ICU4XTitlecaseMapper() [2/3]

ICU4XTitlecaseMapper::ICU4XTitlecaseMapper ( )
default

◆ ICU4XTitlecaseMapper() [3/3]

ICU4XTitlecaseMapper::ICU4XTitlecaseMapper ( ICU4XTitlecaseMapper && )
defaultnoexcept

Member Function Documentation

◆ create()

diplomat::result< ICU4XTitlecaseMapper, ICU4XError > ICU4XTitlecaseMapper::create ( const ICU4XDataProvider & provider)
inlinestatic

Construct a new ICU4XTitlecaseMapper instance

See the Rust documentation for new for more information.

◆ operator=()

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

◆ titlecase_segment_v1()

diplomat::result< std::string, ICU4XError > ICU4XTitlecaseMapper::titlecase_segment_v1 ( const std::string_view s,
const ICU4XLocale & locale,
ICU4XTitlecaseOptionsV1 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_v1_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XTitlecaseMapper::titlecase_segment_v1_to_writeable ( const std::string_view s,
const ICU4XLocale & locale,
ICU4XTitlecaseOptionsV1 options,
W & write ) 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.


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