utf8.lower | Multi Theft Auto: Wiki Skip to content

utf8.lower

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Converts a UTF-8 string to folded case (lowercase), which can be used to compare two strings. If input is an integer, it's treat as a codepoint and a convert codepoint (integer) is returned.

Note

You may want to read up on case folding for more information about the use of this function.

Syntax

utf8.lower ( )

Code Examples

server

This example shows how to convert a string to lowercase, which can be used to compare with other folded strings.

local output = utf8.lower( "WHAT ARE YOU UP TO? Do you like uppercase?" )
print( output ) -- what are you up to? do you like uppercase?
local value = utf8.fold( 1088 )
print( type( value ) ) -- number

See Also