Lines Matching full:contents

27 // Is <contents a plausible start to an HTML tag?
28 // Contents may not be the rest of the line, but it's the rest of the plain
30 bool looksLikeTag(llvm::StringRef Contents) { in looksLikeTag() argument
31 if (Contents.empty()) in looksLikeTag()
33 if (Contents.front() == '!' || Contents.front() == '?' || in looksLikeTag()
34 Contents.front() == '/') in looksLikeTag()
37 if (!llvm::isAlpha(Contents.front())) in looksLikeTag()
40 Contents = Contents in looksLikeTag()
47 for (; !Contents.empty(); Contents = Contents.drop_front()) { in looksLikeTag()
48 if (llvm::isAlnum(Contents.front()) || llvm::isSpace(Contents.front())) in looksLikeTag()
50 if (Contents.front() == '>' || Contents.starts_with("/>")) in looksLikeTag()
52 if (Contents.front() == '=') in looksLikeTag()
168 /// is surrounded by backticks and the inner contents are properly escaped.
279 std::string Marker = getMarkerForCodeBlock(Contents); in renderMarkdown()
281 OS << Marker << Language << '\n' << Contents << '\n' << Marker << '\n'; in renderMarkdown()
286 OS << '\n' << Contents << "\n\n"; in renderPlainText()
293 CodeBlock(std::string Contents, std::string Language) in CodeBlock() argument
294 : Contents(std::move(Contents)), Language(std::move(Language)) {} in CodeBlock()
297 std::string Contents; member in clang::clangd::markup::__anond4a28a2a0111::CodeBlock
352 OS << renderText(C.Contents, !HasChunks); in renderMarkdown()
355 OS << renderInlineBlock(C.Contents); in renderMarkdown()
389 Marker = chooseMarker({"`", "'", "\""}, C.Contents); in renderPlainText()
390 OS << Marker << C.Contents << Marker; in renderPlainText()
429 C.Contents = std::move(Norm); in appendText()
444 C.Contents = std::move(Norm); in appendCode()