Difference between revisions of "String.char"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Receives zero or more integers. Returns a string with length equal to the number of arguments, in whic...") |
|||
Line 7: | Line 7: | ||
Note that numerical codes are not necessarily portable across platforms. | Note that numerical codes are not necessarily portable across platforms. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (string) | + | (string) = string.char(i1,i2,...) |
</source> | </source> | ||
− | '''i1 | + | '''i1''': (number) first character represented by numerical code ''''''<br/> |
− | '''i2 | + | '''i2''': (number) second character represented by numerical code '''optional'''<br/> |
− | '''... | + | '''...''': (multiple) more optional characters represented by numerical codes '''optional'''<br/> |
'''Returns''' (string) string created from characters<br/> | '''Returns''' (string) string created from characters<br/> |
Revision as of 10:19, 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,...)
'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
Returns (string) string created from characters