Lines Matching refs:SpellingPtr
1632 const char *SpellingPtr = &SpellingBuffer[0]; in getOffsetOfStringByte() local
1633 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features, in getOffsetOfStringByte()
1638 const char *SpellingStart = SpellingPtr; in getOffsetOfStringByte()
1639 const char *SpellingEnd = SpellingPtr+TokLen; in getOffsetOfStringByte()
1642 if (SpellingPtr[0] == 'u' && SpellingPtr[1] == '8') in getOffsetOfStringByte()
1643 SpellingPtr += 2; in getOffsetOfStringByte()
1645 assert(SpellingPtr[0] != 'L' && SpellingPtr[0] != 'u' && in getOffsetOfStringByte()
1646 SpellingPtr[0] != 'U' && "Doesn't handle wide or utf strings yet"); in getOffsetOfStringByte()
1649 if (SpellingPtr[0] == 'R') { in getOffsetOfStringByte()
1650 assert(SpellingPtr[1] == '"' && "Should be a raw string literal!"); in getOffsetOfStringByte()
1652 SpellingPtr += 2; in getOffsetOfStringByte()
1653 while (*SpellingPtr != '(') { in getOffsetOfStringByte()
1654 ++SpellingPtr; in getOffsetOfStringByte()
1655 assert(SpellingPtr < SpellingEnd && "Missing ( for raw string literal"); in getOffsetOfStringByte()
1658 ++SpellingPtr; in getOffsetOfStringByte()
1659 return SpellingPtr - SpellingStart + ByteNo; in getOffsetOfStringByte()
1663 assert(SpellingPtr[0] == '"' && "Should be a string literal!"); in getOffsetOfStringByte()
1664 ++SpellingPtr; in getOffsetOfStringByte()
1668 assert(SpellingPtr < SpellingEnd && "Didn't find byte offset!"); in getOffsetOfStringByte()
1671 if (*SpellingPtr != '\\') { in getOffsetOfStringByte()
1672 ++SpellingPtr; in getOffsetOfStringByte()
1679 if (SpellingPtr[1] == 'u' || SpellingPtr[1] == 'U') { in getOffsetOfStringByte()
1680 const char *EscapePtr = SpellingPtr; in getOffsetOfStringByte()
1681 unsigned Len = MeasureUCNEscape(SpellingStart, SpellingPtr, SpellingEnd, in getOffsetOfStringByte()
1685 SpellingPtr = EscapePtr; in getOffsetOfStringByte()
1690 ProcessCharEscape(SpellingStart, SpellingPtr, SpellingEnd, HadError, in getOffsetOfStringByte()
1698 return SpellingPtr-SpellingStart; in getOffsetOfStringByte()