MCPcopy Create free account
hub / github.com/apache/impala / SkipString

Method SkipString

be/src/exec/json/json-parser.cc:314–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313template<class Stream>
314bool JsonSkipper<Stream>::SkipString() {
315 DCHECK(s_.Peek() == '"');
316 s_.Take();
317 char c;
318 bool escape = false;
319 while ((c = s_.Peek()) != '\0') {
320 if (escape) {
321 escape = false;
322 } else if (c == '\\') {
323 escape = true;
324 } else if (c == '"') {
325 s_.Take();
326 return true;
327 }
328 s_.Take();
329 }
330 ERROR_IF_FALSE(false, kParseErrorStringMissQuotationMark);
331}
332
333template<class Stream>
334bool JsonSkipper<Stream>::SkipNumber() {

Callers 1

TestSkipMethod · 0.80

Calls 2

PeekMethod · 0.45
TakeMethod · 0.45

Tested by 1

TestSkipMethod · 0.64