Home
last modified time | relevance | path

Searched refs:nextchar (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Lib/
Dshlex.py138 nextchar = self._pushback_chars.pop()
140 nextchar = self.instream.read(1)
141 if nextchar == '\n':
145 nextchar))
150 if not nextchar:
153 elif nextchar in self.whitespace:
160 elif nextchar in self.commenters:
163 elif self.posix and nextchar in self.escape:
165 self.state = nextchar
166 elif nextchar in self.wordchars:
[all …]
/third_party/python/Lib/json/
Ddecoder.py147 nextchar = s[end:end + 1]
149 if nextchar != '"':
150 if nextchar in _ws:
152 nextchar = s[end:end + 1]
154 if nextchar == '}':
162 elif nextchar != '"':
191 nextchar = s[end]
192 if nextchar in _ws:
194 nextchar = s[end]
196 nextchar = ''
[all …]
Dscanner.py30 nextchar = string[idx]
34 if nextchar == '"':
36 elif nextchar == '{':
39 elif nextchar == '[':
41 elif nextchar == 'n' and string[idx:idx + 4] == 'null':
43 elif nextchar == 't' and string[idx:idx + 4] == 'true':
45 elif nextchar == 'f' and string[idx:idx + 5] == 'false':
56 elif nextchar == 'N' and string[idx:idx + 3] == 'NaN':
58 elif nextchar == 'I' and string[idx:idx + 8] == 'Infinity':
60 elif nextchar == '-' and string[idx:idx + 9] == '-Infinity':
/third_party/ltp/tools/sparse/sparse-src/
Dtokenize.c440 static inline int nextchar(stream_t *stream) in nextchar() function
558 next = nextchar(stream); in get_one_number()
563 next = nextchar(stream); in get_one_number()
595 for (escape = 0; escape || next != delim; next = nextchar(stream)) { in eat_string()
644 return nextchar(stream); in eat_string()
651 switch (nextchar(stream)) { in drop_stream_eoln()
655 return nextchar(stream); in drop_stream_eoln()
667 next = nextchar(stream); in drop_stream_comment()
674 next = nextchar(stream); in drop_stream_comment()
679 return nextchar(stream); in drop_stream_comment()
[all …]