Difference between revisions of "Utf8.byte"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
 
=== Description ===
 
=== 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.
+
<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.
+
Numerical codes are not necessarily portable across platforms.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(numbers) = utf8.byte(s,i,j)
 
(numbers) = utf8.byte(s,i,j)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''s''': (string) <br/>
+
'''s''': (string) <translate></translate> <br/>
'''i''': (number) default is 1 '''optional'''<br/>
+
'''i''': (number) <translate>default is 1</translate> '''optional'''<br/>
'''j''': (number) '''optional'''<br/>
+
'''j''': (number) <translate></translate> '''optional'''<br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (numbers) Returns the internal numerical codes of the characters<br/>
+
'''Returns''' (numbers) <translate>Returns the internal numerical codes of the characters</translate><br/>

Revision as of 14:33, 23 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