MCPcopy Create free account
hub / github.com/ByConity/ByConity / skipUntilWhitespace

Function skipUntilWhitespace

programs/git-import/git-import.cpp:433–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431/** Parsing helpers */
432
433void skipUntilWhitespace(ReadBuffer & buf)
434{
435 while (!buf.eof())
436 {
437 char * next_pos = find_first_symbols<'\t', '\n', ' '>(buf.position(), buf.buffer().end());
438 buf.position() = next_pos;
439
440 if (!buf.hasPendingData())
441 continue;
442
443 if (*buf.position() == '\t' || *buf.position() == '\n' || *buf.position() == ' ')
444 return;
445 }
446}
447
448void skipUntilNextLine(ReadBuffer & buf)
449{

Callers 1

processFileChangesFunction · 0.85

Calls 5

bufferMethod · 0.80
hasPendingDataMethod · 0.80
eofMethod · 0.45
positionMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected