Difference between revisions of "String.char"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<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.  
+
<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.  
  
  
  Note that numerical codes are not necessarily portable across platforms.
+
  Note that numerical codes are not necessarily portable across platforms.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(string) = string.char(i1,i2,...)
 
(string) = string.char(i1,i2,...)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''i1''': (number) first character represented by numerical code <br/>
+
'''i1''': (number) <translate>first character represented by numerical code</translate> <br/>
'''i2''': (number) second character represented by numerical code '''optional'''<br/>
+
'''i2''': (number) <translate>second character represented by numerical code</translate> '''optional'''<br/>
'''...''': (multiple) more optional characters represented by numerical codes '''optional'''<br/>
+
'''...''': (multiple) <translate>more optional characters represented by numerical codes</translate> '''optional'''<br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (string) string created from characters<br/>
+
'''Returns''' (string) <translate>string created from characters</translate><br/>

Revision as of 14:33, 23 August 2018

Available since: Gideros 2011.6

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.


Note that numerical codes are not necessarily portable across platforms.
(string) = string.char(i1,i2,...)

Parameters

i1: (number) first character represented by numerical code
i2: (number) second character represented by numerical code optional
...: (multiple) more optional characters represented by numerical codes optional

Return values

Returns (string) string created from characters