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

Method Consume

be/src/exec/json/json-parser.h:271–277  ·  view source on GitHub ↗

This function attempts to consume a character from the stream, if the next character matches the 'expect', take out it and return true, otherwise return false.

Source from the content-addressed store, hash-verified

269 /// This function attempts to consume a character from the stream, if the next character
270 /// matches the 'expect', take out it and return true, otherwise return false.
271 inline bool Consume(char expect) {
272 if (LIKELY(s_.Peek() == expect)) {
273 s_.Take();
274 return true;
275 }
276 return false;
277 }
278
279 inline void SkipWhitespace() {
280 char c;

Callers 1

InitMethod · 0.45

Calls 2

PeekMethod · 0.45
TakeMethod · 0.45

Tested by

no test coverage detected