Lines Matching defs:Filepath
137 std::string &Filepath = FileToFilepathMap[File];
138 if (!Filepath.empty())
139 return Filepath;
148 Filepath = std::string(Dir);
150 Filepath += '/';
151 Filepath += Filename;
152 return Filepath;
160 Filepath = std::string(Filename);
162 Filepath = (Dir + "\\" + Filename).str();
167 std::replace(Filepath.begin(), Filepath.end(), '/', '\\');
171 while ((Cursor = Filepath.find("\\.\\", Cursor)) != std::string::npos)
172 Filepath.erase(Cursor, 2);
177 while ((Cursor = Filepath.find("\\..\\", Cursor)) != std::string::npos) {
182 size_t PrevSlash = Filepath.rfind('\\', Cursor - 1);
187 Filepath.erase(PrevSlash, Cursor + 3 - PrevSlash);
194 while ((Cursor = Filepath.find("\\\\", Cursor)) != std::string::npos)
195 Filepath.erase(Cursor, 1);
197 return Filepath;