ICU4X
International Components for Unicode
|
#include <ICU4XSentenceSegmenter.hpp>
Public Member Functions | |
ICU4XSentenceBreakIteratorUtf8 | segment_utf8 (const std::string_view input) const |
ICU4XSentenceBreakIteratorUtf16 | segment_utf16 (const std::u16string_view input) const |
ICU4XSentenceBreakIteratorLatin1 | segment_latin1 (const diplomat::span< const uint8_t > input) const |
ICU4XSentenceSegmenter (capi::ICU4XSentenceSegmenter *i) | |
ICU4XSentenceSegmenter ()=default | |
ICU4XSentenceSegmenter (ICU4XSentenceSegmenter &&) noexcept=default | |
ICU4XSentenceSegmenter & | operator= (ICU4XSentenceSegmenter &&other) noexcept=default |
Static Public Member Functions | |
static diplomat::result< ICU4XSentenceSegmenter, ICU4XError > | create (const ICU4XDataProvider &provider) |
An ICU4X sentence-break segmenter, capable of finding sentence breakpoints in strings.
See the Rust documentation for SentenceSegmenter
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Construct an [ICU4XSentenceSegmenter
].
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.