Lines Matching refs:i
59 for i, v in ipairs(val) do
125 for i = 1, select("#", ...) do
126 res[ select(i, ...) ] = true
144 for i = idx, #str do
145 if set[str:sub(i, i)] ~= negate then
146 return i
156 for i = 1, idx - 1 do
158 if str:sub(i, i) == "\n" then
196 local function parse_string(str, i)
198 local j = i + 1
233 decode_error(str, i, "expected closing quote for string")
237 local function parse_number(str, i)
238 local x = next_char(str, i, delim_chars)
239 local s = str:sub(i, x - 1)
242 decode_error(str, i, "invalid number '" .. s .. "'")
248 local function parse_literal(str, i)
249 local x = next_char(str, i, delim_chars)
250 local word = str:sub(i, x - 1)
252 decode_error(str, i, "invalid literal '" .. word .. "'")
258 local function parse_array(str, i)
261 i = i + 1
264 i = next_char(str, i, space_chars, true)
266 if str:sub(i, i) == "]" then
267 i = i + 1
271 x, i = parse(str, i)
275 i = next_char(str, i, space_chars, true)
276 local chr = str:sub(i, i)
277 i = i + 1
279 if chr ~= "," then decode_error(str, i, "expected ']' or ','") end
281 return res, i
285 local function parse_object(str, i)
287 i = i + 1
290 i = next_char(str, i, space_chars, true)
292 if str:sub(i, i) == "}" then
293 i = i + 1
297 if str:sub(i, i) ~= '"' then
298 decode_error(str, i, "expected string for key")
300 key, i = parse(str, i)
302 i = next_char(str, i, space_chars, true)
303 if str:sub(i, i) ~= ":" then
304 decode_error(str, i, "expected ':' after key")
306 i = next_char(str, i + 1, space_chars, true)
308 val, i = parse(str, i)
312 i = next_char(str, i, space_chars, true)
313 local chr = str:sub(i, i)
314 i = i + 1
316 if chr ~= "," then decode_error(str, i, "expected '}' or ','") end
318 return res, i