Utf8.byte

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2016.06
Class: utf8

Description

Returns the internal numerical codes of the characters s[i], s[i+1], ..., s[j].

(numbers) = utf8.byte(s,i,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.

Parameters

s: (string) string
i: (number) default is 1 optional
j: (number) optional

Return values

Returns (numbers) returns the internal numerical codes of the characters