| 63 | } |
| 64 | |
| 65 | void StaticSymbols::CanonicalizePath(STDString & path) const |
| 66 | { |
| 67 | if (path.find('\\') != STDString::npos) { |
| 68 | WARN("Path contains backslashes: \"%s\"; canonical paths should only contain forward slashes.", path.c_str()); |
| 69 | } |
| 70 | |
| 71 | std::replace(path.begin(), path.end(), '\\', '/'); |
| 72 | } |
| 73 | |
| 74 | STDString StaticSymbols::ToPath(StringView path, PathRootType root, bool canonicalize) const |
| 75 | { |