Difference between revisions of "Utf8.reverse"

From Multi Theft Auto: Wiki
(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.


string utf8.reverse ( string input )

Required Arguments

  • input: A string character sequence


Returns a string containing the reversed original UTF-8 string.


Click to collapse [-]

This example shows how to reverse a UTF-8 string.

local input = "今日は素晴らしい日です"
local output = utf8.reverse( input )
outputConsole( output ) -- すで日いしら晴素は日今

See Also