MCPcopy Create free account
hub / github.com/LUX-Core/lux / SplitLuxReplyLine

Function SplitLuxReplyLine

src/luxcontrol.cpp:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static std::pair<std::string,std::string> SplitLuxReplyLine(const std::string &s)
251{
252 size_t ptr=0;
253 std::string type;
254 while (ptr < s.size() && s[ptr] != ' ') {
255 type.push_back(s[ptr]);
256 ++ptr;
257 }
258 if (ptr < s.size())
259 ++ptr; // skip ' '
260 return make_pair(type, s.substr(ptr));
261}
262
263
264static std::map<std::string,std::string> ParseLuxReplyMapping(const std::string &s)

Callers 2

authchallenge_cbMethod · 0.85
protocolinfo_cbMethod · 0.85

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected