reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
43 Ptr = Str.data(); 44 End = Ptr + Str.size(); 47 bool isEOF() const { return Ptr == End; } 49 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } 49 char peek(int I = 0) const { return End - Ptr <= I ? 0 : Ptr[I]; } 51 void advance(unsigned I = 1) { Ptr += I; } 53 StringRef remaining() const { return StringRef(Ptr, End - Ptr); } 53 StringRef remaining() const { return StringRef(Ptr, End - Ptr); } 56 assert(C.Ptr >= Ptr && C.Ptr <= End); 56 assert(C.Ptr >= Ptr && C.Ptr <= End); 56 assert(C.Ptr >= Ptr && C.Ptr <= End); 57 return StringRef(Ptr, C.Ptr - Ptr); 57 return StringRef(Ptr, C.Ptr - Ptr); 57 return StringRef(Ptr, C.Ptr - Ptr); 60 StringRef::iterator location() const { return Ptr; } 62 operator bool() const { return Ptr != nullptr; }