Utf8.upper: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Shared function}} Converts a UTF-8 string to upper-case. If ''input'' is an integer, it's treat as a code point and a convert code point (number) is returned. ==...")
 
m (swap with utf8.title)
 
Line 1: Line 1:
__NOTOC__
#REDIRECT [[Utf8.title]]
{{Shared function}}
 
Converts a UTF-8 string to upper-case. If ''input'' is an integer, it's treat as a code point and a convert code point (number) is returned.
 
==Syntax==
<syntaxhighlight lang="lua">string utf8.upper ( string|int input )
string utf8.title ( string|int input )</syntaxhighlight>
 
===Required Arguments===
*'''input:''' A string character sequence OR an integer value
 
===Returns===
Returns a ''string'' in upper-case.
 
==Example==
<section name="Client" class="client" show="true">
This example shows how to convert a string to upper-case.
<syntaxhighlight lang="lua">
local output = utf8.upper( "WHAT ARE YOU UP TO? Do you like uppercase?" )
outputConsole( output ) -- WHAT ARE YOU UP TO? DO YOU LIKE UPPERCASE?
 
local value = utf8.title( 1088 )
outputConsole( value, type( value ) ) -- 1056, number
</syntaxhighlight>
</section>
 
==See Also==
{{UTF8 functions}}

Latest revision as of 18:11, 15 February 2016

Redirect to: