Home  Contents

string.byte

String Lua Commands

SYNOPSIS

string.byte(s[,i[,j]])

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.

EXAMPLE

print(string.byte("Core4",2,4))
111 114 101