String.char: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''Class:''' [[string]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/string|string]]<br/>
=== <translate>Description</translate> ===
<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.


=== 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.
<syntaxhighlight lang="lua">
(string) = string.char(i1,i2,...)
</syntaxhighlight>


  Note that numerical codes are not necessarily portable across platforms.</translate>
  '''Note: numerical codes are not necessarily portable across platforms'''
<source lang="lua">
 
(string) = string.char(i1,i2,...)
=== Parameters ===
</source>
'''i1''': (number) first character represented by numerical code<br/>
=== <translate>Parameters</translate> ===
'''i2''': (number) second character represented by numerical code '''optional'''<br/>
'''i1''': (number) <translate>first character represented by numerical code</translate> <br/>
'''...''': (multiple) more optional characters represented by numerical codes '''optional'''<br/>
'''i2''': (number) <translate>second character represented by numerical code</translate> '''optional'''<br/>
 
'''...''': (multiple) <translate>more optional characters represented by numerical codes</translate> '''optional'''<br/>
=== Return values ===
=== <translate>Return values</translate> ===
'''Returns''' (string) string created from characters<br/>
'''<translate>Returns</translate>''' (string) <translate>string created from characters</translate><br/>
 
{{String}}

Latest revision as of 13:33, 13 July 2023

Available since: Gideros 2011.6
Class: string

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) = string.char(i1,i2,...)
Note: numerical codes are not necessarily portable across platforms

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