This is a color-aware counterpart of base::nchar()
,
which does not do well, since it also counts the ANSI control
characters.
Arguments
- x
Character vector, potentially ANSO styled, or a vector to be coarced to character.
- ...
Additional arguments, passed on to
base::nchar()
after removing ANSI escape sequences.
See also
Other ANSI string operations:
col_align()
,
col_strsplit()
,
col_substr()
,
col_substring()