Lines Matching defs:ThisTokEnd
132 const char *ThisTokEnd, bool &HadError,
189 if (ThisTokBuf != ThisTokEnd && *ThisTokBuf == '{') {
197 } else if (ThisTokBuf == ThisTokEnd || !isHexDigit(*ThisTokBuf)) {
206 for (; ThisTokBuf != ThisTokEnd; ++ThisTokBuf) {
259 } while (ThisTokBuf != ThisTokEnd && NumDigits < 3 &&
273 if (ThisTokBuf == ThisTokEnd || *ThisTokBuf != '{') {
291 while (ThisTokBuf != ThisTokEnd) {
457 const char *ThisTokEnd, uint32_t &UcnVal,
470 ThisTokBuf != ThisTokEnd && *ThisTokBuf == '{') {
473 } else if (ThisTokBuf == ThisTokEnd || !isHexDigit(*ThisTokBuf)) {
484 for (; ThisTokBuf != ThisTokEnd && (Delimited || Count != UcnLen);
598 const char *ThisTokEnd, uint32_t &UcnVal,
605 if (ThisTokBuf == ThisTokEnd || *ThisTokBuf != '{') {
614 const char *ClosingBrace = std::find_if(ThisTokBuf, ThisTokEnd, [](char C) {
617 bool Incomplete = ClosingBrace == ThisTokEnd;
626 ThisTokBuf = ClosingBrace == ThisTokEnd ? ClosingBrace : ClosingBrace + 1;
646 const char *ThisTokEnd, uint32_t &UcnVal,
658 HasError = !ProcessNamedUCNEscape(ThisTokBegin, ThisTokBuf, ThisTokEnd,
662 !ProcessNumericUCNEscape(ThisTokBegin, ThisTokBuf, ThisTokEnd, UcnVal,
721 const char *ThisTokEnd, unsigned CharByteWidth,
731 if (!ProcessUCNEscape(ThisTokBegin, ThisTokBuf, ThisTokEnd, UcnVal,
756 const char *ThisTokEnd,
764 if (!ProcessUCNEscape(ThisTokBegin, ThisTokBuf, ThisTokEnd, UcnVal, UcnLen,
907 ThisTokBegin(TokSpelling.begin()), ThisTokEnd(TokSpelling.end()) {
936 if (isPreprocessingNumberBody(*ThisTokEnd) &&
937 !(LangOpts.HLSL && *ThisTokEnd == '.')) {
950 if (s == ThisTokEnd) {
964 for (const char *c = s; c != ThisTokEnd; ++c) {
981 for (; s != ThisTokEnd; ++s) {
1025 s + 2 < ThisTokEnd && s[1] == '1' && s[2] == '6') {
1055 assert(s + 1 < ThisTokEnd && "didn't maximally munch?");
1111 assert(s <= ThisTokEnd && "didn't maximally munch?");
1129 if (LangOpts.CPlusPlus && s + 2 < ThisTokEnd &&
1130 s[1] == '_') { // s + 2 < ThisTokEnd to ensure some character exists
1134 if (s + 1 < ThisTokEnd &&
1139 if (s + 1 < ThisTokEnd &&
1158 if ((!LangOpts.CPlusPlus || DoubleUnderscore) && s + 1 < ThisTokEnd &&
1171 if (s != ThisTokEnd || isImaginary) {
1173 expandUCNs(UDSuffixBuf, StringRef(SuffixBegin, ThisTokEnd - SuffixBegin));
1197 if (s != ThisTokEnd) {
1202 << StringRef(SuffixBegin, ThisTokEnd - SuffixBegin)
1222 !isValidUDSuffix(LangOpts, StringRef(s, ThisTokEnd - s))) {
1245 if (s != ThisTokEnd && (*s == '+' || *s == '-')) s++; // sign
1298 } else if (Pos == ThisTokEnd)
1324 assert(s < ThisTokEnd && "didn't maximally munch?");
1329 if (s == ThisTokEnd) {
1358 if (s != ThisTokEnd && (*s == '+' || *s == '-')) s++; // sign
1402 assert(s < ThisTokEnd && "didn't maximally munch?");
1406 if (s == ThisTokEnd) {
1409 !isValidUDSuffix(LangOpts, StringRef(s, ThisTokEnd - s))) {
1432 if (s == ThisTokEnd)
1528 unsigned n = std::min(SuffixBegin - ThisTokBegin, ThisTokEnd - ThisTokBegin);
2066 const char *ThisTokEnd = ThisTokBuf+ThisTokLen;
2069 if (ThisTokEnd[-1] != '"') {
2070 const char *UDSuffixEnd = ThisTokEnd;
2072 --ThisTokEnd;
2073 } while (ThisTokEnd[-1] != '"');
2075 StringRef UDSuffix(ThisTokEnd, UDSuffixEnd - ThisTokEnd);
2083 UDSuffixOffset = ThisTokEnd - ThisTokBuf;
2115 --ThisTokEnd;
2149 ThisTokEnd -= ThisTokBuf - Prefix;
2150 if (ThisTokEnd < ThisTokBuf)
2155 StringRef RemainingTokenSpan(ThisTokBuf, ThisTokEnd - ThisTokBuf);
2180 ThisTokBuf + 1 != ThisTokEnd && ThisTokBuf[0] == '\\' &&
2192 while (ThisTokBuf != ThisTokEnd) {
2198 } while (ThisTokBuf != ThisTokEnd && ThisTokBuf[0] != '\\');
2209 EncodeUCNEscape(ThisTokBegin, ThisTokBuf, ThisTokEnd,
2217 ProcessCharEscape(ThisTokBegin, ThisTokBuf, ThisTokEnd, hadError,