This is a color-aware counterpart of utf8_nchar(). By default it
counts Unicode grapheme clusters, instead of code points.
ansi_nchar(x, type = c("chars", "bytes", "width", "graphemes", "codepoints"))Numeric vector, the length of the strings in the character vector.
Other ANSI string operations:
ansi_align(),
ansi_columns(),
ansi_strsplit(),
ansi_strtrim(),
ansi_strwrap(),
ansi_substr(),
ansi_substring(),
ansi_toupper(),
ansi_trimws()