String.byte: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns the internal numerical codes of the characters s[i], s[i+1], ···, s[j]. The default value f..." |
No edit summary |
||
| Line 6: | Line 6: | ||
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"> | ||
(numbers) | (numbers) = string.byte(s,i,j) | ||
</source> | </source> | ||
'''s | '''s''': (string) string to get numerical codes from ''''''<br/> | ||
'''i | '''i''': (number) start symbol (default = 1) '''optional'''<br/> | ||
'''j | '''j''': (number) end symbol (defaults = i) '''optional'''<br/> | ||
'''Returns''' (numbers) numerical codes of characters in provided range<br/> | '''Returns''' (numbers) numerical codes of characters in provided range<br/> | ||
Revision as of 09:22, 23 August 2018
Available since: Gideros 2011.6
Description
Returns the internal numerical codes of the characters s[i], s[i+1], ···, s[j]. The default value for i is 1; the default value for j is i.
Note that numerical codes are not necessarily portable across platforms.
(numbers) = string.byte(s,i,j)
's: (string) string to get numerical codes from '
i: (number) start symbol (default = 1) optional
j: (number) end symbol (defaults = i) optional
Returns (numbers) numerical codes of characters in provided range