MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / parseLine

Function parseLine

src/bzfs/WorldInfo.cpp:431–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430
431static bool parseLine(const std::string& line,
432 std::string& cmd, std::string& args) {
433 const char* s = TextUtils::skipWhitespace(line.c_str());
434 const char* e = TextUtils::skipNonWhitespace(s);
435 if (e == s) {
436 return false;
437 }
438 cmd = std::string(s, e - s);
439 args = TextUtils::skipWhitespace(e);
440 return true;
441}
442
443
444void WorldInfo::createFaceZones() {

Callers 3

createFaceZonesMethod · 0.85
createMeshWeaponsMethod · 0.85
loadMethod · 0.85

Calls 3

skipWhitespaceFunction · 0.85
skipNonWhitespaceFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected