ICU4X
International Components for Unicode
|
#include <GraphemeClusterSegmenter.d.hpp>
Public Member Functions | |
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf8 > | segment (std::string_view input) const |
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorUtf16 > | segment16 (std::u16string_view input) const |
std::unique_ptr< icu4x::GraphemeClusterBreakIteratorLatin1 > | segment_latin1 (diplomat::span< const uint8_t > input) const |
Static Public Member Functions | |
static std::unique_ptr< icu4x::GraphemeClusterSegmenter > | create () |
static diplomat::result< std::unique_ptr< icu4x::GraphemeClusterSegmenter >, icu4x::DataError > | create_with_provider (const icu4x::DataProvider &provider) |
static void | operator delete (void *ptr) |
An ICU4X grapheme-cluster-break segmenter, capable of finding grapheme cluster breakpoints in strings.
See the Rust documentation for GraphemeClusterSegmenter
for more information.
|
inlinestatic |
Construct an GraphemeClusterSegmenter
using compiled data.
See the Rust documentation for new
for more information.
|
inlinestatic |
Construct an GraphemeClusterSegmenter
.
See the Rust documentation for new
for more information.
|
inlinestatic |
|
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.
|
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.
|
inline |
Segments a Latin-1 string.
See the Rust documentation for segment_latin1
for more information.