stri_reverse: Reverse Each String

Description Usage Arguments Details Value Examples

Description

Reverses characters in every string.

Usage

1

Arguments

str

character vector

Details

Note that this operation is not very intelligent – it just reverses the order of all Unicode code points. It may result in non-Unicode-normalized strings and may give strange output for bidirectional strings.

Value

Returns a character vector.

Examples

1
2
3
4
5
6
stri_reverse(c("123", "abc d e f"))
stri_reverse("ZXY (\u0105\u0104123$^).")
## Not run: 
stri_reverse(stri_enc_nfd('\u0105')) == stri_enc_nfd('\u0105') # A, ogonek -> agonek, A

## End(Not run)

stringi documentation built on May 2, 2019, 4:54 p.m.