1local function
decode(in_str, out_table)
4 local pattern =
'[^,]+'
5 local next_line = in_str:gmatch(
'([^\r\n]*)\r?\n?')
6 local
line = next_line()
7 local next_header =
line:gmatch(pattern)
10 local
header = next_header()
19 local next_value =
line:gmatch(pattern)
22 local value = next_value()
23 local
header = headers[index1]
24 if
header and value and not out_table[index2] then
25 out_table[index2] = {}
28 out_table[index2][
header] = value
39 encode=function()
error('not implemented!') end
local function decode(in_str, out_table)
local function header(self, name, value)
local function error(self, handler_func)
local function line(x1, y1, x2, y2)