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

#include <ICU4XGraphemeClusterSegmenter.hpp>

Public Member Functions

ICU4XGraphemeClusterBreakIteratorUtf8 segment_utf8 (const std::string_view input) const
 
ICU4XGraphemeClusterBreakIteratorUtf16 segment_utf16 (const std::u16string_view input) const
 
ICU4XGraphemeClusterBreakIteratorLatin1 segment_latin1 (const diplomat::span< const uint8_t > input) const
 
 ICU4XGraphemeClusterSegmenter (capi::ICU4XGraphemeClusterSegmenter *i)
 
 ICU4XGraphemeClusterSegmenter ()=default
 
 ICU4XGraphemeClusterSegmenter (ICU4XGraphemeClusterSegmenter &&) noexcept=default
 
ICU4XGraphemeClusterSegmenteroperator= (ICU4XGraphemeClusterSegmenter &&other) noexcept=default
 

Static Public Member Functions

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

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.

Constructor & Destructor Documentation

◆ ICU4XGraphemeClusterSegmenter() [1/3]

ICU4XGraphemeClusterSegmenter::ICU4XGraphemeClusterSegmenter ( capi::ICU4XGraphemeClusterSegmenter * i)
inlineexplicit

◆ ICU4XGraphemeClusterSegmenter() [2/3]

ICU4XGraphemeClusterSegmenter::ICU4XGraphemeClusterSegmenter ( )
default

◆ ICU4XGraphemeClusterSegmenter() [3/3]

ICU4XGraphemeClusterSegmenter::ICU4XGraphemeClusterSegmenter ( ICU4XGraphemeClusterSegmenter && )
defaultnoexcept

Member Function Documentation

◆ create()

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

Construct an [ICU4XGraphemeClusterSegmenter].

See the Rust documentation for new for more information.

◆ operator=()

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

◆ segment_latin1()

ICU4XGraphemeClusterBreakIteratorLatin1 ICU4XGraphemeClusterSegmenter::segment_latin1 ( const diplomat::span< const uint8_t > input) const
inline

Segments a Latin-1 string.

See the Rust documentation for segment_latin1 for more information.

Lifetimes: this, input must live at least as long as the output.

◆ segment_utf16()

ICU4XGraphemeClusterBreakIteratorUtf16 ICU4XGraphemeClusterSegmenter::segment_utf16 ( const 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.

Lifetimes: this, input must live at least as long as the output.

◆ segment_utf8()

ICU4XGraphemeClusterBreakIteratorUtf8 ICU4XGraphemeClusterSegmenter::segment_utf8 ( const 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.

Lifetimes: this, input must live at least as long as the output.


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