Difference between revisions of "Utf8.char"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Class:''' [[utf8]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/utf8|utf8]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>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.
Numerical codes are not necessarily portable across platforms.</translate>
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(string) = utf8.char(code1,code2,codeN)
 
(string) = utf8.char(code1,code2,codeN)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''code1''': (number) <translate></translate> <br/>
+
Numerical codes are not necessarily portable across platforms.
'''code2''': (number) <translate></translate> '''optional'''<br/>
+
 
'''codeN''': (number) <translate></translate> '''optional'''<br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''code1''': (number) <br/>
'''<translate>Returns</translate>''' (string) <translate>string with provided characters</translate><br/>
+
'''code2''': (number) '''optional'''<br/>
 +
'''codeN''': (number) '''optional'''<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (string) string with provided characters<br/>
  
 
{{Utf8}}
 
{{Utf8}}

Latest revision as of 21: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