Utf8.reverse
Jump to navigation
Jump to search
Reverses the input string.
Syntax
string utf8.reverse ( string input )
Required Arguments
- input: A string character sequence
Returns
Returns a string containing the reversed original UTF-8 string.
Example
Click to collapse [-]
ClientThis example shows how to reverse a UTF-8 string.
local input = "今日は素晴らしい日です" local output = utf8.reverse( input ) outputConsole( output ) -- すで日いしら晴素は日今
See Also
- utf8.byte
- utf8.char
- utf8.charpos
- utf8.escape
- utf8.find
- utf8.fold
- utf8.gmatch
- utf8.gsub
- utf8.insert
- utf8.len
- utf8.lower
- utf8.match
- utf8.ncasecmp
- utf8.next
- utf8.remove
- utf8.reverse
- utf8.sub
- utf8.title
- utf8.upper
- utf8.width
- utf8.widthindex