MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / remove_path_separator

Function remove_path_separator

src/base/path.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148std::string remove_path_separator(const std::string& path)
149{
150 std::string result(path);
151
152 // Erase all trailing separators
153 while (!result.empty() && is_path_separator(*(result.end()-1)))
154 result.erase(result.end()-1);
155
156 return result;
157}
158
159std::string fix_path_separators(const std::string& filename)
160{

Callers 2

TESTFunction · 0.85

Calls 3

is_path_separatorFunction · 0.85
emptyMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.68