The Portable
Namespace Reference
Definition
Functions Index
int | system (const QCString &command, const QCString &args, bool commandHasConsole=true) |
uint32_t | pid () |
QCString | getenv (const QCString &variable) |
void | setenv (const QCString &variable, const QCString &value) |
void | unsetenv (const QCString &variable) |
FILE * | fopen (const QCString &fileName, const QCString &mode) |
int | fclose (FILE *f) |
void | unlink (const QCString &fileName) |
QCString | pathSeparator () |
QCString | pathListSeparator () |
const char * | ghostScriptCommand () |
const char * | commandExtension () |
bool | fileSystemIsCaseSensitive () |
FILE * | popen (const QCString &name, const QCString &type) |
int | pclose (FILE *stream) |
double | getSysElapsedTime () |
bool | isAbsolutePath (const QCString &fileName) |
void | correctPath (const StringVector &list) |
Correct a possible wrong PATH variable. More... | |
void | setShortDir () |
const char * | strnstr (const char *haystack, const char *needle, size_t haystack_len) |
const char * | devNull () |
bool | checkForExecutable (const QCString &fileName) |
size_t | recodeUtf8StringToW (const QCString &inputStr, uint16_t **buf) |
std::ofstream | openOutputStream (const QCString &name, bool append=false) |
std::ifstream | openInputStream (const QCString &name, bool binary=false, bool openAtEnd=false) |
Functions
checkForExecutable()
|
Declaration at line 42 of file portable.h, definition at line 440 of file portable.cpp.
Reference ExistsOnPath.
Referenced by generateFormula.
commandExtension()
|
Declaration at line 32 of file portable.h, definition at line 478 of file portable.cpp.
Referenced by Config::checkAndCorrect, computeVerifiedDotPath and writeDiaGraphFromFile.
correctPath()
|
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.
Declaration at line 38 of file portable.h, definition at line 533 of file portable.cpp.
References QCString::data, getenv, QCString::isEmpty, setenv and substitute.
Referenced by parseInput.
devNull()
|
Declaration at line 41 of file portable.h, definition at line 631 of file portable.cpp.
Referenced by createDVIFile, createSVGFromPDFviaInkscape and determineInkscapeVersion.
fclose()
|
Declaration at line 27 of file portable.h, definition at line 386 of file portable.cpp.
Referenced by OutputGenerator::endPlainFile, finishWarnExit and initWarningFormat.
fileSystemIsCaseSensitive()
|
Declaration at line 33 of file portable.h, definition at line 487 of file portable.cpp.
Referenced by findFileDef, getCaseSenseNames and getFilterFromList.
fopen()
Declaration at line 26 of file portable.h, definition at line 366 of file portable.cpp.
References QCString::data and recodeUtf8StringToW.
Referenced by checkPngResult, FilterCache::getFileContentsPipe, initWarningFormat, DotRunner::run, OutputGenerator::startPlainFile and tryPath.
getenv()
|
Declaration at line 23 of file portable.h, definition at line 338 of file portable.cpp.
References QCString::data, environmentLoaded, loadEnvironment, proc_env and QCString::str.
Referenced by correctPath, ExistsOnPath, getCurrentDateTime, initDoxygen, parseInput, setDotFontPath and substEnvVarsInString.
getSysElapsedTime()
|
Declaration at line 36 of file portable.h, definition at line 98 of file portable.cpp.
References SysTimeKeeper::elapsedTime and SysTimeKeeper::instance.
Referenced by generateOutput.
ghostScriptCommand()
|
Declaration at line 31 of file portable.h, definition at line 454 of file portable.cpp.
Reference ExistsOnPath.
Referenced by createCroppedEPS, createCroppedPDF, createEPSbboxFile, createPNG and writeMakeBat.
isAbsolutePath()
|
Declaration at line 37 of file portable.h, definition at line 514 of file portable.cpp.
References QCString::data and QCString::length.
Referenced by findFile, findFile, generateOutput, Markdown::Private::processLink and readTextFileByName.
openInputStream()
|
Declaration at line 45 of file portable.h, definition at line 676 of file portable.cpp.
Reference QCString::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.
openOutputStream()
|
Declaration at line 44 of file portable.h, definition at line 665 of file portable.cpp.
Reference QCString::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, HtmlGenerator::init, Crawlmap::initialize, DocSets::initialize, EclipseHelp::initialize, HtmlHelp::initialize, Qhp::initialize, Sitemap::initialize, openOutputFile, DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), RTFDocVisitor::operator(), DotGraph::prepareDotFile, RTFGenerator::preProcessFileInplace, resetPDFSize, DotFilePatcher::run, runPlantumlContent, ManGenerator::startDoxyAnchor, updateEPSBoundingBox, SearchIndex::write, SearchIndexExternal::write, ResourceMgr::writeCategory, writeCombineScript, HtmlGenerator::writeExternalSearchPage, ClassDiagram::writeFigure, FlowChart::writeFlowChart, writeJavascriptSearchData, writeJavaScriptSearchIndex, writeJavasScriptSearchDataPage, writeLatexMakefile, writeMakeBat, writeMenuData, HtmlGenerator::writeSearchData, HtmlGenerator::writeSearchPage and writeTagFile.
pathListSeparator()
|
Declaration at line 30 of file portable.h, definition at line 400 of file portable.cpp.
Referenced by ExistsOnPath, parseInput, runPlantumlContent and setDotFontPath.
pathSeparator()
|
Declaration at line 29 of file portable.h, definition at line 391 of file portable.cpp.
Referenced by Config::checkAndCorrect, ExistsOnPath, findFilePath, readTextFileByName, writeDiaGraphFromFile and writeMscGraphFromFile.
pclose()
|
Declaration at line 35 of file portable.h, definition at line 505 of file portable.cpp.
Referenced by FileDefImpl::acquireFileVersion, FilterCache::getFileContentsPipe, readInputFile, runQHelpGenerator and stackTrace.
pid()
|
Declaration at line 22 of file portable.h, definition at line 265 of file portable.cpp.
Reference pid.
Referenced by initWarningFormat, parseInput, pid and system.
popen()
Declaration at line 34 of file portable.h, definition at line 496 of file portable.cpp.
Reference QCString::data.
Referenced by FileDefImpl::acquireFileVersion, FilterCache::getFileContentsPipe, readInputFile, runQHelpGenerator and stackTrace.
recodeUtf8StringToW()
|
Declaration at line 43 of file portable.h, definition at line 640 of file portable.cpp.
References QCString::data, QCString::isEmpty, QCString::length, portable_iconv, portable_iconv_close and portable_iconv_open.
setenv()
Declaration at line 24 of file portable.h, definition at line 303 of file portable.cpp.
References QCString::data, environmentLoaded, QCString::isEmpty, loadEnvironment, proc_env, setenv and QCString::str.
Referenced by correctPath, initDoxygen, parseInput, setDotFontPath, setenv and unsetDotFontPath.
setShortDir()
|
Declaration at line 39 of file portable.h, definition at line 570 of file portable.cpp.
References Dir::currentDirPath and Dir::setCurrent.
Referenced by runHtmlHelpCompiler.
strnstr()
|
Declaration at line 40 of file portable.h, definition at line 617 of file portable.cpp.
Reference portable_memmem.
Referenced by Markdown::Private::addStrEscapeUtf8Nbsp.
system()
Declaration at line 21 of file portable.h, definition at line 106 of file portable.cpp.
References QCString::at, QCString::data, environ, Debug::ExtCmd, QCString::find, QCString::isEmpty, pid, Debug::print, recodeUtf8StringToW, QCString::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, runPlantumlContent, runQHelpGenerator, writeDiaGraphFromFile, ClassDiagram::writeFigure and writeMscGraphFromFile.
unlink()
|
Declaration at line 28 of file portable.h, definition at line 561 of file portable.cpp.
References QCString::data and unlink.
Referenced by finishWarnExit, RTFGenerator::preProcessFileInplace, DotRunner::run and unlink.
unsetenv()
|
Declaration at line 25 of file portable.h, definition at line 318 of file portable.cpp.
References QCString::data, QCString::find, QCString::isEmpty, proc_env, QCString::str and unsetenv.
Referenced by setDotFontPath, unsetDotFontPath and unsetenv.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.