Difference between revisions of "Utf8.char"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Receives zero or more integers. Returns a string with length equal to the number of arguments, in whi...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
 +
'''Class:''' [[utf8]]<br/>
 +
 
=== Description ===
 
=== Description ===
 
Receives zero or more integers. Returns a string with length equal to the number of arguments, in which each character has the internal numerical code equal to its corresponding argument.
 
Receives zero or more integers. Returns a string with length equal to the number of arguments, in which each character has the internal numerical code equal to its corresponding argument.
 +
<syntaxhighlight lang="lua">
 +
(string) = utf8.char(code1,code2,codeN)
 +
</syntaxhighlight>
 +
 
Numerical codes are not necessarily portable across platforms.
 
Numerical codes are not necessarily portable across platforms.
<source lang="lua">
+
 
(string), = utf8.char(code1code2codeN,)
+
=== Parameters ===
</source>
+
'''code1''': (number) <br/>
'''code1:''' (number) ''''''<br/>
+
'''code2''': (number) '''optional'''<br/>
'''code2:''' (number) '''optional'''<br/>
+
'''codeN''': (number) '''optional'''<br/>
'''codeN:''' (number) '''optional'''<br/>
+
 
 +
=== Return values ===
 
'''Returns''' (string) string with provided characters<br/>
 
'''Returns''' (string) string with provided characters<br/>
 +
 +
{{Utf8}}

Latest revision as of 22:28, 1 December 2023

Available since: Gideros 2016.06
Class: utf8

Description

Receives zero or more integers. Returns a string with length equal to the number of arguments, in which each character has the internal numerical code equal to its corresponding argument.

(string) = utf8.char(code1,code2,codeN)

Numerical codes are not necessarily portable across platforms.

Parameters

code1: (number)
code2: (number) optional
codeN: (number) optional

Return values

Returns (string) string with provided characters