Lines Matching refs:StringRef
39 static inline StringRef convertCodePointToUTF8(
45 return StringRef(Resolved, ResolvedPtr - Resolved);
47 return StringRef();
57 StringRef Lexer::resolveHTMLNamedCharacterReference(StringRef Name) const {
59 return llvm::StringSwitch<StringRef>(Name)
69 StringRef Lexer::resolveHTMLDecimalCharacterReference(StringRef Name) const {
79 StringRef Lexer::resolveHTMLHexCharacterReference(StringRef Name) const {
313 StringRef TokStartSymbols = ParseCommands ? "\n\r\\@&<" : "\n\r";
314 size_t End = StringRef(TokenPtr, CommentEnd - TokenPtr)
316 if (End != StringRef::npos)
379 StringRef UnescapedText(BufferPtr + 1, TokenPtr - (BufferPtr + 1));
404 StringRef CommandName(BufferPtr + 1, Length);
409 StringRef CorrectedName = Info->Name;
497 StringRef Line(BufferPtr, Newline - BufferPtr);
503 if (Pos == StringRef::npos) {
510 StringRef Name(BufferPtr + 1, End - (BufferPtr + 1));
526 StringRef Text(BufferPtr, TextEnd - BufferPtr);
562 StringRef Text(BufferPtr, Newline - BufferPtr);
613 StringRef Name(NamePtr, TokenPtr - NamePtr);
615 StringRef Resolved;
635 StringRef Name(BufferPtr + 1, TagNameEnd - (BufferPtr + 1));
659 StringRef Ident(BufferPtr, TokenPtr - BufferPtr);
676 T.setHTMLQuotedString(StringRef(OpenQuote + 1,
719 StringRef Name(TagNameBegin, TagNameEnd - TagNameBegin);
852 StringRef Lexer::getSpelling(const Token &Tok,
858 StringRef File = SourceMgr.getBufferData(LocInfo.first, &InvalidTemp);
860 return StringRef();
863 return StringRef(Begin, Tok.getLength());