LineSegmenter class final

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

See the Rust documentation for LineSegmenter for more information.

Implemented types

Constructors

LineSegmenter.auto()
Construct a LineSegmenter with default options (no locale-based tailoring) using compiled data. It automatically loads the best available payload data for Burmese, Khmer, Lao, and Thai.
factory
LineSegmenter.autoWithOptions(LineBreakOptions options, [Locale? contentLocale])
Construct a LineSegmenter with custom options using compiled data. It automatically loads the best available payload data for Burmese, Khmer, Lao, and Thai.
factory
LineSegmenter.autoWithOptionsAndProvider(DataProvider provider, LineBreakOptions options, [Locale? contentLocale])
Construct a LineSegmenter with custom options. It automatically loads the best available payload data for Burmese, Khmer, Lao, and Thai, using a particular data source.
factory
LineSegmenter.dictionary()
Construct a LineSegmenter with default options (no locale-based tailoring) and dictionary payload data for Burmese, Khmer, Lao, and Thai, using compiled data
factory
LineSegmenter.dictionaryWithOptions(LineBreakOptions options, [Locale? contentLocale])
Construct a LineSegmenter with custom options and dictionary payload data for Burmese, Khmer, Lao, and Thai, using compiled data.
factory
LineSegmenter.dictionaryWithOptionsAndProvider(DataProvider provider, LineBreakOptions options, [Locale? contentLocale])
Construct a LineSegmenter with custom options and dictionary payload data for Burmese, Khmer, Lao, and Thai, using a particular data source.
factory
LineSegmenter.lstm()
Construct a LineSegmenter with default options (no locale-based tailoring) and LSTM payload data for Burmese, Khmer, Lao, and Thai, using compiled data.
factory
LineSegmenter.lstmWithOptions(LineBreakOptions options, [Locale? contentLocale])
Construct a LineSegmenter with custom options and LSTM payload data for Burmese, Khmer, Lao, and Thai, using compiled data.
factory
LineSegmenter.lstmWithOptionsAndProvider(DataProvider provider, LineBreakOptions options, [Locale? contentLocale])
Construct a LineSegmenter with custom options and LSTM payload data for Burmese, Khmer, Lao, and Thai, 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) LineBreakIteratorUtf16
Segments a string.
toString() String
A string representation of this object.
inherited

Operators

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