Difference between revisions of "String.byte"
From GiderosMobile
Line 16: | Line 16: | ||
=== <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
'''<translate>Returns</translate>''' (numbers) <translate>numerical codes of characters in provided range</translate><br/> | '''<translate>Returns</translate>''' (numbers) <translate>numerical codes of characters in provided range</translate><br/> | ||
+ | |||
+ | {{String}} |
Revision as of 22:06, 11 February 2020
Available since: Gideros 2011.6
Class: string
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)
Parameters
s: (string) string to get numerical codes from
i: (number) start symbol (default = 1) optional
j: (number) end symbol (defaults = i) optional
Return values
Returns (numbers) numerical codes of characters in provided range