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

Function Trim

engine/Poseidon/Core/ModCollection.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 return (slash == std::string::npos) ? p : p.substr(slash + 1);
88}
89
90std::string Trim(std::string s)
91{
92 const auto notSpace = [](unsigned char c) { return !std::isspace(c); };
93 s.erase(s.begin(), std::find_if(s.begin(), s.end(), notSpace));
94 s.erase(std::find_if(s.rbegin(), s.rend(), notSpace).base(), s.end());
95 return s;
96}
97
98std::string AbsoluteResolvedModPath(const std::filesystem::path& candidate)

Callers 1

ResolveModPathListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected