Lines Matching refs:Style

40   using llvm::sys::path::Style;
42 inline Style real_style(Style style) { in real_style()
43 if (style != Style::native) in real_style()
46 return Style::posix; in real_style()
47 return LLVM_WINDOWS_PREFER_FORWARD_SLASH ? Style::windows_slash in real_style()
48 : Style::windows_backslash; in real_style()
51 inline const char *separators(Style style) { in separators()
57 inline char preferred_separator(Style style) { in preferred_separator()
58 if (real_style(style) == Style::windows) in preferred_separator()
63 StringRef find_first_component(StringRef path, Style style) { in find_first_component()
99 size_t filename_pos(StringRef str, Style style) { in filename_pos()
118 size_t root_dir_start(StringRef str, Style style) { in root_dir_start()
141 size_t parent_path_end(StringRef path, Style style) { in parent_path_end()
228 const_iterator begin(StringRef path, Style style) { in begin()
299 reverse_iterator rbegin(StringRef Path, Style style) { in rbegin()
350 StringRef root_path(StringRef path, Style style) { in root_path()
375 StringRef root_name(StringRef path, Style style) { in root_name()
392 StringRef root_directory(StringRef path, Style style) { in root_directory()
415 StringRef relative_path(StringRef path, Style style) { in relative_path()
420 void append(SmallVectorImpl<char> &path, Style style, const Twine &a, in append()
460 append(path, Style::native, a, b, c, d); in append()
464 const_iterator end, Style style) { in append()
469 StringRef parent_path(StringRef path, Style style) { in parent_path()
476 void remove_filename(SmallVectorImpl<char> &path, Style style) { in remove_filename()
483 Style style) { in replace_extension()
502 Style style = Style::native) { in starts_with()
521 StringRef NewPrefix, Style style) { in replace_path_prefix()
542 void native(const Twine &path, SmallVectorImpl<char> &result, Style style) { in native()
552 void native(SmallVectorImpl<char> &Path, Style style) { in native()
570 std::string convert_to_slash(StringRef path, Style style) { in convert_to_slash()
579 StringRef filename(StringRef path, Style style) { return *rbegin(path, style); } in filename()
581 StringRef stem(StringRef path, Style style) { in stem()
592 StringRef extension(StringRef path, Style style) { in extension()
603 bool is_separator(char value, Style style) { in is_separator()
611 StringRef get_separator(Style style) { in get_separator()
612 if (real_style(style) == Style::windows) in get_separator()
617 bool has_root_name(const Twine &path, Style style) { in has_root_name()
624 bool has_root_directory(const Twine &path, Style style) { in has_root_directory()
631 bool has_root_path(const Twine &path, Style style) { in has_root_path()
638 bool has_relative_path(const Twine &path, Style style) { in has_relative_path()
645 bool has_filename(const Twine &path, Style style) { in has_filename()
652 bool has_parent_path(const Twine &path, Style style) { in has_parent_path()
659 bool has_stem(const Twine &path, Style style) { in has_stem()
666 bool has_extension(const Twine &path, Style style) { in has_extension()
673 bool is_absolute(const Twine &path, Style style) { in is_absolute()
683 bool is_absolute_gnu(const Twine &path, Style style) { in is_absolute_gnu()
701 bool is_relative(const Twine &path, Style style) { in is_relative()
705 StringRef remove_leading_dotslash(StringRef Path, Style style) { in remove_leading_dotslash()
718 Style style) { in remove_dots()
849 assert(P.find_first_of(separators(Style::native)) == StringRef::npos && in createTemporaryFile()
916 if ((rootName || is_style_posix(Style::native)) && rootDirectory) in make_absolute()