IcuTokenizer class

Stub IcuTokenizer for web targets where dart:ffi is unavailable.

The real implementation lives in icu_tokenizer.dart and is selected via conditional import on targets where dart:ffi is available (native platforms). On web this stub is used and throws UnsupportedError at construction time. Use BrowserTokenizer on web instead.

Implemented types

Constructors

IcuTokenizer()
IcuTokenizer.forPlatform(String platform)

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
tokenise(String text) → List<String>
Segments text into word tokens.
override
tokeniseSpans(String text) → List<TokenSpan>
Segments text into word tokens with their character offsets.
override
toString() → String
A string representation of this object.
inherited

Operators

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