--------------------------------- FileUtil::RemoveExcessPathDelimiters Makes all path delimiters forward slashes
| 263 | // Makes all path delimiters forward slashes |
| 264 | // |
| 265 | void FileUtil::UnifyPathDelimiters(std::string& path) |
| 266 | { |
| 267 | // loop from the back so that our index stays valid as we remove elements |
| 268 | for (size_t idx = path.size() - 1; idx > 0; --idx) |
| 269 | { |
| 270 | // check if the current character is a delimiter |
| 271 | if (std::find(pathDelimiters.cbegin(), pathDelimiters.cend(), path[idx]) != pathDelimiters.cend()) |
| 272 | { |
| 273 | path[idx] = s_PathDelimiter; |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | //--------------------------------- |
| 279 | // FileUtil::RemoveExcessPathDelimiters |
nothing calls this directly
no outgoing calls
no test coverage detected