lua-users wiki: Optimising Using Local Variables

lua-users wiki: Optimising Using Local Variables Overview Local variables are very quick, since they are accessed by index. “Local variables are very fast as they reside in virtual machine registers, and are accessed directly by index. Global variables on the Continue reading lua-users wiki: Optimising Using Local Variables

lua-users wiki: Validate Unicode String

lua-users wiki: Validate Unicode String This code treat UTF-8 encoded Unicode strings. It provides the following API: string.subutf8(string, start[,end]) substrings, UTF-8 aware pos, char = string.nextutf8(string, orig_pos) returns the char at orig_pos and the next char’s position in pos. for i, Continue reading lua-users wiki: Validate Unicode String