Utf8.reverse: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
			
		
		
	
 (Created page with "__NOTOC__ {{Shared function}}  Reverses the input string.  ==Syntax== <syntaxhighlight lang="lua">string utf8.reverse ( string input )</syntaxhighlight>  ===Required Arguments=== *'''input:''' A string c...")  | 
			
(No difference) 
 | 
Latest revision as of 16:58, 15 February 2016
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