Lines Matching refs:Path

228   i.Path      = path;  in begin()
237 i.Path = path; in end()
243 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
249 if (Position == Path.size()) { in operator ++()
260 if (is_separator(Path[Position], S)) { in operator ++()
265 Component = Path.substr(Position, 1); in operator ++()
270 while (Position != Path.size() && is_separator(Path[Position], S)) { in operator ++()
275 if (Position == Path.size() && Component != "/") { in operator ++()
283 size_t end_pos = Path.find_first_of(separators(S), Position); in operator ++()
284 Component = Path.slice(Position, end_pos); in operator ++()
290 return Path.begin() == RHS.Path.begin() && Position == RHS.Position; in operator ==()
297 reverse_iterator rbegin(StringRef Path, Style style) { in rbegin() argument
299 I.Path = Path; in rbegin()
300 I.Position = Path.size(); in rbegin()
306 reverse_iterator rend(StringRef Path) { in rend() argument
308 I.Path = Path; in rend()
309 I.Component = Path.substr(0, 0); in rend()
315 size_t root_dir_pos = root_dir_start(Path, S); in operator ++()
320 is_separator(Path[end_pos - 1], S)) in operator ++()
324 if (Position == Path.size() && !Path.empty() && in operator ++()
325 is_separator(Path.back(), S) && in operator ++()
333 size_t start_pos = filename_pos(Path.substr(0, end_pos), S); in operator ++()
334 Component = Path.slice(start_pos, end_pos); in operator ++()
340 return Path.begin() == RHS.Path.begin() && Component == RHS.Component && in operator ==()
499 static bool starts_with(StringRef Path, StringRef Prefix, in starts_with() argument
503 if (Path.size() < Prefix.size()) in starts_with()
506 bool SepPath = is_separator(Path[I], style); in starts_with()
510 if (!SepPath && toLower(Path[I]) != toLower(Prefix[I])) in starts_with()
515 return Path.startswith(Prefix); in starts_with()
518 bool replace_path_prefix(SmallVectorImpl<char> &Path, StringRef OldPrefix, in replace_path_prefix() argument
523 StringRef OrigPath(Path.begin(), Path.size()); in replace_path_prefix()
529 llvm::copy(NewPrefix, Path.begin()); in replace_path_prefix()
536 Path.swap(NewPath); in replace_path_prefix()
550 void native(SmallVectorImpl<char> &Path, Style style) { in native() argument
551 if (Path.empty()) in native()
554 for (char &Ch : Path) in native()
557 if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) { in native()
560 PathHome.append(Path.begin() + 1, Path.end()); in native()
561 Path = PathHome; in native()
564 std::replace(Path.begin(), Path.end(), '\\', '/'); 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()
787 std::error_code getUniqueID(const Twine Path, UniqueID &Result) { in getUniqueID() argument
789 std::error_code EC = status(Path, Status); in getUniqueID()
967 std::error_code create_directories(const Twine &Path, bool IgnoreExisting, in create_directories() argument
970 StringRef P = Path.toStringRef(PathStorage); in create_directories()
1067 ErrorOr<MD5::MD5Result> md5_contents(const Twine &Path) { in md5_contents() argument
1069 if (auto EC = openFileForRead(Path, FD, OF_None)) in md5_contents()
1085 file_type get_file_type(const Twine &Path, bool Follow) { in get_file_type() argument
1087 if (status(Path, st, Follow)) in get_file_type()
1134 std::error_code is_other(const Twine &Path, bool &Result) { in is_other() argument
1136 if (std::error_code EC = status(Path, FileStatus)) in is_other()
1144 SmallString<128> PathStr = path::parent_path(Path); in replace_filename()
1146 this->Path = std::string(PathStr.str()); in replace_filename()
1151 ErrorOr<perms> getPermissions(const Twine &Path) { in getPermissions() argument
1153 if (std::error_code EC = status(Path, Status)) in getPermissions()