Lines Matching refs:Style
38 using llvm::sys::path::Style;
40 inline Style real_style(Style style) { in real_style()
42 return (style == Style::posix) ? Style::posix : Style::windows; in real_style()
44 return (style == Style::windows) ? Style::windows : Style::posix; in real_style()
48 inline const char *separators(Style style) { in separators()
49 if (real_style(style) == Style::windows) in separators()
54 inline char preferred_separator(Style style) { in preferred_separator()
55 if (real_style(style) == Style::windows) in preferred_separator()
60 StringRef find_first_component(StringRef path, Style style) { in find_first_component()
70 if (real_style(style) == Style::windows) { in find_first_component()
96 size_t filename_pos(StringRef str, Style style) { in filename_pos()
102 if (real_style(style) == Style::windows) { in filename_pos()
115 size_t root_dir_start(StringRef str, Style style) { in root_dir_start()
117 if (real_style(style) == Style::windows) { in root_dir_start()
138 size_t parent_path_end(StringRef path, Style style) { in parent_path_end()
250 const_iterator begin(StringRef path, Style style) { in begin()
288 (real_style(S) == Style::windows && Component.endswith(":"))) { in operator ++()
321 reverse_iterator rbegin(StringRef Path, Style style) { in rbegin()
371 StringRef root_path(StringRef path, Style style) { in root_path()
376 bool has_drive = (real_style(style) == Style::windows) && b->endswith(":"); in root_path()
397 StringRef root_name(StringRef path, Style style) { in root_name()
402 bool has_drive = (real_style(style) == Style::windows) && b->endswith(":"); in root_name()
414 StringRef root_directory(StringRef path, Style style) { in root_directory()
419 bool has_drive = (real_style(style) == Style::windows) && b->endswith(":"); in root_directory()
437 StringRef relative_path(StringRef path, Style style) { in relative_path()
442 void append(SmallVectorImpl<char> &path, Style style, const Twine &a, in append()
482 append(path, Style::native, a, b, c, d); in append()
486 const_iterator end, Style style) { in append()
491 StringRef parent_path(StringRef path, Style style) { in parent_path()
499 void remove_filename(SmallVectorImpl<char> &path, Style style) { in remove_filename()
506 Style style) { in replace_extension()
526 Style style) { in replace_path_prefix()
547 void native(const Twine &path, SmallVectorImpl<char> &result, Style style) { in native()
557 void native(SmallVectorImpl<char> &Path, Style style) { in native()
560 if (real_style(style) == Style::windows) { in native()
581 std::string convert_to_slash(StringRef path, Style style) { in convert_to_slash()
582 if (real_style(style) != Style::windows) in convert_to_slash()
590 StringRef filename(StringRef path, Style style) { return *rbegin(path, style); } in filename()
592 StringRef stem(StringRef path, Style style) { in stem()
605 StringRef extension(StringRef path, Style style) { in extension()
618 bool is_separator(char value, Style style) { in is_separator()
621 if (real_style(style) == Style::windows) in is_separator()
626 StringRef get_separator(Style style) { in get_separator()
627 if (real_style(style) == Style::windows) in get_separator()
632 bool has_root_name(const Twine &path, Style style) { in has_root_name()
639 bool has_root_directory(const Twine &path, Style style) { in has_root_directory()
646 bool has_root_path(const Twine &path, Style style) { in has_root_path()
653 bool has_relative_path(const Twine &path, Style style) { in has_relative_path()
660 bool has_filename(const Twine &path, Style style) { in has_filename()
667 bool has_parent_path(const Twine &path, Style style) { in has_parent_path()
674 bool has_stem(const Twine &path, Style style) { in has_stem()
681 bool has_extension(const Twine &path, Style style) { in has_extension()
688 bool is_absolute(const Twine &path, Style style) { in is_absolute()
694 (real_style(style) != Style::windows) || has_root_name(p, style); in is_absolute()
699 bool is_relative(const Twine &path, Style style) { in is_relative()
703 StringRef remove_leading_dotslash(StringRef Path, Style style) { in remove_leading_dotslash()
714 Style style) { in remove_dots()
742 Style style) { in remove_dots()
796 assert(P.find_first_of(separators(Style::native)) == StringRef::npos && in createTemporaryFile()
858 (real_style(Style::native) != Style::windows) || path::has_root_name(p); in make_absolute()