Difference between revisions of "Utf8.byte"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2016.06<br/> | + | '''<translate>Available since</translate>:''' Gideros 2016.06<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>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. These indices are corrected following the same rules of function string.sub. | <translate>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. These indices are corrected following the same rules of function string.sub. | ||
Numerical codes are not necessarily portable across platforms.</translate> | Numerical codes are not necessarily portable across platforms.</translate> | ||
Line 7: | Line 7: | ||
(numbers) = utf8.byte(s,i,j) | (numbers) = utf8.byte(s,i,j) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''s''': (string) <translate></translate> <br/> | '''s''': (string) <translate></translate> <br/> | ||
'''i''': (number) <translate>default is 1</translate> '''optional'''<br/> | '''i''': (number) <translate>default is 1</translate> '''optional'''<br/> | ||
'''j''': (number) <translate></translate> '''optional'''<br/> | '''j''': (number) <translate></translate> '''optional'''<br/> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (numbers) <translate>Returns the internal numerical codes of the characters</translate><br/> | + | '''<translate>Returns</translate>''' (numbers) <translate>Returns the internal numerical codes of the characters</translate><br/> |
Revision as of 07:27, 24 August 2018
Available since: Gideros 2016.06
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. These indices are corrected following the same rules of function string.sub. Numerical codes are not necessarily portable across platforms.
(numbers) = utf8.byte(s,i,j)
Parameters
s: (string)
i: (number) default is 1 optional
j: (number) optional
Return values
Returns (numbers) Returns the internal numerical codes of the characters