16 #ifndef LLVM_SUPPORT_PATH_H 17 #define LLVM_SUPPORT_PATH_H 19 #include "llvm/Twine.h" 51 :
public std::iterator<std::input_iterator_tag, const StringRef> {
61 reference operator*()
const {
return Component; }
62 pointer operator->()
const {
return &Component; }
65 bool operator!=(
const const_iterator &RHS)
const {
return !(*
this == RHS); }
77 :
public std::iterator<std::input_iterator_tag, const StringRef> {
86 reference operator*()
const {
return Component; }
87 pointer operator->()
const {
return &Component; }
90 bool operator!=(
const reverse_iterator &RHS)
const {
return !(*
this == RHS); }
176 const Twine &d =
"");
324 bool is_separator(
char value);
362 const Twine &Path2 =
"",
const Twine &Path3 =
"");
370 bool has_root_name(
const Twine &path);
378 bool has_root_directory(
const Twine &path);
386 bool has_root_path(
const Twine &path);
394 bool has_relative_path(
const Twine &path);
402 bool has_parent_path(
const Twine &path);
410 bool has_filename(
const Twine &path);
418 bool has_stem(
const Twine &path);
426 bool has_extension(
const Twine &path);
432 bool is_absolute(
const Twine &path);
438 bool is_relative(
const Twine &path);
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
friend const_iterator end(StringRef path)
Get end iterator over path.
Definition: Path.cpp:163
ptrdiff_t operator-(const const_iterator &RHS) const
Difference in bytes between this and RHS.
Definition: Path.cpp:227
friend const_iterator begin(StringRef path)
Get begin iterator over path.
Definition: Path.cpp:155
Path iterator.
Definition: Path.h:50
Reverse path iterator.
Definition: Path.h:76
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42