Difference between revisions of "String.char"
From GiderosMobile
| Line 1: | Line 1: | ||
| __NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' Gideros 2011.6<br/> | |
| − | ''' | + | '''Class:''' [[string]]<br/> | 
| − | ''' | ||
| − | |||
| − | |||
| − | + | === 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. | |
| <source lang="lua"> | <source lang="lua"> | ||
| (string) = string.char(i1,i2,...) | (string) = string.char(i1,i2,...) | ||
| </source> | </source> | ||
| − | ===  | + | |
| − | '''i1''': (number)  | + |  '''Note: numerical codes are not necessarily portable across platforms''' | 
| − | '''i2''': (number)  | + | |
| − | '''...''': (multiple)  | + | === Parameters === | 
| − | ===  | + | '''i1''': (number) first character represented by numerical code<br/> | 
| − | ''' | + | '''i2''': (number) second character represented by numerical code '''optional'''<br/> | 
| + | '''...''': (multiple) more optional characters represented by numerical codes '''optional'''<br/> | ||
| + | |||
| + | === Return values === | ||
| + | '''Returns''' (string) string created from characters<br/> | ||
| {{String}} | {{String}} | ||
Revision as of 06:20, 20 January 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
