Utf8.title

From Multi Theft Auto: Wiki
Revision as of 18:11, 15 February 2016 by Qaisjp (talk | contribs) (swap with utf8.upper)
Jump to navigation Jump to search

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

string utf8.upper ( string|int input )
string utf8.title ( string|int input )

Required Arguments

  • input: A string character sequence OR an integer value

Returns

Returns a string in upper-case.

Example

Click to collapse [-]
Client

This example shows how to convert a string to upper-case.

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

See Also