| 146 | } |
| 147 | |
| 148 | std::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 | |
| 159 | std::string fix_path_separators(const std::string& filename) |
| 160 | { |