Doxygen
|
Functions | |
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. | |
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) |
bool Portable::checkForExecutable | ( | const QCString & | fileName | ) |
Definition at line 440 of file portable.cpp.
References ExistsOnPath().
Referenced by generateFormula().
const char * Portable::commandExtension | ( | ) |
Definition at line 478 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 533 of file portable.cpp.
References QCString::data(), getenv(), QCString::isEmpty(), setenv(), and substitute().
Referenced by parseInput().
const char * Portable::devNull | ( | ) |
Definition at line 631 of file portable.cpp.
Referenced by createDVIFile(), createSVGFromPDFviaInkscape(), and determineInkscapeVersion().
int Portable::fclose | ( | FILE * | f | ) |
Definition at line 386 of file portable.cpp.
Referenced by OutputGenerator::endPlainFile(), finishWarnExit(), and initWarningFormat().
bool Portable::fileSystemIsCaseSensitive | ( | ) |
Definition at line 487 of file portable.cpp.
Referenced by findFileDef(), genericPatternMatch(), getCaseSenseNames(), and getFilterFromList().
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().
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().
double Portable::getSysElapsedTime | ( | ) |
Definition at line 98 of file portable.cpp.
References SysTimeKeeper::elapsedTime(), and SysTimeKeeper::instance().
Referenced by generateOutput().
const char * Portable::ghostScriptCommand | ( | ) |
Definition at line 454 of file portable.cpp.
References ExistsOnPath().
Referenced by createCroppedEPS(), createCroppedPDF(), createEPSbboxFile(), createPNG(), and writeMakeBat().
bool Portable::isAbsolutePath | ( | const QCString & | fileName | ) |
Definition at line 514 of file portable.cpp.
References QCString::data(), and QCString::length().
Referenced by findFile(), findFile(), generateOutput(), Markdown::Private::processLink(), and readTextFileByName().
std::ifstream Portable::openInputStream | ( | const QCString & | name, |
bool | binary = false, | ||
bool | openAtEnd = false ) |
Definition at line 676 of file portable.cpp.
References 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().
std::ofstream Portable::openOutputStream | ( | const QCString & | name, |
bool | append = false ) |
Definition at line 665 of file portable.cpp.
References 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().
QCString Portable::pathListSeparator | ( | ) |
Definition at line 400 of file portable.cpp.
Referenced by ExistsOnPath(), parseInput(), runPlantumlContent(), and setDotFontPath().
QCString Portable::pathSeparator | ( | ) |
Definition at line 391 of file portable.cpp.
Referenced by Config::checkAndCorrect(), ExistsOnPath(), findFilePath(), readTextFileByName(), writeDiaGraphFromFile(), and writeMscGraphFromFile().
int Portable::pclose | ( | FILE * | stream | ) |
Definition at line 505 of file portable.cpp.
Referenced by FileDefImpl::acquireFileVersion(), FilterCache::getFileContentsPipe(), readInputFile(), runQHelpGenerator(), and stackTrace().
uint32_t Portable::pid | ( | ) |
Definition at line 265 of file portable.cpp.
References pid().
Referenced by initWarningFormat(), parseInput(), pid(), and system().
Definition at line 496 of file portable.cpp.
References QCString::data().
Referenced by FileDefImpl::acquireFileVersion(), FilterCache::getFileContentsPipe(), readInputFile(), runQHelpGenerator(), and stackTrace().
size_t Portable::recodeUtf8StringToW | ( | const QCString & | inputStr, |
uint16_t ** | buf ) |
Definition at line 640 of file portable.cpp.
References QCString::data(), QCString::isEmpty(), QCString::length(), portable_iconv(), portable_iconv_close(), and portable_iconv_open().
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().
void Portable::setShortDir | ( | ) |
Definition at line 570 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 617 of file portable.cpp.
References portable_memmem().
Referenced by Markdown::Private::addStrEscapeUtf8Nbsp().
int Portable::system | ( | const QCString & | command, |
const QCString & | args, | ||
bool | commandHasConsole = true ) |
taken from the system() manpage on my Linux box
Definition at line 106 of file portable.cpp.
References QCString::at(), QCString::data(), environ, Debug::ExtCmd, QCString::find(), QCString::isEmpty(), pid(), Debug::print(), qPrint(), 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().
void Portable::unlink | ( | const QCString & | fileName | ) |
Definition at line 561 of file portable.cpp.
References QCString::data(), and unlink().
Referenced by finishWarnExit(), RTFGenerator::preProcessFileInplace(), DotRunner::run(), and unlink().
void Portable::unsetenv | ( | const QCString & | variable | ) |
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().