local-ize functions

This commit is contained in:
Vanessa Dannenberg 2018-08-16 13:22:02 -04:00
parent 4d1d90cccc
commit ce9666cc48
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ end
-- first char is non-break space, 0xA0
local iso_chars=" ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
get_iso = function(c)
local get_iso = function(c)
local hb = string.byte(c,1) or 0
local lb = string.byte(c,2) or 0
local dec = lb+hb*256
@ -38,7 +38,7 @@ get_iso = function(c)
return char
end
make_iso = function(s)
local make_iso = function(s)
local i = 1
local s2 = ""
while i <= string.len(s) do