Segmenter

open class Segmenter(locales: UnicodeBCP47LocaleIdentifier = definedExternally, options: SegmenterOptions = definedExternally)(source)

Constructors

Link copied to clipboard
constructor(locales: UnicodeBCP47LocaleIdentifier = definedExternally, options: SegmenterOptions = definedExternally)
constructor(locales: Locale, options: SegmenterOptions = definedExternally)
constructor(locales: ReadonlyArray<UnicodeBCP47LocaleIdentifier>, options: SegmenterOptions = definedExternally)
constructor(locales: ReadonlyArray<Locale>, options: SegmenterOptions = definedExternally)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

The resolvedOptions() method of Intl.Segmenter instances returns a new object with properties reflecting the options computed during initialization of this Segmenter object.

Link copied to clipboard
fun segment(input: String): Segments

Returns Segments object containing the segments of the input string, using the segmenter's locale and granularity.