There functions are similar to toupper()
, tolower()
and
chartr()
, but they keep the ANSI colors of the string.
ansi_toupper(x)
ansi_tolower(x)
ansi_chartr(old, new, x)
Input string. May have ANSI colors and styles.
a character string specifying the characters to be translated. If a character vector of length 2 or more is supplied, the first element is used with a warning.
a character string specifying the translations. If a character vector of length 2 or more is supplied, the first element is used with a warning.
Character vector of the same length as x
, containing
the translated strings. ANSI styles are retained.
Other ANSI string operations:
ansi_align()
,
ansi_columns()
,
ansi_nchar()
,
ansi_strsplit()
,
ansi_strtrim()
,
ansi_strwrap()
,
ansi_substr()
,
ansi_substring()
,
ansi_trimws()
Other ANSI string operations:
ansi_align()
,
ansi_columns()
,
ansi_nchar()
,
ansi_strsplit()
,
ansi_strtrim()
,
ansi_strwrap()
,
ansi_substr()
,
ansi_substring()
,
ansi_trimws()
Other ANSI string operations:
ansi_align()
,
ansi_columns()
,
ansi_nchar()
,
ansi_strsplit()
,
ansi_strtrim()
,
ansi_strwrap()
,
ansi_substr()
,
ansi_substring()
,
ansi_trimws()