Lines Matching refs:idx
28 def _scan_once(string, idx): argument
30 nextchar = string[idx]
35 return parse_string(string, idx + 1, encoding, strict)
37 return parse_object((string, idx + 1), encoding, strict,
40 return parse_array((string, idx + 1), _scan_once)
41 elif nextchar == 'n' and string[idx:idx + 4] == 'null':
42 return None, idx + 4
43 elif nextchar == 't' and string[idx:idx + 4] == 'true':
44 return True, idx + 4
45 elif nextchar == 'f' and string[idx:idx + 5] == 'false':
46 return False, idx + 5
48 m = match_number(string, idx)
56 elif nextchar == 'N' and string[idx:idx + 3] == 'NaN':
57 return parse_constant('NaN'), idx + 3
58 elif nextchar == 'I' and string[idx:idx + 8] == 'Infinity':
59 return parse_constant('Infinity'), idx + 8
60 elif nextchar == '-' and string[idx:idx + 9] == '-Infinity':
61 return parse_constant('-Infinity'), idx + 9