Updating for Lua 5.1

git-svn-id: file:///var/svn/lua-iconv/trunk@26 9538949d-8f27-0410-946f-ce01ef448559
This commit is contained in:
Alexandre Erwin Ittner
2006-04-21 14:34:44 +00:00
parent 4ed127ac23
commit ec5bf22d3a
9 changed files with 92 additions and 269 deletions

View File

@@ -5,10 +5,10 @@ fp:close()
local i
local c = 0
local ostr = "local xxxxx = \""
local ostr = "local xxxxxxxxxxx = \""
for i = 1, string.len(str) do
ostr = ostr .. "\\" .. string.byte(string.sub(str, i, i+1))
if string.len(ostr) > 74 then
if string.len(ostr) > 72 then
io.write(ostr .. "\"\n")
ostr = ".. \""
end