318{
319
320
321
322
323
324
325
326
327
328
329 DString f = file;
330 if (!f.
empty() && f.
at(0)==
'^')
return;
331
333 {
334 f = "doxygen_blank";
337 {
340 if (!blankFile.is_open())
341 {
342 term(
"Could not open file {} for writing\n",fileName);
343 }
344 TextStream blank;
346 blank << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
348 blank << "<head>\n";
349 blank << "<title>Validator / crawler helper</title>\n";
350 blank << "<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>\n";
351 blank << "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=11\"/>\n";
352
353 blank << "<meta name=\"generator\" content=\"Doxygen " + getDoxygenVersion() + "\"/>\n";
354 blank << "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n";
355 blank << "</head>\n";
356 blank << "<body>\n";
357 blank << "</body>\n";
358 blank << "</html>\n";
360 blankFile.close();
362 });
363 }
364 DString finalRef =
makeRef(f, anchor);
365 p->sectionTree.addSection(name,finalRef);
366}
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
char & at(size_t i)
Returns a reference to the character at index i.
void addFile(const DString &)
void setStream(std::ostream *s)
Sets or changes the std::ostream to write to.
void flush()
Flushes the buffer.
virtual DString trISOLang()=0
#define Config_getString(name)
Translator * theTranslator
std::ofstream openOutputStream(const DString &name, bool append=false)
static DString makeRef(const DString &withoutExtension, const DString &anchor)
static std::once_flag g_blankWritten
void addHtmlExtensionIfMissing(DString &fName)