Interface WidthBreak

When breaking a string into max-cell lengths, these are the pieces. last will not be included until the last segment, then it will be true.

interface WidthBreak {
    cells: number;
    last: undefined | boolean;
    string: string;
}

Properties

Properties

cells: number

Number of display cells for the cluster.

last: undefined | boolean

If specified and true, this is the last piece.

string: string

Multiple grapheme clusters, but never starts with a combining character unless the input string started with one.