Visual cell width of s in monospace cells. Strips ANSI escapes first.
s
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.
Visual cell width of
sin 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.