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

#include <GraphemeClusterSegmenter.d.hpp>

Public Member Functions

std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf8segment (std::string_view input) const
 
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf16segment16 (std::u16string_view input) const
 
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorLatin1segment_latin1 (diplomat::span< const uint8_t > input) const
 

Static Public Member Functions

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

Detailed Description

An ICU4X grapheme-cluster-break segmenter, capable of finding grapheme cluster breakpoints in strings.

See the Rust documentation for GraphemeClusterSegmenter for more information.

Member Function Documentation

◆ create()

std::unique_ptr< icu4x::GraphemeClusterSegmenter > icu4x::GraphemeClusterSegmenter::create ( )
inlinestatic

Construct an GraphemeClusterSegmenter using compiled data.

See the Rust documentation for new for more information.

◆ create_with_provider()

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

Construct an GraphemeClusterSegmenter.

See the Rust documentation for new for more information.

◆ operator delete()

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

◆ segment()

std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf8 > icu4x::GraphemeClusterSegmenter::segment ( std::string_view input) const
inline

Segments a string.

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

◆ segment16()

std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf16 > icu4x::GraphemeClusterSegmenter::segment16 ( std::u16string_view input) const
inline

Segments a string.

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

◆ segment_latin1()

std::unique_ptr< icu4x::GraphemeClusterBreakIteratorLatin1 > icu4x::GraphemeClusterSegmenter::segment_latin1 ( diplomat::span< const uint8_t > input) const
inline

Segments a Latin-1 string.

See the Rust documentation for segment_latin1 for more information.


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