|
Doxygen
|
Functions | |
| int | system (const DString &command, const DString &args, bool commandHasConsole=true) |
| uint32_t | pid () |
| DString | getenv (const DString &variable) |
| void | setenv (const DString &variable, const DString &value) |
| void | unsetenv (const DString &variable) |
| FILE * | fopen (const DString &fileName, const DString &mode) |
| int | fclose (FILE *f) |
| void | unlink (const DString &fileName) |
| DString | pathSeparator () |
| DString | pathListSeparator () |
| const char * | ghostScriptCommand () |
| const char * | commandExtension () |
| bool | fileSystemIsCaseSensitive () |
| FILE * | popen (const DString &name, const DString &type) |
| int | pclose (FILE *stream) |
| double | getSysElapsedTime () |
| bool | isAbsolutePath (const DString &fileName) |
| void | correctPath (const StringVector &list) |
| Correct a possible wrong PATH variable. | |
| void | setShortDir () |
| const char * | strnstr (const char *haystack, const char *needle, size_t haystack_len) |
| const char * | devNull () |
| bool | checkForExecutable (const DString &fileName) |
| size_t | recodeUtf8StringToW (const DString &inputStr, uint16_t **buf) |
| std::ofstream | openOutputStream (const DString &name, bool append=false) |
| std::ifstream | openInputStream (const DString &name, bool binary=false, bool openAtEnd=false) |
| bool Portable::checkForExecutable | ( | const DString & | fileName | ) |
Definition at line 423 of file portable.cpp.
References ExistsOnPath().
Referenced by generateFormula().
| const char * Portable::commandExtension | ( | ) |
Definition at line 461 of file portable.cpp.
Referenced by Config::checkAndCorrect(), computeVerifiedDotPath(), and writeDiaGraphFromFile().
| void Portable::correctPath | ( | const StringVector & | extraPaths | ) |
Correct a possible wrong PATH variable.
This routine was inspired by the cause for bug 766059 was that in the Windows path there were forward slashes.
Definition at line 516 of file portable.cpp.
References DString::data(), DString::empty(), getenv(), setenv(), and substitute().
Referenced by parseInput().
| const char * Portable::devNull | ( | ) |
Definition at line 614 of file portable.cpp.
Referenced by createDVIFile(), createSVGFromPDFviaInkscape(), and determineInkscapeVersion().
| int Portable::fclose | ( | FILE * | f | ) |
Definition at line 369 of file portable.cpp.
Referenced by OutputGenerator::endPlainFile(), finishWarnExit(), and initWarningFormat().
| bool Portable::fileSystemIsCaseSensitive | ( | ) |
Definition at line 470 of file portable.cpp.
Referenced by findFileDef(), getCaseSenseNames(), and getFilterFromList().
Definition at line 349 of file portable.cpp.
References DString::data(), and recodeUtf8StringToW().
Referenced by checkPngResult(), FilterCache::getFileContentsPipe(), initWarningFormat(), DotRunner::run(), OutputGenerator::startPlainFile(), and tryPath().
Definition at line 321 of file portable.cpp.
References DString::data(), DString::DString(), environmentLoaded, loadEnvironment(), proc_env, and DString::str().
Referenced by correctPath(), ExistsOnPath(), getCurrentDateTime(), initDoxygen(), parseInput(), setDotFontPath(), and substEnvVarsInString().
| double Portable::getSysElapsedTime | ( | ) |
Definition at line 97 of file portable.cpp.
References SysTimeKeeper::elapsedTime(), and SysTimeKeeper::instance().
Referenced by generateOutput().
| const char * Portable::ghostScriptCommand | ( | ) |
Definition at line 437 of file portable.cpp.
References ExistsOnPath().
Referenced by createCroppedEPS(), createCroppedPDF(), createEPSbboxFile(), createPNG(), and writeMakeBat().
| bool Portable::isAbsolutePath | ( | const DString & | fileName | ) |
Definition at line 497 of file portable.cpp.
References DString::data(), and DString::length().
Referenced by findFile(), findFile(), generateOutput(), Markdown::Private::processLink(), and readTextFileByName().
| std::ifstream Portable::openInputStream | ( | const DString & | name, |
| bool | binary = false, | ||
| bool | openAtEnd = false ) |
Definition at line 659 of file portable.cpp.
References DString::str().
Referenced by configFileToString(), convertMapFile(), DotFilePatcher::convertMapFile(), determineInkscapeVersion(), finishWarnExit(), CitationManager::generatePage(), FormulaManager::initFromRepository(), CitationManager::insertCrossReferencesForBibFile(), Htags::loadFilemap(), preProcessFile(), DotRunner::readBoundingBox(), FilterCache::readFragmentFromFile(), readInputFile(), readSVGSize(), resetPDFSize(), DotFilePatcher::run(), sameMd5Signature(), testRTFOutput(), and updateEPSBoundingBox().
| std::ofstream Portable::openOutputStream | ( | const DString & | name, |
| bool | append = false ) |
Definition at line 648 of file portable.cpp.
References DString::str().
Referenced by Qhp::addContentsItem(), ResourceMgr::copyResourceAs(), FormulaManager::createFormulasTexFile(), FormulaManager::createLatexFile(), PerlModGenerator::createOutputFile(), HtmlHelp::Private::createProjectFile(), dumpSymbolMap(), EclipseHelp::finalize(), generateDEF(), generateJSNavTree(), generateJSTreeFiles(), CitationManager::generatePage(), generateXML(), generateXMLForClass(), generateXMLForConcept(), generateXMLForDir(), generateXMLForFile(), generateXMLForGroup(), generateXMLForModule(), generateXMLForNamespace(), generateXMLForPage(), generateXMLForRequirement(), generateXMLForRequirements(), HtmlGenerator::init(), Crawlmap::initialize(), DocSets::initialize(), EclipseHelp::initialize(), HtmlHelp::initialize(), Qhp::initialize(), Sitemap::initialize(), openOutputFile(), DotGraph::prepareDotFile(), RTFGenerator::preProcessFileInplace(), resetPDFSize(), DotFilePatcher::run(), runPlantumlContent(), ManGenerator::startDoxyAnchor(), updateEPSBoundingBox(), SearchIndex::write(), SearchIndexExternal::write(), ResourceMgr::writeCategory(), writeCombineScript(), HtmlGenerator::writeExternalSearchPage(), ClassDiagram::writeFigure(), writeFileContents(), FlowChart::writeFlowChart(), writeJavascriptSearchData(), writeJavaScriptSearchIndex(), writeJavasScriptSearchDataPage(), writeLatexMakefile(), writeMakeBat(), MermaidManager::writeMermaidSource(), HtmlGenerator::writeSearchData(), HtmlGenerator::writeSearchPage(), and writeTagFile().
| DString Portable::pathListSeparator | ( | ) |
Definition at line 383 of file portable.cpp.
Referenced by ExistsOnPath(), parseInput(), runPlantumlContent(), and setDotFontPath().
| DString Portable::pathSeparator | ( | ) |
Definition at line 374 of file portable.cpp.
Referenced by Config::checkAndCorrect(), ExistsOnPath(), findFilePath(), readTextFileByName(), writeDiaGraphFromFile(), and writeMscGraphFromFile().
| int Portable::pclose | ( | FILE * | stream | ) |
Definition at line 488 of file portable.cpp.
Referenced by FileDefImpl::acquireFileVersion(), FilterCache::getFileContentsPipe(), readInputFile(), runQHelpGenerator(), and stackTrace().
| uint32_t Portable::pid | ( | ) |
Definition at line 248 of file portable.cpp.
References pid().
Referenced by initWarningFormat(), parseInput(), pid(), and system().
Definition at line 479 of file portable.cpp.
References DString::data().
Referenced by FileDefImpl::acquireFileVersion(), FilterCache::getFileContentsPipe(), readInputFile(), runQHelpGenerator(), and stackTrace().
| size_t Portable::recodeUtf8StringToW | ( | const DString & | inputStr, |
| uint16_t ** | buf ) |
Definition at line 623 of file portable.cpp.
References DString::data(), DString::empty(), DString::length(), portable_iconv(), portable_iconv_close(), and portable_iconv_open().
Definition at line 286 of file portable.cpp.
References DString::data(), DString::empty(), environmentLoaded, loadEnvironment(), proc_env, setenv(), and DString::str().
Referenced by correctPath(), initDoxygen(), parseInput(), setDotFontPath(), setenv(), and unsetDotFontPath().
| void Portable::setShortDir | ( | ) |
Definition at line 553 of file portable.cpp.
References Dir::currentDirPath(), and Dir::setCurrent().
Referenced by runHtmlHelpCompiler().
| const char * Portable::strnstr | ( | const char * | haystack, |
| const char * | needle, | ||
| size_t | haystack_len ) |
Definition at line 600 of file portable.cpp.
References portable_memmem().
Referenced by Markdown::Private::addStrEscapeUtf8Nbsp().
| int Portable::system | ( | const DString & | command, |
| const DString & | args, | ||
| bool | commandHasConsole = true ) |
taken from the system() manpage on my Linux box
Definition at line 105 of file portable.cpp.
References DString::at(), DString::data(), DString::empty(), environ, Debug::ExtCmd, DString::find(), DString::npos, pid(), Debug::print(), recodeUtf8StringToW(), DString::stripWhiteSpace(), and substitute().
Referenced by createCroppedEPS(), createCroppedPDF(), createDVIFile(), createEPSbboxFile(), createPNG(), createPostscriptFile(), FlowChart::createSVG(), createSVGFromPDF(), createSVGFromPDFviaInkscape(), determineInkscapeVersion(), do_mscgen_generate(), Htags::execute(), DocParser::findAndCopyImage(), CitationManager::generatePage(), DotRunner::run(), runHtmlHelpCompiler(), runMermaid(), runPlantumlContent(), runQHelpGenerator(), writeDiaGraphFromFile(), writeDotGraphFromFile(), writeDotImageMapFromFile(), ClassDiagram::writeFigure(), and writeMscGraphFromFile().
| void Portable::unlink | ( | const DString & | fileName | ) |
Definition at line 544 of file portable.cpp.
References DString::data(), and unlink().
Referenced by finishWarnExit(), RTFGenerator::preProcessFileInplace(), DotRunner::run(), and unlink().
| void Portable::unsetenv | ( | const DString & | variable | ) |
Definition at line 301 of file portable.cpp.
References DString::data(), DString::empty(), DString::find(), DString::npos, proc_env, DString::str(), and unsetenv().
Referenced by setDotFontPath(), unsetDotFontPath(), and unsetenv().