LLVM 20.0.0git
|
Reverse path iterator. More...
#include "llvm/Support/Path.h"
Public Member Functions | |
reference | operator* () const |
reverse_iterator & | operator++ () |
bool | operator== (const reverse_iterator &RHS) const |
ptrdiff_t | operator- (const reverse_iterator &RHS) const |
Difference in bytes between this and RHS. | |
Public Member Functions inherited from llvm::iterator_facade_base< reverse_iterator, std::input_iterator_tag, const StringRef > | |
reverse_iterator | operator+ (std::ptrdiff_t n) const |
reverse_iterator | operator- (std::ptrdiff_t n) const |
reverse_iterator & | operator++ () |
reverse_iterator | operator++ (int) |
reverse_iterator & | operator-- () |
reverse_iterator | operator-- (int) |
bool | operator!= (const reverse_iterator &RHS) const |
bool | operator> (const reverse_iterator &RHS) const |
bool | operator<= (const reverse_iterator &RHS) const |
bool | operator>= (const reverse_iterator &RHS) const |
PointerProxy | operator-> () const |
ReferenceProxy | operator[] (std::ptrdiff_t n) const |
Friends | |
reverse_iterator | rbegin (StringRef path, Style style) |
Get reverse begin iterator over path. | |
reverse_iterator | rend (StringRef path) |
Get reverse end iterator over path. | |
Additional Inherited Members | |
Public Types inherited from llvm::iterator_facade_base< reverse_iterator, std::input_iterator_tag, const StringRef > | |
using | iterator_category = std::input_iterator_tag |
using | value_type = const StringRef |
using | difference_type = std::ptrdiff_t |
using | pointer = const StringRef * |
using | reference = const StringRef & |
Protected Types inherited from llvm::iterator_facade_base< reverse_iterator, std::input_iterator_tag, const StringRef > | |
enum | |
Reverse path iterator.
This is an input iterator that iterates over the individual components in path in reverse order. The traversal order is exactly reversed from that of const_iterator
|
inline |
reverse_iterator & llvm::sys::path::reverse_iterator::operator++ | ( | ) |
Definition at line 315 of file Path.cpp.
References llvm::StringRef::back(), llvm::StringRef::empty(), llvm::sys::path::is_separator(), llvm::StringRef::npos, llvm::StringRef::size(), llvm::StringRef::slice(), and llvm::StringRef::substr().
ptrdiff_t llvm::sys::path::reverse_iterator::operator- | ( | const reverse_iterator & | RHS | ) | const |
bool llvm::sys::path::reverse_iterator::operator== | ( | const reverse_iterator & | RHS | ) | const |
Definition at line 340 of file Path.cpp.
References llvm::StringRef::begin(), and RHS.
|
friend |
|
friend |