Lines Matching refs:path
73 // - Makes its own copy of the path.
101 // Search for a valid "local" path based on combining the stack of include
113 std::string path = *it + '/' + headerName;
114 std::replace(path.begin(), path.end(), '\\', '/');
115 std::ifstream file(path, std::ios_base::binary | std::ios_base::ate);
117 directoryStack.push_back(getDirectory(path));
118 includedFiles.insert(path);
119 return newIncludeResult(path, file, (int)file.tellg());
126 // Search for a valid <system> path.
134 virtual IncludeResult* newIncludeResult(const std::string& path, std::ifstream& file, int length) const
139 return new IncludeResult(path, content, length, content);
142 // If no path markers, return current working directory.
143 // Otherwise, strip file name and return path leading up to it.
144 virtual std::string getDirectory(const std::string path) const
146 size_t last = path.find_last_of("/\\");
147 return last == std::string::npos ? "." : path.substr(0, last);