String.byte: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<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.  
<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.  


Line 8: Line 8:
(numbers) = string.byte(s,i,j)
(numbers) = string.byte(s,i,j)
</source>
</source>
=== Parameters ===
=== <translate>Parameters</translate> ===
'''s''': (string) <translate>string to get numerical codes from</translate> <br/>
'''s''': (string) <translate>string to get numerical codes from</translate> <br/>
'''i''': (number) <translate>start symbol (default = 1)</translate> '''optional'''<br/>
'''i''': (number) <translate>start symbol (default = 1)</translate> '''optional'''<br/>
'''j''': (number) <translate>end symbol (defaults = i)</translate> '''optional'''<br/>
'''j''': (number) <translate>end symbol (defaults = i)</translate> '''optional'''<br/>
=== Return values ===
=== <translate>Return values</translate> ===
'''Returns''' (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/>

Revision as of 06:29, 24 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)

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