LLVM 17.0.0git
|
#include "llvm/Demangle/StringView.h"
Public Member Functions | |
template<size_t N> | |
StringView (const char(&Str)[N]) | |
StringView (const char *First_, const char *Last_) | |
StringView (const char *First_, size_t Len) | |
StringView (const char *Str) | |
StringView () | |
StringView | substr (size_t Pos, size_t Len=npos) const |
size_t | find (char C, size_t From=0) const |
StringView | dropFront (size_t N=1) const |
StringView | dropBack (size_t N=1) const |
char | front () const |
char | back () const |
char | popFront () |
bool | consumeFront (char C) |
bool | consumeFront (StringView S) |
bool | startsWith (char C) const |
bool | startsWith (StringView Str) const |
const char & | operator[] (size_t Idx) const |
const char * | begin () const |
const char * | end () const |
size_t | size () const |
bool | empty () const |
Static Public Attributes | |
static const size_t | npos = ~size_t(0) |
Definition at line 25 of file StringView.h.
Definition at line 33 of file StringView.h.
Definition at line 34 of file StringView.h.
Definition at line 36 of file StringView.h.
Definition at line 38 of file StringView.h.
|
inline |
Definition at line 39 of file StringView.h.
Referenced by dropBack(), dropFront(), and substr().
|
inline |
Definition at line 75 of file StringView.h.
References assert(), empty(), and end().
Referenced by startsWithLocalScopePattern().
Definition at line 109 of file StringView.h.
Referenced by front(), operator[](), AbstractManglingParser< Derived, Alloc >::parseQualifiedType(), FloatLiteralImpl< Float >::printLeft(), startsWith(), and substr().
Definition at line 85 of file StringView.h.
References C, dropFront(), and startsWith().
Referenced by consumeSpecialIntrinsicKind(), demangleFunctionRefQualifier(), demanglePointerCVQualifiers(), AbstractManglingParser< Derived, Alloc >::OperatorInfo::getSymbol(), isMemberPointer(), and startsWithLocalScopePattern().
|
inline |
Definition at line 92 of file StringView.h.
References dropFront(), size(), and startsWith().
|
inline |
Definition at line 64 of file StringView.h.
References N, size(), and StringView().
Referenced by startsWithLocalScopePattern().
|
inline |
Definition at line 58 of file StringView.h.
References N, size(), and StringView().
Referenced by consumeFront(), AbstractManglingParser< Derived, Alloc >::OperatorInfo::getSymbol(), AbstractManglingParser< Derived, Alloc >::parseQualifiedType(), and startsWithLocalScopePattern().
|
inline |
Definition at line 112 of file StringView.h.
Referenced by back(), front(), isMemberPointer(), AbstractManglingParser< Derived, Alloc >::parseAbiTags(), AbstractManglingParser< Derived, Alloc >::parseClassEnumType(), AbstractManglingParser< Derived, Alloc >::parseIntegerLiteral(), AbstractManglingParser< Derived, Alloc >::parseQualifiedType(), AbstractManglingParser< Derived, Alloc >::parseType(), popFront(), startsWith(), startsWithDigit(), and startsWithLocalScopePattern().
Definition at line 110 of file StringView.h.
Referenced by back(), AbstractManglingParser< Derived, Alloc >::parseQualifiedType(), and FloatLiteralImpl< Float >::printLeft().
|
inline |
Definition at line 48 of file StringView.h.
References C, From, npos, P, and size().
Referenced by startsWithLocalScopePattern().
|
inline |
Definition at line 70 of file StringView.h.
References assert(), begin(), and empty().
Referenced by isMemberPointer(), isPointerType(), isTagType(), and startsWithDigit().
Definition at line 107 of file StringView.h.
|
inline |
Definition at line 80 of file StringView.h.
References assert(), and empty().
Referenced by demanglePointerCVQualifiers(), and isMemberPointer().
|
inline |
Definition at line 111 of file StringView.h.
Referenced by consumeFront(), AbstractManglingParser< Derived, Alloc >::consumeIf(), dropBack(), dropFront(), find(), startsWith(), startsWithLocalScopePattern(), and substr().
Definition at line 99 of file StringView.h.
References begin(), C, and empty().
Referenced by consumeFront(), AbstractManglingParser< Derived, Alloc >::OperatorInfo::getSymbol(), isFunctionType(), isPointerType(), and AbstractManglingParser< Derived, Alloc >::parseQualifiedType().
|
inline |
Definition at line 101 of file StringView.h.
|
inline |
Definition at line 41 of file StringView.h.
References assert(), begin(), size(), and StringView().
Referenced by startsWithLocalScopePattern().
|
static |
Definition at line 30 of file StringView.h.
Referenced by find(), AbstractManglingParser< Derived, Alloc >::parseUnnamedTypeName(), and startsWithLocalScopePattern().