Lines Matching refs:CurPtr
480 const char *CurPtr = StrStart;
486 for (; CurPtr != StrEnd; ++CurPtr) {
487 switch (*CurPtr) {
492 Result += *CurPtr;
508 if (CurPtr == StrEnd) {
514 char CurChar = *CurPtr++;
528 if (CurPtr == StrEnd) {
530 DiagOffs = CurPtr-StrStart-1;
534 char EscapedChar = *CurPtr++;
556 const char *Begin = CurPtr - 1; // Points to the character following '%'.
560 if (CurPtr == StrEnd) { // Premature end.
561 DiagOffs = CurPtr-StrStart-1;
564 EscapedChar = *CurPtr++;
576 --CurPtr;
577 while (CurPtr != StrEnd && isDigit(*CurPtr))
578 N = N*10 + ((*CurPtr++)-'0');
583 DiagOffs = CurPtr-StrStart-1;
588 std::string Str(Begin, CurPtr - Begin);
595 getAsmString()->getLocationOfByte(CurPtr - StrStart, SM, LO, TI);
603 DiagOffs = CurPtr-StrStart-1;
606 const char *NameEnd = (const char*)memchr(CurPtr, ']', StrEnd-CurPtr);
609 if (NameEnd == CurPtr)
612 StringRef SymbolicName(CurPtr, NameEnd - CurPtr);
617 DiagOffs = CurPtr-StrStart;
633 CurPtr = NameEnd+1;
637 DiagOffs = CurPtr-StrStart-1;