API / Core / Intl / Segments

Segments

A Segments instance is an object that represents the segments of a specific string, subject to the locale and options of its constructing Intl.Segmenter instance. https://tc39.es/ecma402/#sec-segments-objects

t

RESCRIPT
type t

segmentData

RESCRIPT
type segmentData = { segment: string, index: int, isWordLike: option<bool>, input: string, }

containing

RESCRIPT
let containing: t => segmentData

containingWithIndex

RESCRIPT
let containingWithIndex: (t, int) => segmentData