Home | History | Annotate | Download | only in Lex

Lines Matching refs:End

53   SourceLocation End =
56 return CharSourceRange::getCharRange(Begin, End);
88 // We know that this character can't be off the end of the buffer, because
89 // that would have been \", which would not have been the end of string.
226 for (StringRef::iterator I = Input.begin(), E = Input.end(); I != E; ++I) {
508 : PP(PP), ThisTokBegin(TokSpelling.begin()), ThisTokEnd(TokSpelling.end()) {
510 // This routine assumes that the range begin/end matches the regex for integer
512 // the byte at "*end" is both valid and not part of the regex. Because of
976 std::remove_copy_if(Str.begin(), Str.end(), std::back_inserter(Buffer),
1023 CharLiteralParser::CharLiteralParser(const char *begin, const char *end,
1043 if (end[-1] != '\'') {
1044 const char *UDSuffixEnd = end;
1046 --end;
1047 } while (end[-1] != '\'');
1049 expandUCNs(UDSuffixBuf, StringRef(end, UDSuffixEnd - end));
1050 UDSuffixOffset = end - TokBegin;
1054 assert(end != begin && "Invalid token lexed");
1055 --end;
1069 codepoint_buffer.resize(end - begin);
1088 while (begin != end) {
1094 } while (begin != end && *begin != '\\');
1133 if (!ProcessUCNEscape(TokBegin, begin, end, *buffer_begin, UcnLen,
1147 ProcessCharEscape(TokBegin, begin, end, HadError,
1382 // C++11 [lex.ext]p8: At the end of phase 6, if a string literal is the
1399 // Strip the end quote.
1421 // Remove same number of characters from the end
1538 static const char *resyncUTF8(const char *Err, const char *End) {
1539 if (Err == End)
1540 return End;
1541 End = Err + std::min<unsigned>(getNumBytesForUTF8(*Err), End-Err);
1542 while (++Err != End && (*Err & 0xC0) == 0x80)
1572 ErrorPtr, resyncUTF8(ErrorPtr, Fragment.end()),
1576 const char *NextStart = resyncUTF8(ErrorPtr, Fragment.end());
1577 StringRef NextFragment(NextStart, Fragment.end()-NextStart);
1586 NextStart = resyncUTF8(ErrorPtr, Fragment.end());
1589 NextFragment = StringRef(NextStart, Fragment.end()-NextStart);