Lines Matching refs:Path

252   i.Path      = path;  in begin()
261 i.Path = path; in end()
267 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
273 if (Position == Path.size()) { in operator ++()
284 if (is_separator(Path[Position], S)) { in operator ++()
289 Component = Path.substr(Position, 1); in operator ++()
294 while (Position != Path.size() && is_separator(Path[Position], S)) { in operator ++()
299 if (Position == Path.size() && Component != "/") { in operator ++()
307 size_t end_pos = Path.find_first_of(separators(S), Position); in operator ++()
308 Component = Path.slice(Position, end_pos); in operator ++()
314 return Path.begin() == RHS.Path.begin() && Position == RHS.Position; in operator ==()
321 reverse_iterator rbegin(StringRef Path, Style style) { in rbegin() argument
323 I.Path = Path; in rbegin()
324 I.Position = Path.size(); in rbegin()
329 reverse_iterator rend(StringRef Path) { in rend() argument
331 I.Path = Path; in rend()
332 I.Component = Path.substr(0, 0); in rend()
338 size_t root_dir_pos = root_dir_start(Path, S); in operator ++()
343 is_separator(Path[end_pos - 1], S)) in operator ++()
347 if (Position == Path.size() && !Path.empty() && in operator ++()
348 is_separator(Path.back(), S) && in operator ++()
356 size_t start_pos = filename_pos(Path.substr(0, end_pos), S); in operator ++()
357 Component = Path.slice(start_pos, end_pos); in operator ++()
363 return Path.begin() == RHS.Path.begin() && Component == RHS.Component && in operator ==()
524 void replace_path_prefix(SmallVectorImpl<char> &Path, in replace_path_prefix() argument
530 StringRef OrigPath(Path.begin(), Path.size()); in replace_path_prefix()
536 llvm::copy(NewPrefix, Path.begin()); in replace_path_prefix()
544 Path.swap(NewPath); in replace_path_prefix()
557 void native(SmallVectorImpl<char> &Path, Style style) { in native() argument
558 if (Path.empty()) in native()
561 std::replace(Path.begin(), Path.end(), '/', '\\'); in native()
562 if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) { in native()
565 PathHome.append(Path.begin() + 1, Path.end()); in native()
566 Path = PathHome; in native()
569 for (auto PI = Path.begin(), PE = Path.end(); PI < PE; ++PI) { in native()
703 StringRef remove_leading_dotslash(StringRef Path, Style style) { in remove_leading_dotslash() argument
705 while (Path.size() > 2 && Path[0] == '.' && is_separator(Path[1], style)) { in remove_leading_dotslash()
706 Path = Path.substr(2); in remove_leading_dotslash()
707 while (Path.size() > 0 && is_separator(Path[0], style)) in remove_leading_dotslash()
708 Path = Path.substr(1); in remove_leading_dotslash()
710 return Path; in remove_leading_dotslash()
757 std::error_code getUniqueID(const Twine Path, UniqueID &Result) { in getUniqueID() argument
759 std::error_code EC = status(Path, Status); in getUniqueID()
914 std::error_code create_directories(const Twine &Path, bool IgnoreExisting, in create_directories() argument
917 StringRef P = Path.toStringRef(PathStorage); in create_directories()
1012 ErrorOr<MD5::MD5Result> md5_contents(const Twine &Path) { in md5_contents() argument
1014 if (auto EC = openFileForRead(Path, FD, OF_None)) in md5_contents()
1030 file_type get_file_type(const Twine &Path, bool Follow) { in get_file_type() argument
1032 if (status(Path, st, Follow)) in get_file_type()
1079 std::error_code is_other(const Twine &Path, bool &Result) { in is_other() argument
1081 if (std::error_code EC = status(Path, FileStatus)) in is_other()
1089 SmallString<128> PathStr = path::parent_path(Path); in replace_filename()
1091 this->Path = PathStr.str(); in replace_filename()
1096 ErrorOr<perms> getPermissions(const Twine &Path) { in getPermissions() argument
1098 if (std::error_code EC = status(Path, Status)) in getPermissions()