Reverses each element of a character vector.
Details
This function uses stringi::stri_reverse(), which correctly
handles Unicode characters and multi-byte encodings.
See also
string-overview for an overview of all string utilities in pharos.
Examples
strRev("abc")
#> [1] "cba"
strRev(c("hello", "world"))
#> [1] "olleh" "dlrow"
# Unicode-safe
strRev("äöü")
#> [1] "üöä"
