H A D | Path.cpp | 1 //===-- Path.cpp - Implement OS Path Concept ------------------------------===// 9 // This file implements the operating system Path API. 13 #include "llvm/Support/Path.h" 37 using llvm::sys::path::is_separator; 38 using llvm::sys::path::Style; 61 StringRef find_first_component(StringRef path, Style style) { 68 if (path.empty()) in find_first_component() 69 return path; in find_first_component() 73 if (path in find_first_component() 62 find_first_component(StringRef path,Style style) find_first_component() argument 140 parent_path_end(StringRef path,Style style) parent_path_end() argument 225 namespace path { global() namespace 227 begin(StringRef path,Style style) begin() argument 236 end(StringRef path) end() argument 298 rbegin(StringRef Path,Style style) rbegin() argument 307 rend(StringRef Path) rend() argument 349 root_path(StringRef path,Style style) root_path() argument 374 root_name(StringRef path,Style style) root_name() argument 391 root_directory(StringRef path,Style style) root_directory() argument 414 relative_path(StringRef path,Style style) relative_path() argument 419 append(SmallVectorImpl<char> & path,Style style,const Twine & a,const Twine & b,const Twine & c,const Twine & d) append() argument 457 append(SmallVectorImpl<char> & path,const Twine & a,const Twine & b,const Twine & c,const Twine & d) append() argument 462 append(SmallVectorImpl<char> & path,const_iterator begin,const_iterator end,Style style) append() argument 468 parent_path(StringRef path,Style style) parent_path() argument 475 remove_filename(SmallVectorImpl<char> & path,Style style) remove_filename() argument 481 replace_extension(SmallVectorImpl<char> & path,const Twine & extension,Style style) replace_extension() argument 500 starts_with(StringRef Path,StringRef Prefix,Style style=Style::native) starts_with() argument 519 replace_path_prefix(SmallVectorImpl<char> & Path,StringRef OldPrefix,StringRef NewPrefix,Style style) replace_path_prefix() argument 541 native(const Twine & path,SmallVectorImpl<char> & result,Style style) native() argument 551 native(SmallVectorImpl<char> & Path,Style style) native() argument 569 convert_to_slash(StringRef path,Style style) convert_to_slash() argument 578 filename(StringRef path,Style style) filename() argument 580 stem(StringRef path,Style style) stem() argument 591 extension(StringRef path,Style style) extension() argument 616 has_root_name(const Twine & path,Style style) has_root_name() argument 623 has_root_directory(const Twine & path,Style style) has_root_directory() argument 630 has_root_path(const Twine & path,Style style) has_root_path() argument 637 has_relative_path(const Twine & path,Style style) has_relative_path() argument 644 has_filename(const Twine & path,Style style) has_filename() argument 651 has_parent_path(const Twine & path,Style style) has_parent_path() argument 658 has_stem(const Twine & path,Style style) has_stem() argument 665 has_extension(const Twine & path,Style style) has_extension() argument 672 is_absolute(const Twine & path,Style style) is_absolute() argument 682 is_absolute_gnu(const Twine & path,Style style) is_absolute_gnu() argument 700 is_relative(const Twine & path,Style style) is_relative() argument 704 remove_leading_dotslash(StringRef Path,Style style) remove_leading_dotslash() argument 788 getUniqueID(const Twine Path,UniqueID & Result) getUniqueID() argument 908 make_absolute(const Twine & current_directory,SmallVectorImpl<char> & path) make_absolute() argument 956 make_absolute(SmallVectorImpl<char> & path) make_absolute() argument 968 create_directories(const Twine & Path,bool IgnoreExisting,perms Perms) create_directories() argument 1068 md5_contents(const Twine & Path) md5_contents() argument 1086 get_file_type(const Twine & Path,bool Follow) get_file_type() argument 1097 is_directory(const Twine & path,bool & result) is_directory() argument 1109 is_regular_file(const Twine & path,bool & result) is_regular_file() argument 1121 is_symlink_file(const Twine & path,bool & result) is_symlink_file() argument 1135 is_other(const Twine & Path,bool & Result) is_other() argument 1152 getPermissions(const Twine & Path) getPermissions() argument [all...] |