SentenceSegmenter class final

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

See the Rust documentation for SentenceSegmenter for more information.

Implemented types

Constructors

SentenceSegmenter.new()
Construct a SentenceSegmenter using compiled data. This does not assume any content locale.
factory
SentenceSegmenter.withContentLocale(Locale locale)
Construct a SentenceSegmenter for content known to be of a given locale, using compiled data.
factory
SentenceSegmenter.withContentLocaleAndProvider(DataProvider provider, Locale locale)
Construct a SentenceSegmenter for content known to be of a given locale, using a particular data source.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
segment(String input) SentenceBreakIteratorUtf16
Segments a string.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited