";
this->PrintHTMLEscapes(os, op->Name.c_str());
os << "
";
this->PrintHTMLEscapes(os, op->Name.c_str());
os << "
: ";
}
this->PrintHTMLEscapes(os, op->Brief.c_str());
if(op->Full.size())
{
os << ""; this->PrintHTMLEscapes(os, text); os << "\n "; } void cmDocumentationFormatterHTML::PrintParagraph(std::ostream& os, const char* text) { os << "
"; this->PrintHTMLEscapes(os, text); } //---------------------------------------------------------------------------- void cmDocumentationFormatterHTML::PrintHeader(const char* /*name*/, std::ostream& os) { os << "
\n"; } //---------------------------------------------------------------------------- void cmDocumentationFormatterHTML::PrintFooter(std::ostream& os) { os << "\n"; } //---------------------------------------------------------------------------- void cmDocumentationFormatterHTML::PrintHTMLEscapes(std::ostream& os, const char* text) { // Hyperlink prefixes. static const char* hyperlinks[] = {"http://", "ftp://", "mailto:", 0}; // Print each character. for(const char* p = text; *p;) { // Handle hyperlinks specially to make them active. bool found_hyperlink = false; for(const char** h = hyperlinks; !found_hyperlink && *h; ++h) { if(strncmp(p, *h, strlen(*h)) == 0) { p = cmDocumentationPrintHTMLLink(os, p); found_hyperlink = true; } } // Print other characters normally. if(!found_hyperlink) { cmDocumentationPrintHTMLChar(os, *p++); } } } void cmDocumentationFormatterHTML ::PrintIndex(std::ostream& os, std::vector