Lines Matching refs:idx
32 def _scan_once(string, idx):
34 nextchar = string[idx]
39 return parse_string(string, idx + 1, encoding, strict)
41 return parse_object((string, idx + 1), encoding, strict,
44 return parse_array((string, idx + 1), _scan_once)
45 elif nextchar == 'n' and string[idx:idx + 4] == 'null':
46 return None, idx + 4
47 elif nextchar == 't' and string[idx:idx + 4] == 'true':
48 return True, idx + 4
49 elif nextchar == 'f' and string[idx:idx + 5] == 'false':
50 return False, idx + 5
52 m = match_number(string, idx)
60 elif nextchar == 'N' and string[idx:idx + 3] == 'NaN':
61 return parse_constant('NaN'), idx + 3
62 elif nextchar == 'I' and string[idx:idx + 8] == 'Infinity':
63 return parse_constant('Infinity'), idx + 8
64 elif nextchar == '-' and string[idx:idx + 9] == '-Infinity':
65 return parse_constant('-Infinity'), idx + 9
69 def scan_once(string, idx):
71 return _scan_once(string, idx)