Lines Matching refs:Path
234 i.Path = path; in begin()
242 i.Path = path; in end()
248 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
254 if (Position == Path.size()) { in operator ++()
267 if (is_separator(Path[Position])) { in operator ++()
275 Component = Path.substr(Position, 1); in operator ++()
280 while (Position != Path.size() && in operator ++()
281 is_separator(Path[Position])) { in operator ++()
286 if (Position == Path.size()) { in operator ++()
294 size_t end_pos = Path.find_first_of(separators, Position); in operator ++()
295 Component = Path.slice(Position, end_pos); in operator ++()
301 return Path.begin() == RHS.Path.begin() && Position == RHS.Position; in operator ==()
308 reverse_iterator rbegin(StringRef Path) { in rbegin() argument
310 I.Path = Path; in rbegin()
311 I.Position = Path.size(); in rbegin()
315 reverse_iterator rend(StringRef Path) { in rend() argument
317 I.Path = Path; in rend()
318 I.Component = Path.substr(0, 0); in rend()
326 size_t root_dir_pos = root_dir_start(Path); in operator ++()
327 if (Position == Path.size() && in operator ++()
328 Path.size() > root_dir_pos + 1 && in operator ++()
329 is_separator(Path[Position - 1])) { in operator ++()
340 is_separator(Path[end_pos - 1])) in operator ++()
344 size_t start_pos = filename_pos(Path.substr(0, end_pos)); in operator ++()
345 Component = Path.slice(start_pos, end_pos); in operator ++()
351 return Path.begin() == RHS.Path.begin() && Component == RHS.Component && in operator ==()
530 void native(SmallVectorImpl<char> &Path) { in native() argument
532 std::replace(Path.begin(), Path.end(), '/', '\\'); in native()
534 for (auto PI = Path.begin(), PE = Path.end(); PI < PE; ++PI) { in native()
664 StringRef remove_leading_dotslash(StringRef Path) { in remove_leading_dotslash() argument
666 while (Path.size() > 2 && Path[0] == '.' && is_separator(Path[1])) { in remove_leading_dotslash()
667 Path = Path.substr(2); in remove_leading_dotslash()
668 while (Path.size() > 0 && is_separator(Path[0])) in remove_leading_dotslash()
669 Path = Path.substr(1); in remove_leading_dotslash()
671 return Path; in remove_leading_dotslash()
713 std::error_code getUniqueID(const Twine Path, UniqueID &Result) { in getUniqueID() argument
715 std::error_code EC = status(Path, Status); in getUniqueID()
842 std::error_code create_directories(const Twine &Path, bool IgnoreExisting, in create_directories() argument
845 StringRef P = Path.toStringRef(PathStorage); in create_directories()
938 std::error_code is_other(const Twine &Path, bool &Result) { in is_other() argument
940 if (std::error_code EC = status(Path, FileStatus)) in is_other()
947 SmallString<128> path = path::parent_path(Path); in replace_filename()
949 Path = path.str(); in replace_filename()
1103 std::error_code identify_magic(const Twine &Path, file_magic &Result) { in identify_magic() argument
1105 if (std::error_code EC = openFileForRead(Path, FD)) in identify_magic()
1118 return fs::status(Path, result); in status()