MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Trim

Function Trim

apps/tools/Tools/commands/ConfigCommand.cpp:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170static std::string Trim(std::string s)
171{
172 while (!s.empty() && std::isspace(static_cast<unsigned char>(s.front())))
173 s.erase(0, 1);
174 while (!s.empty() && std::isspace(static_cast<unsigned char>(s.back())))
175 s.pop_back();
176 return s;
177}
178
179static std::vector<std::string> SplitConfigPath(const std::string& path)
180{

Callers 1

SplitConfigPathFunction · 0.70

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected