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

Function readUntilSpace

utils/zookeeper-cli/zookeeper-cli.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37void readUntilSpace(std::string & s, DB::ReadBuffer & buf)
38{
39 s = "";
40 while (!buf.eof())
41 {
42 if (isspace(*buf.position()))
43 return;
44 s.push_back(*buf.position());
45 ++buf.position();
46 }
47}
48
49void readMaybeQuoted(std::string & s, DB::ReadBuffer & buf)
50{

Callers 2

readMaybeQuotedFunction · 0.85
mainFunction · 0.85

Calls 3

eofMethod · 0.45
positionMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected