Pilates
    Preparing search index...

    Function stringWidth

    • Visual cell width of s in monospace cells. Strips ANSI escapes first.

      Returns 0 for empty strings. Counts grapheme clusters using UAX #29 rules, then sums per-cluster widths under the policy described at the top of the file.

      Parameters

      • s: string

      Returns number