|
ICU4X
International Components for Unicode
|
#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 | |
| ICU4XGraphemeClusterSegmenter & | operator= (ICU4XGraphemeClusterSegmenter &&other) noexcept=default |
Static Public Member Functions | |
| static diplomat::result< ICU4XGraphemeClusterSegmenter, ICU4XError > | create (const ICU4XDataProvider &provider) |
An ICU4X grapheme-cluster-break segmenter, capable of finding grapheme cluster breakpoints in strings.
See the Rust documentation for GraphemeClusterSegmenter for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Construct an [ICU4XGraphemeClusterSegmenter].
See the Rust documentation for new for more information.
|
defaultnoexcept |
|
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.
|
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.
|
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.