The util.h
File Reference
A bunch of utility functions. More...
Included Headers
Classes Index
class | TextGeneratorIntf |
Abstract interface for a hyperlinked text fragment. More... | |
class | TextGeneratorOLImpl |
Implements TextGeneratorIntf for an OutputDocInterface stream. More... | |
struct | GetDefInput |
struct | GetDefResult |
struct | SelectionBlock |
struct | SelectionMarkerInfo |
struct | KeywordSubstitution |
struct | ColoredImgDataItem |
Data associated with a HSV colored image. More... | |
Typedefs Index
using | SelectionBlockList = std::vector< SelectionBlock > |
using | KeywordSubstitutionList = std::vector< KeywordSubstitution > |
Functions Index
QCString | langToString (SrcLangExt lang) |
Returns a string representation of lang. More... | |
QCString | getLanguageSpecificSeparator (SrcLangExt lang, bool classScope=FALSE) |
Returns the scope separator to use given the programming language lang. More... | |
void | linkifyText (const TextGeneratorIntf &ol, const Definition *scope, const FileDef *fileScope, const Definition *self, const QCString &text, bool autoBreak=FALSE, bool external=TRUE, bool keepSpaces=FALSE, int indentLevel=0) |
QCString | fileToString (const QCString &name, bool filter=FALSE, bool isSourceCode=FALSE) |
GetDefResult | getDefs (const GetDefInput &input) |
QCString | getFileFilter (const QCString &name, bool isSourceCode) |
bool | resolveRef (const QCString &scName, const QCString &name, bool inSeeBlock, const Definition **resContext, const MemberDef **resMember, SrcLangExt lang, bool lookForSpecializations=TRUE, const FileDef *currentFile=nullptr, bool checkScope=FALSE) |
bool | resolveLink (const QCString &scName, const QCString &lr, bool inSeeBlock, const Definition **resContext, QCString &resAnchor, SrcLangExt lang, const QCString &prefix=QCString()) |
void | generateFileRef (OutputList &ol, const QCString &, const QCString &linkTxt=QCString()) |
void | writePageRef (OutputList &ol, const QCString &cn, const QCString &mn) |
bool | matchArguments2 (const Definition *srcScope, const FileDef *srcFileScope, const ArgumentList *srcAl, const Definition *dstScope, const FileDef *dstFileScope, const ArgumentList *dstAl, bool checkCV, SrcLangExt lang) |
void | mergeArguments (ArgumentList &, ArgumentList &, bool forceNameOverwrite=FALSE) |
bool | matchTemplateArguments (const ArgumentList &srcAl, const ArgumentList &dstAl) |
QCString | substituteClassNames (const QCString &s) |
QCString | selectBlocks (const QCString &s, const SelectionBlockList &blockList, const SelectionMarkerInfo &markerInfo) |
remove disabled blocks and all block markers from s and return the result as a string More... | |
void | checkBlocks (const QCString &s, const QCString fileName, const SelectionMarkerInfo &markerInfo) |
QCString | removeEmptyLines (const QCString &s) |
FileDef * | findFileDef (const FileNameLinkedMap *fnMap, const QCString &n, bool &ambig) |
QCString | findFilePath (const QCString &file, bool &ambig) |
QCString | showFileDefMatches (const FileNameLinkedMap *fnMap, const QCString &n) |
EntryType | guessSection (const QCString &name) |
bool | isId (int c) |
bool | isIdJS (int c) |
QCString | removeRedundantWhiteSpace (const QCString &s) |
QCString | inlineArgListToDoc (const ArgumentList &al) |
QCString | inlineTemplateArgListToDoc (const ArgumentList &al) |
QCString | argListToString (const ArgumentList &al, bool useCanonicalType=FALSE, bool showDefVals=TRUE) |
QCString | tempArgListToString (const ArgumentList &al, SrcLangExt lang, bool includeDefaults=true) |
QCString | generateMarker (int id) |
void | writeExamples (OutputList &ol, const ExampleList &el) |
QCString | stripAnonymousNamespaceScope (const QCString &s) |
QCString | stripFromPath (const QCString &path) |
QCString | stripFromIncludePath (const QCString &path) |
bool | rightScopeMatch (const QCString &scope, const QCString &name) |
bool | leftScopeMatch (const QCString &scope, const QCString &name) |
QCString | substituteKeywords (const QCString &file, const QCString &s, const KeywordSubstitutionList &keywords) |
QCString | substituteKeywords (const QCString &file, const QCString &s, const QCString &title, const QCString &projName, const QCString &projNum, const QCString &projBrief) |
int | getPrefixIndex (const QCString &name) |
QCString | removeAnonymousScopes (const QCString &s) |
QCString | replaceAnonymousScopes (const QCString &s, const QCString &replacement=QCString()) |
QCString | convertNameToFile (const QCString &name, bool allowDots=FALSE, bool allowUnderscore=FALSE) |
QCString | generateAnonymousAnchor (const QCString &fileName, int count) |
void | extractNamespaceName (const QCString &scopeName, QCString &className, QCString &namespaceName, bool allowEmptyClass=FALSE) |
QCString | insertTemplateSpecifierInScope (const QCString &scope, const QCString &templ) |
QCString | stripScope (const QCString &name) |
QCString | convertToId (const QCString &s) |
QCString | correctId (const QCString &s) |
QCString | convertToHtml (const QCString &s, bool keepEntities=true) |
QCString | convertToXML (const QCString &s, bool keepEntities=false) |
QCString | convertToJSString (const QCString &s, bool keepEntities=false) |
QCString | getOverloadDocs () |
void | addMembersToMemberGroup (MemberList *ml, MemberGroupList *pMemberGroups, const Definition *context) |
int | extractClassNameFromType (const QCString &type, int &pos, QCString &name, QCString &templSpec, SrcLangExt=SrcLangExt::Unknown) |
QCString | normalizeNonTemplateArgumentsInString (const QCString &name, const Definition *context, const ArgumentList &formalArgs) |
QCString | substituteTemplateArgumentsInString (const QCString &name, const ArgumentList &formalArgs, const ArgumentList *actualArgs) |
QCString | stripTemplateSpecifiersFromScope (const QCString &fullName, bool parentOnly=TRUE, QCString *lastScopeStripped=nullptr, QCString scopeName=QCString(), bool allowArtificial=true) |
QCString | resolveTypeDef (const Definition *d, const QCString &name, const Definition **typedefContext=nullptr) |
QCString | mergeScopes (const QCString &leftScope, const QCString &rightScope) |
int | getScopeFragment (const QCString &s, int p, int *l) |
void | addRefItem (const RefItemVector &sli, const QCString &key, const QCString &prefix, const QCString &name, const QCString &title, const QCString &args, const Definition *scope) |
PageDef * | addRelatedPage (const QCString &name, const QCString &ptitle, const QCString &doc, const QCString &fileName, int docLine, int startLine, const RefItemVector &sli=RefItemVector(), GroupDef *gd=nullptr, const TagInfo *tagInfo=nullptr, bool xref=FALSE, SrcLangExt lang=SrcLangExt::Unknown) |
bool | getCaseSenseNames () |
QCString | escapeCharsInString (const QCString &name, bool allowDots, bool allowUnderscore=FALSE) |
QCString | unescapeCharsInString (const QCString &s) |
void | addGroupListToTitle (OutputList &ol, const Definition *d) |
QCString | linkToText (SrcLangExt lang, const QCString &link, bool isFileName) |
bool | checkExtension (const QCString &fName, const QCString &ext) |
void | addHtmlExtensionIfMissing (QCString &fName) |
QCString | stripExtensionGeneral (const QCString &fName, const QCString &ext) |
QCString | stripExtension (const QCString &fName) |
int | computeQualifiedIndex (const QCString &name) |
Return the index of the last :: in the string name that is still before the first <. More... | |
void | addDirPrefix (QCString &fileName) |
QCString | relativePathToRoot (const QCString &name) |
QCString | determineAbsoluteIncludeName (const QCString &curFile, const QCString &incFileName) |
void | createSubDirs (const Dir &d) |
void | clearSubDirs (const Dir &d) |
QCString | removeLongPathMarker (QCString path) |
QCString | stripPath (const QCString &s) |
bool | containsWord (const QCString &s, const char *word) |
returns TRUE iff string s contains word w More... | |
bool | findAndRemoveWord (QCString &s, const char *word) |
removes occurrences of whole word from sentence, while keeps internal spaces and reducing multiple sequences of spaces. More... | |
QCString | stripLeadingAndTrailingEmptyLines (const QCString &s, int &docLine) |
Special version of QCString::stripWhiteSpace() that only strips completely blank lines. More... | |
bool | updateLanguageMapping (const QCString &extension, const QCString &parser) |
SrcLangExt | getLanguageFromFileName (const QCString &fileName, SrcLangExt defLang=SrcLangExt::Cpp) |
SrcLangExt | getLanguageFromCodeLang (QCString &fileName) |
Routine to handle the language attribute of the \code command. More... | |
QCString | getFileNameExtension (const QCString &fn) |
void | initDefaultExtensionMapping () |
void | addCodeOnlyMappings () |
bool | checkIfTypedef (const Definition *scope, const FileDef *fileScope, const QCString &n) |
QCString | parseCommentAsText (const Definition *scope, const MemberDef *member, const QCString &doc, const QCString &fileName, int lineNr) |
QCString | parseCommentAsHtml (const Definition *scope, const MemberDef *member, const QCString &doc, const QCString &fileName, int lineNr) |
bool | transcodeCharacterStringToUTF8 (std::string &input, const char *inputEncoding) |
QCString | recodeString (const QCString &str, const char *fromEncoding, const char *toEncoding) |
void | writeTypeConstraints (OutputList &ol, const Definition *d, const ArgumentList &al) |
QCString | convertCharEntitiesToUTF8 (const QCString &s) |
void | stackTrace () |
bool | readInputFile (const QCString &fileName, std::string &contents, bool filter=TRUE, bool isSourceCode=FALSE) |
read a file name fileName and optionally filter and transcode it More... | |
QCString | filterTitle (const QCString &title) |
bool | patternMatch (const FileInfo &fi, const StringVector &patList) |
QCString | externalLinkTarget (const bool parent=false) |
QCString | createHtmlUrl (const QCString &relPath, const QCString &ref, bool href, bool islocalFile, const QCString &targetFileName, const QCString &anchor) |
QCString | externalRef (const QCString &relPath, const QCString &ref, bool href) |
int | nextUtf8CharPosition (const QCString &utf8Str, uint32_t len, uint32_t startPos) |
void | writeMarkerList (OutputList &ol, const std::string &markerText, size_t numMarkers, std::function< void(size_t)> replaceFunc) |
void | writeColoredImgData (const QCString &dir, ColoredImgDataItem data[]) |
Writes the intensity only bitmap represented by data as an image to directory dir using the colors defined by HTML_COLORSTYLE_*. More... | |
QCString | replaceColorMarkers (const QCString &str) |
Replaces any markers of the form ##AA in input string str by new markers of the form #AABBCC, where #AABBCC represents a valid color, based on the intensity represented by hex number AA and the current HTML_COLORSTYLE_* settings. More... | |
bool | copyFile (const QCString &src, const QCString &dest) |
Copies the contents of file with name src to the newly created file with name dest. More... | |
int | lineBlock (const QCString &text, const QCString &marker) |
Returns the line number of the line following the line with the marker. More... | |
bool | isURL (const QCString &url) |
Checks whether the given url starts with a supported protocol. More... | |
QCString | correctURL (const QCString &url, const QCString &relPath) |
Corrects URL url according to the relative path relPath. More... | |
QCString | processMarkup (const QCString &s) |
bool | protectionLevelVisible (Protection prot) |
QCString | stripIndentation (const QCString &s, bool skipFirstLine=false) |
void | stripIndentationVerbatim (QCString &doc, const int indentationLevel) |
QCString | getDotImageExtension () |
bool | fileVisibleInIndex (const FileDef *fd, bool &genSourceFile) |
QCString | extractDirection (QCString &docs) |
Strip the direction part from docs and return it as a string in canonical form The input docs string can start with e.g. More... | |
void | convertProtectionLevel (MemberListType inListType, Protection inProt, MemberListType *outListType1, MemberListType *outListType2) |
Computes for a given list type inListType, which are the the corresponding list type(s) in the base class that are to be added to this list. More... | |
bool | mainPageHasTitle () |
bool | openOutputFile (const QCString &outFile, std::ofstream &f) |
StringVector | split (const std::string &s, const std::string &delimiter) |
split input string s by string delimiter delimiter. More... | |
StringVector | split (const std::string &s, const reg::Ex &delimiter) |
split input string s by regular expression delimiter delimiter. More... | |
int | findIndex (const StringVector &sv, const std::string &s) |
find the index of a string in a vector of strings, returns -1 if the string could not be found More... | |
int | findIndex (const std::string &s, const reg::Ex &re) |
find the index of the first occurrence of pattern re in a string s returns -1 if the pattern could not be found More... | |
std::string | join (const StringVector &s, const std::string &delimiter) |
create a string where the string in the vector are joined by the given delimiter More... | |
bool | recognizeFixedForm (const QCString &contents, FortranFormat format) |
FortranFormat | convertFileNameFortranParserCode (QCString fn) |
QCString | integerToAlpha (int n, bool upper=true) |
QCString | integerToRoman (int n, bool upper=true) |
QCString | getEncoding (const FileInfo &fi) |
QCString | fixSpaces (const QCString &s) |
QCString | detab (const QCString &s, size_t &refIndent) |
QCString | getProjectId () |
QCString | projectLogoFile () |
void | mergeMemberOverrideOptions (MemberDefMutable *md1, MemberDefMutable *md2) |
size_t | updateColumnCount (const char *s, size_t col) |
QCString | mangleCSharpGenericName (const QCString &name) |
QCString | demangleCSharpGenericName (const QCString &name, const QCString &templArgs) |
Description
A bunch of utility functions.
Typedefs
KeywordSubstitutionList
|
Definition at line 248 of file util.h.
SelectionBlockList
|
Definition at line 182 of file util.h.
Functions
addCodeOnlyMappings()
|
Declaration at line 378 of file util.h, definition at line 5716 of file util.cpp.
Reference updateLanguageMapping.
Referenced by generateOutput.
addDirPrefix()
addGroupListToTitle()
|
Declaration at line 340 of file util.h, definition at line 5406 of file util.cpp.
References recursivelyAddGroupListToTitle and TRUE.
Referenced by ClassDefImpl::writeDocumentation, ConceptDefImpl::writeDocumentation, FileDefImpl::writeDocumentation, GroupDefImpl::writeDocumentation, ModuleDefImpl::writeDocumentation and NamespaceDefImpl::writeDocumentation.
addHtmlExtensionIfMissing()
|
Declaration at line 346 of file util.h, definition at line 5416 of file util.cpp.
References QCString::find, QCString::findRev, Doxygen::htmlFileExtension and QCString::isEmpty.
Referenced by HtmlCodeGenerator::_writeCodeLink, Crawlmap::addContentsItem, DocSets::addContentsItem, EclipseHelp::addContentsItem, HtmlHelp::addContentsItem, Qhp::addContentsItem, Crawlmap::addIndexFile, Sitemap::addIndexFile, common_attributes, convertMapFile, dumpSymbol, field2URL, FTVHelp::Private::generateTree, Crawlmap::initialize, makeFileName, makeFileName, makeURL, DefinitionImpl::navigationPathAsString, node2URL, HtmlDocVisitor::operator(), replaceRef, SearchIndexExternal::setCurrentDoc, HtmlGenerator::startFile, HtmlGenerator::startIndexItem, HtmlDocVisitor::startLink, HtmlGenerator::startTextLink, LayoutNavEntry::url, DefinitionImpl::writeDocAnchorsToTagFile, writeIndex, HtmlGenerator::writeInheritedSectionTitle, writeJavasScriptSearchDataPage, writeMapArea, HtmlGenerator::writeObjectLink, ClassDefImpl::writeQuickMemberLinks, FileDefImpl::writeQuickMemberLinks, GroupDefImpl::writeQuickMemberLinks, NamespaceDefImpl::writeQuickMemberLinks, HtmlGenerator::writeSplitBarAsString, HtmlGenerator::writeStartAnnoItem, HtmlGenerator::writeSummaryLink, ClassDefImpl::writeTagFile, ConceptDefImpl::writeTagFile, DirDefImpl::writeTagFile, FileDefImpl::writeTagFile, GroupDefImpl::writeTagFile, MemberDefImpl::writeTagFile, ModuleDefImpl::writeTagFile, NamespaceDefImpl::writeTagFile, PageDefImpl::writeTagFile, VhdlDocGen::writeTagFile, DocSets::writeToken, HtmlCodeGenerator::writeTooltip and DotNode::writeUrl.
addMembersToMemberGroup()
|
Declaration at line 284 of file util.h, definition at line 4611 of file util.cpp.
References ASSERT, MemberList::container, Definition::docFile, end, MemberGroup::insertMember, Doxygen::memberGroupInfoMap, MemberVector::remove, MemberDef::setMemberGroup and toMemberDefMutable.
addRefItem()
|
Declaration at line 314 of file util.h, definition at line 5319 of file util.cpp.
References QCString::isEmpty and prefix.
Referenced by MemberDefImpl::addListReference, addListReferences, ClassDefImpl::addListReferences, FileDefImpl::addListReferences, GroupDefImpl::addListReferences, ModuleDefImpl::addListReferences, NamespaceDefImpl::addListReferences and buildPageList.
addRelatedPage()
|
Declaration at line 322 of file util.h, definition at line 5189 of file util.cpp.
References SectionManager::add, GroupDef::addPage, convertNameToFile, createPageDef, Definition::docFile, QCString::endsWith, FALSE, SectionInfo::fileName, TagInfo::fileName, LinkedMap< T, Hash, KeyEqual, Map >::find, Definition::getOutputFileBase, Definition::getReference, Definition::getStartBodyLine, PageDef::hasTitle, Doxygen::htmlFileExtension, SectionManager::instance, QCString::isEmpty, Definition::isReference, QCString::left, QCString::length, SectionInfo::lineNr, Definition::name, SectionType::Page, Doxygen::pageLinkedMap, SectionInfo::ref, SectionManager::replace, QCString::right, DefinitionMutable::setBodySegment, DefinitionMutable::setDocumentation, PageDef::setFileName, DefinitionMutable::setLanguage, PageDef::setNestingLevel, PageDef::setPageScope, DefinitionMutable::setReference, DefinitionMutable::setRefItems, PageDef::setShowLineNo, PageDef::setTitle, SectionInfo::setTitle, QCString::stripWhiteSpace, TagInfo::tagName, PageDef::title, TRUE and warn.
argListToString()
|
Declaration at line 222 of file util.h, definition at line 1202 of file util.cpp.
References Argument::array, Argument::attrib, ArgumentList::begin, Argument::canType, ArgumentList::constSpecifier, Argument::defval, ArgumentList::end, QCString::find, ArgumentList::hasParameters, QCString::isEmpty, QCString::left, LValue, QCString::mid, Argument::name, ArgumentList::pureSpecifier, ArgumentList::refQualifier, removeRedundantWhiteSpace, RValue, ArgumentList::trailingReturnType, Argument::type and ArgumentList::volatileSpecifier.
Referenced by addMemberFunction, DocParser::checkArgumentName, DocParser::checkUnOrMultipleDocumentedParams, findFriends, findGlobalMember, findMember, SymbolResolver::Private::getResolvedSymbol, matchArguments2, matchTemplateArguments, mergeArguments and substituteTemplateArgumentsInString.
checkBlocks()
|
Declaration at line 196 of file util.h, definition at line 7037 of file util.cpp.
References SelectionMarkerInfo::beginLen, SelectionMarkerInfo::beginStr, SelectionMarkerInfo::closeLen, SelectionMarkerInfo::closeStr, QCString::data, SelectionMarkerInfo::endLen, SelectionMarkerInfo::endStr, QCString::isEmpty, SelectionMarkerInfo::markerChar, qstrncmp and warn.
Referenced by HtmlGenerator::init and LatexGenerator::init.
checkExtension()
Declaration at line 344 of file util.h, definition at line 5411 of file util.cpp.
References QCString::length and QCString::right.
Referenced by copyLatexStyleSheet and extraLatexStyleSheet.
checkIfTypedef()
|
Returns true iff the given name string appears to be a typedef in scope.
Declaration at line 380 of file util.h, definition at line 5826 of file util.cpp.
References FALSE, getMemberFromSymbol, MemberDef::isTypedef and TRUE.
Referenced by isVarWithConstructor.
clearSubDirs()
|
Declaration at line 362 of file util.h, definition at line 4184 of file util.cpp.
References Config_getBool, Config_getInt, Dir::exists, Dir::isEmpty, Dir::rmdir, QCString::sprintf and QCString::str.
Referenced by DocbookGenerator::cleanup, HtmlGenerator::cleanup, LatexGenerator::cleanup, ManGenerator::cleanup, RTFGenerator::cleanup and generateXML.
computeQualifiedIndex()
|
Return the index of the last :: in the string name that is still before the first <.
Declaration at line 354 of file util.h, definition at line 7339 of file util.cpp.
References QCString::data and QCString::length.
Referenced by addToMap, addVariable, buildFunctionList, buildTypedefList, getMemberFromSymbol, SymbolResolver::Private::getResolvedSymbolRec and SymbolResolver::Private::getResolvedTypeRec.
containsWord()
|
returns TRUE iff string s contains word w
Declaration at line 367 of file util.h, definition at line 5482 of file util.cpp.
References QCString::isEmpty and QCString::str.
convertCharEntitiesToUTF8()
|
Declaration at line 391 of file util.h, definition at line 4561 of file util.cpp.
References GrowBuf::addChar, GrowBuf::addStr, QCString::data, end, GrowBuf::get, HtmlEntityMapper::instance, QCString::isEmpty, HtmlEntityMapper::name2sym and HtmlEntityMapper::Sym_Unknown.
Referenced by convertToJSString, generateSqlite3ForPage, generateXMLForPage, getSQLDocBlock and parseCommentAsText.
convertFileNameFortranParserCode()
|
Declaration at line 465 of file util.h, definition at line 6911 of file util.cpp.
References Fixed, Free, getFileNameExtension, Doxygen::parserManager and Unknown.
Referenced by convertCppComments.
convertNameToFile()
|
This function determines the file name on disk of an item given its name, which could be a class name with template arguments, so special characters need to be escaped.
Declaration at line 261 of file util.h, definition at line 4021 of file util.cpp.
References Config_getBool, Config_getInt, QCString::data, escapeCharsInString, g_usedNames, g_usedNamesCount, g_usedNamesMutex, QCString::isEmpty, QCString::left, QCString::length, QCString::prepend, QCString::sprintf and QCString::str.
Referenced by addRelatedPage, buildExampleList, ClassDefImpl::ClassDefImpl, ClassDefImpl::deepCopy, DocAnchor::DocAnchor, DocCite::DocCite, ModuleDefImpl::getOutputFileBase, DocParser::handleAHref, PageDefImpl::PageDefImpl, CCodeParser::parseCode, FortranCodeParser::parseCode, VHDLCodeParser::parseCode, RefList::RefList, FileDefImpl::setDiskNameLocal and NamespaceDefImpl::setFileNameLocal.
convertProtectionLevel()
|
Computes for a given list type inListType, which are the the corresponding list type(s) in the base class that are to be added to this list.
So for public inheritance, the mapping is 1-1, so outListType1=inListType Private members are to be hidden completely.
For protected inheritance, both protected and public members of the base class should be joined in the protected member section.
For private inheritance, both protected and public members of the base class should be joined in the private member section.
Declaration at line 448 of file util.h, definition at line 6744 of file util.cpp.
References Config_getBool, MemberListType::Invalid, MemberListType::isPrivate, MemberListType::isProtected, MemberListType::isPublic, MemberListType::toProtected and MemberListType::toPublic.
Referenced by ClassDefImpl::countInheritedDecMembers and ClassDefImpl::writeInheritedMemberDeclarations.
convertToHtml()
|
Converts a string to a HTML-encoded string
Declaration at line 276 of file util.h, definition at line 4480 of file util.cpp.
References GrowBuf::addChar, GrowBuf::addStr, QCString::data, GrowBuf::get, hex, QCString::isEmpty and isId.
Referenced by HtmlCodeGenerator::_writeCodeLink, HtmlHelp::addContentsItem, convertToHtmlAndTruncate, FTVHelp::Private::generateLink, DefinitionImpl::navigationPathAsString, HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlGenerator::startFile, HtmlDocVisitor::startLink, substituteHtmlKeywords, HtmlHelpIndex::writeFields, HtmlGenerator::writeInheritedSectionTitle, HtmlGenerator::writeLogoAsString, writeMapArea, HtmlGenerator::writePageFooter, ClassDefImpl::writeQuickMemberLinks, FileDefImpl::writeQuickMemberLinks, GroupDefImpl::writeQuickMemberLinks, NamespaceDefImpl::writeQuickMemberLinks and HtmlGenerator::writeSearchPage.
convertToId()
|
Converts a string to a HTML id string
Declaration at line 273 of file util.h, definition at line 4389 of file util.cpp.
References GrowBuf::addChar, GrowBuf::addStr, QCString::data, FALSE, GrowBuf::get, hex and QCString::isEmpty.
Referenced by HtmlGenerator::endClassDiagram, HtmlGenerator::endMemberTemplateParams, renderMemberIndicesAsJs, HtmlGenerator::startGroupHeader, HtmlGenerator::startMemberItem, writeMemberList, writeQuickMemberIndex, ClassDefImpl::writeSummaryLinks and VhdlDocGen::writeVHDLDeclarations.
convertToJSString()
|
Declaration at line 280 of file util.h, definition at line 4540 of file util.cpp.
References GrowBuf::addChar, GrowBuf::addStr, convertCharEntitiesToUTF8, QCString::data, GrowBuf::get and QCString::isEmpty.
Referenced by generateJSLink, generateJSNavTree, renderMemberIndicesAsJs and renderQuickLinksAsJs.
convertToXML()
|
Converts a string to an XML-encoded string
Declaration at line 278 of file util.h, definition at line 4429 of file util.cpp.
References GrowBuf::addChar, GrowBuf::addStr, QCString::data, GrowBuf::get, QCString::isEmpty and isId.
Referenced by DocSets::addContentsItem, EclipseHelp::addContentsItem, Qhp::addFile, Sitemap::addIndexFile, Qhp::addIndexItem, XmlDocVisitor::filter, generateXMLForClass, generateXMLForConcept, generateXMLForDir, generateXMLForFile, generateXMLForGroup, generateXMLForMember, generateXMLForModule, generateXMLForNamespace, generateXMLForPage, generateXMLSection, DotDirDeps::getImgAltText, EclipseHelp::initialize, Qhp::initialize, XmlDocVisitor::operator(), XmlDocVisitor::operator(), HtmlAttribList::toString, QhpSectionTree::traverse, visitPreStart, SearchIndexExternal::write, FileDefImpl::writeClassesToTagFile, NamespaceDefImpl::writeClassesToTagFile, NamespaceDefImpl::writeConceptsToTagFile, DefinitionImpl::writeDocAnchorsToTagFile, DotNode::writeDocbook, DotGraph::writeGraphHeader, writeInnerClasses, writeInnerConcepts, writeInnerDirs, writeInnerFiles, writeInnerGroups, writeInnerModules, writeInnerNamespaces, writeInnerPages, writeJavascriptSearchData, writeJavasScriptSearchDataPage, DotNode::writeLabel, writeListOfAllMembers, writeMapArea, writeMemberReference, ClassDefImpl::writeTagFile, ConceptDefImpl::writeTagFile, DirDefImpl::writeTagFile, FileDefImpl::writeTagFile, GroupDefImpl::writeTagFile, MemberDefImpl::writeTagFile, ModuleDefImpl::writeTagFile, NamespaceDefImpl::writeTagFile, PageDefImpl::writeTagFile, VhdlDocGen::writeTagFile, writeTemplateArgumentList, DocSets::writeToken, DotNode::writeXML, writeXMLLink and writeXMLString.
copyFile()
Copies the contents of file with name src to the newly created file with name dest.
Returns TRUE if successful.
Declaration at line 427 of file util.h, definition at line 6374 of file util.cpp.
References err and QCString::str.
Referenced by copyExtraFiles, copyIcon, copyLatexStyleSheet, copyLogo, copyStyleSheet, DocParser::findAndCopyImage, FormulaManager::generateImages, CitationManager::generatePage, RTFGenerator::init, DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator() and substituteLatexKeywords.
correctId()
|
Some strings have been corrected but the requirement regarding the fact that an id cannot have a digit at the first position. To overcome problems with double labels we always place an "a" in front
Declaration at line 274 of file util.h, definition at line 4422 of file util.cpp.
Reference QCString::isEmpty.
Referenced by DotGraph::generateCode and DotFilePatcher::run.
correctURL()
Corrects URL url according to the relative path relPath.
Returns the corrected URL. For absolute URLs no correction will be done.
Declaration at line 433 of file util.h, definition at line 6442 of file util.cpp.
References QCString::isEmpty, isURL and QCString::prepend.
Referenced by HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), XmlDocVisitor::operator(), startQuickIndexItem and writeIndexHierarchyEntries.
createHtmlUrl()
|
Declaration at line 402 of file util.h, definition at line 6237 of file util.cpp.
References externalRef and QCString::isEmpty.
Referenced by HtmlCodeGenerator::_writeCodeLink, HtmlDocVisitor::startLink, HtmlGenerator::startTextLink, HtmlGenerator::writeObjectLink and HtmlCodeGenerator::writeTooltip.
createSubDirs()
|
Declaration at line 361 of file util.h, definition at line 4157 of file util.cpp.
References Config_getBool, Config_getInt, Dir::exists, Dir::mkdir, QCString::sprintf, QCString::str and term.
Referenced by generateXML, DocbookGenerator::init, HtmlGenerator::init, LatexGenerator::init, ManGenerator::init, RTFGenerator::init, ClassDefImpl::writeQuickMemberLinks, FileDefImpl::writeQuickMemberLinks, GroupDefImpl::writeQuickMemberLinks and NamespaceDefImpl::writeQuickMemberLinks.
demangleCSharpGenericName()
Declaration at line 484 of file util.h, definition at line 7438 of file util.cpp.
References QCString::endsWith, QCString::find and QCString::left.
Referenced by ClassDefImpl::className.
detab()
|
Declaration at line 474 of file util.h, definition at line 7235 of file util.cpp.
References GrowBuf::addChar, GrowBuf::addStr, Config_getInt, QCString::data, GrowBuf::get, getUTF8CharNumBytes, isUTF8NonBreakableSpace, QCString::length and literal_at.
Referenced by Markdown::process.
determineAbsoluteIncludeName()
Declaration at line 359 of file util.h, definition at line 4117 of file util.cpp.
References FileInfo::absFilePath, Config_getBool, Config_getList, FileInfo::dirPath, FileInfo::exists, FileInfo::isDir, QCString::str and TRUE.
Referenced by readIncludeFile and ModuleManager::resolveImports.
escapeCharsInString()
Declaration at line 337 of file util.h, definition at line 3847 of file util.cpp.
References GrowBuf::addChar, GrowBuf::addStr, Config_getBool, QCString::data, GrowBuf::get, getCaseSenseNames, getUTF8CharNumBytes, hex and QCString::isEmpty.
Referenced by convertNameToFile, DotClassGraph::getMapLabel, DotDirDeps::getMapLabel, DotGfxHierarchyTable::getMapLabel, DotGroupCollaboration::getMapLabel, DotInclDepGraph::getMapLabel, markdownFileNameToId and PageDefImpl::writeDocumentation.
externalLinkTarget()
|
Declaration at line 401 of file util.h, definition at line 6226 of file util.cpp.
References Config_getBool and parent.
Referenced by HtmlCodeGenerator::_writeCodeLink, FTVHelp::Private::generateLink, Markdown::Private::processLink, replaceRef, HtmlGenerator::startIndexItem, HtmlDocVisitor::startLink, HtmlGenerator::writeInheritedSectionTitle, writeMapArea and HtmlGenerator::writeObjectLink.
externalRef()
Declaration at line 408 of file util.h, definition at line 6270 of file util.cpp.
References QCString::append, QCString::at, end, QCString::isEmpty, QCString::length, QCString::prepend, QCString::str and Doxygen::tagDestinationMap.
Referenced by HtmlHelp::addContentsItem, convertMapFile, createHtmlUrl, generateJSLink, FTVHelp::Private::generateLink, replaceRef, HtmlGenerator::startIndexItem, LayoutNavEntry::url, HtmlGenerator::writeInheritedSectionTitle, writeJavasScriptSearchDataPage and writeMapArea.
extractClassNameFromType()
|
Extracts a (sub-)string from type starting at pos that could form a class. The index of the match is returned and the found class name and a template argument list templSpec. If -1 is returned there are no more matches.
Declaration at line 288 of file util.h, definition at line 4729 of file util.cpp.
References QCString::clear, end, QCString::isEmpty, QCString::length, QCString::lower, QCString::mid, QCString::startsWith and QCString::str.
Referenced by extractCanonicalType, findUsedClassesForClass, stripClassName and stripClassName.
extractDirection()
|
Strip the direction part from docs and return it as a string in canonical form The input docs string can start with e.g.
"[in]", "[in, out]", "[inout]", "[out,in]"...
- Returns
either "[in,out]", "[in]", or "[out]" or the empty string.
Declaration at line 446 of file util.h, definition at line 6693 of file util.cpp.
References end and QCString::str.
Referenced by inlineArgListToDoc.
extractNamespaceName()
|
Input is a scopeName, output is the scopename split into a namespace part (as large as possible) and a classname part.
Declaration at line 265 of file util.h, definition at line 4214 of file util.cpp.
References QCString::clear, QCString::endsWith, QCString::findRev, getClass, getResolvedNamespace, QCString::isEmpty, QCString::left, QCString::length, Definition::name and QCString::right.
Referenced by addClassToContext, addConceptToContext, findMember and writeAlphabeticalClassList.
fileToString()
reads a file with name name and returns it as a string. If filter is TRUE the file will be filtered by any user specified input filter. If name is "-" the string will be read from standard input.
Declaration at line 107 of file util.h, definition at line 1442 of file util.cpp.
References addTerminalCharIfMissing, err, FileInfo::exists, QCString::isEmpty, FileInfo::isFile, readInputFile and QCString::str.
Referenced by createDVIFile, extractBoundingBox, getConvertLatexMacro, HtmlGenerator::init, LatexGenerator::init, LayoutDocManager::parse, parseInput, FileDefImpl::parseSource, parseTagFile, DocParser::readTextFileByName, readTextFileByName, runPlantumlContent, FileDefImpl::writeSourceBody, HtmlGenerator::writeStyleInfo and writeXMLCodeBlock.
fileVisibleInIndex()
|
Declaration at line 444 of file util.h, definition at line 6604 of file util.cpp.
References Config_getBool, FileDef::generateSourceFile, FileDef::isDocumentationFile, Definition::isLinkable and Definition::isLinkableInProject.
Referenced by countFiles, dirHasVisibleChildren, generateJSTree, writeDirHierarchy, writeDirTreeNode and DirDefImpl::writeFileList.
filterTitle()
|
Declaration at line 397 of file util.h, definition at line 6131 of file util.cpp.
References end and QCString::str.
Referenced by addToIndices, createJavaScriptSearchIndex, PerlModGenerator::generatePerlModForPage, generateSqlite3ForPage, generateXMLForPage, mainPageHasOwnTitle, parseCommentAsHtml, SearchIndexExternal::setCurrentDoc, HtmlGenerator::startFile, writeExampleIndex and writeJavasScriptSearchDataPage.
findAndRemoveWord()
|
removes occurrences of whole word from sentence, while keeps internal spaces and reducing multiple sequences of spaces.
Example: sentence= cat+ catfish cat cat concat cat, word=cat returns: + catfish concat
Declaration at line 369 of file util.h, definition at line 5498 of file util.cpp.
References end, QCString::simplifyWhiteSpace and QCString::str.
Referenced by isVarWithConstructor.
findFileDef()
|
Declaration at line 201 of file util.h, definition at line 3416 of file util.cpp.
References Dir::cleanDirPath, FALSE, FindFileCacheElem::fileDef, Portable::fileSystemIsCaseSensitive, LinkedMap< T, Hash, KeyEqual, Map >::find, QCString::findRev, g_findFileDefCache, g_findFileDefMutex, FileDef::getPath, FindFileCacheElem::isAmbig, QCString::isEmpty, QCString::left, QCString::length, QCString::lower, qsnprintf, removeLongPathMarker, QCString::right, QCString::str and stripFromIncludePath.
Referenced by addIncludeFile, buildFileList, checkMarkdownMainfile, DocParser::findAndCopyImage, DocParser::findDocsForMemberOrCompound, findFile, findFilePath, generateFileRef, generateFileSources, DocParser::handleLinkedWord, DocbookDocVisitor::operator(), XmlDocVisitor::operator(), DocDiaFile::parse, DocDotFile::parse, DocMscFile::parse, DocPlantUmlFile::parse, parseFilesMultiThreading, parseFilesSingleThreading, Markdown::Private::processLink, readIncludeFile, readTextFileByName, ModuleManager::resolveImports, resolveLink, ModuleManager::resolvePartitions, resolveRef and setFileName.
findFilePath()
|
Declaration at line 202 of file util.h, definition at line 3499 of file util.cpp.
References FileDef::absFilePath, FileInfo::absFilePath, Config_getList, Doxygen::exampleNameLinkedMap, FileInfo::exists, findFileDef, Portable::pathSeparator and QCString::str.
Referenced by readIncludeFile and DocParser::readTextFileByName.
findIndex()
|
find the index of a string in a vector of strings, returns -1 if the string could not be found
Declaration at line 460 of file util.h, definition at line 7169 of file util.cpp.
Referenced by initUCF, VhdlDocGen::parseForBinding, VhdlDocGen::parseUCF, DotFilePatcher::run and VhdlDocGen::writeFormatString.
findIndex()
|
find the index of the first occurrence of pattern re in a string s returns -1 if the pattern could not be found
Declaration at line 461 of file util.h, definition at line 7177 of file util.cpp.
Reference reg::search.
fixSpaces()
| inline |
Definition at line 472 of file util.h.
Reference substitute.
Referenced by renderQuickLinksAsTabs, renderQuickLinksAsTree, writeClassMemberIndexFiltered, writeFileMemberIndexFiltered, writeModuleMemberIndexFiltered, writeNamespaceMemberIndexFiltered and writeUserGroupStubPage.
generateAnonymousAnchor()
|
Declaration at line 263 of file util.h, definition at line 4075 of file util.cpp.
References QCString::data, QCString::length, QCString::setNum and stripFromPath.
generateFileRef()
|
Declaration at line 158 of file util.h, definition at line 3388 of file util.cpp.
References OutputList::docify, findFileDef, Definition::getOutputFileBase, Definition::getReference, Doxygen::inputNameLinkedMap, QCString::isEmpty, Definition::isLinkable and OutputList::writeObjectLink.
generateMarker()
|
Generate a place holder for a position in a list. Used for translators to be able to specify different elements orders depending on whether text flows from left to right or visa versa.
Declaration at line 226 of file util.h, definition at line 291 of file util.cpp.
Reference qsnprintf.
Referenced by TranslatorAfrikaans::trWriteList, TranslatorArabic::trWriteList, TranslatorArmenian::trWriteList, TranslatorBrazilian::trWriteList, TranslatorBulgarian::trWriteList, TranslatorCatalan::trWriteList, TranslatorChinese::trWriteList, TranslatorChinesetraditional::trWriteList, TranslatorCroatian::trWriteList, TranslatorCzech::trWriteList, TranslatorDanish::trWriteList, TranslatorDutch::trWriteList, TranslatorEnglish::trWriteList, TranslatorEsperanto::trWriteList, TranslatorFinnish::trWriteList, TranslatorFrench::trWriteList, TranslatorGerman::trWriteList, TranslatorGreek::trWriteList, TranslatorHindi::trWriteList, TranslatorHungarian::trWriteList, TranslatorIndonesian::trWriteList, TranslatorItalian::trWriteList, TranslatorJapanese::trWriteList, TranslatorKorean::trWriteList, TranslatorLatvian::trWriteList, TranslatorLithuanian::trWriteList, TranslatorMacedonian::trWriteList, TranslatorNorwegian::trWriteList, TranslatorPersian::trWriteList, TranslatorPolish::trWriteList, TranslatorPortuguese::trWriteList, TranslatorRomanian::trWriteList, TranslatorRussian::trWriteList, TranslatorSerbian::trWriteList, TranslatorSerbianCyrillic::trWriteList, TranslatorSlovak::trWriteList, TranslatorSlovene::trWriteList, TranslatorSpanish::trWriteList, TranslatorSwedish::trWriteList, TranslatorTurkish::trWriteList, TranslatorUkrainian::trWriteList and TranslatorVietnamese::trWriteList.
getCaseSenseNames()
|
Declaration at line 335 of file util.h, definition at line 3837 of file util.cpp.
References Config_getEnum and Portable::fileSystemIsCaseSensitive.
Referenced by escapeCharsInString, genericPatternMatch, FileNameFn::searchKey and unescapeCharsInString.
getDefs()
|
Declaration at line 134 of file util.h, definition at line 2823 of file util.cpp.
References GetDefInput::args, GetDefResult::cd, GetDefInput::checkCV, GetDefInput::currentFile, GetDefResult::fd, GetDefInput::forceEmptyScope, GetDefResult::found, GetDefResult::gd, getDefsNew, getDefsOld, GetDefResult::md, GetDefInput::memberName, Definition::name, GetDefResult::nd, qPrint and GetDefInput::scopeName.
Referenced by DocParser::findDocsForMemberOrCompound, getLinkInScope, getLinkInScope, linkifyText and resolveRef.
getDotImageExtension()
|
Declaration at line 442 of file util.h, definition at line 6804 of file util.cpp.
References Config_getEnumAsString, QCString::find and QCString::left.
Referenced by RTFGenerator::endCallGraph, RTFGenerator::endDirDepGraph, RTFGenerator::endDotGraph, RTFGenerator::endInclDepGraph, DotGraph::generateCode, DotGraph::imgName, HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), DocbookDocVisitor::startDotFile, TranslatorAfrikaans::trLegendDocs, TranslatorArabic::trLegendDocs, TranslatorArmenian::trLegendDocs, TranslatorBrazilian::trLegendDocs, TranslatorBulgarian::trLegendDocs, TranslatorCatalan::trLegendDocs, TranslatorChinese::trLegendDocs, TranslatorChinesetraditional::trLegendDocs, TranslatorCroatian::trLegendDocs, TranslatorCzech::trLegendDocs, TranslatorDanish::trLegendDocs, TranslatorDutch::trLegendDocs, TranslatorEnglish::trLegendDocs, TranslatorEsperanto::trLegendDocs, TranslatorFinnish::trLegendDocs, TranslatorFrench::trLegendDocs, TranslatorGerman::trLegendDocs, TranslatorGreek::trLegendDocs, TranslatorHindi::trLegendDocs, TranslatorHungarian::trLegendDocs, TranslatorIndonesian::trLegendDocs, TranslatorItalian::trLegendDocs, TranslatorJapanese::trLegendDocs, TranslatorKorean::trLegendDocs, TranslatorLatvian::trLegendDocs, TranslatorLithuanian::trLegendDocs, TranslatorMacedonian::trLegendDocs, TranslatorNorwegian::trLegendDocs, TranslatorPersian::trLegendDocs, TranslatorPolish::trLegendDocs, TranslatorPortuguese::trLegendDocs, TranslatorRomanian::trLegendDocs, TranslatorRussian::trLegendDocs, TranslatorSerbian::trLegendDocs, TranslatorSerbianCyrillic::trLegendDocs, TranslatorSlovak::trLegendDocs, TranslatorSlovene::trLegendDocs, TranslatorSpanish::trLegendDocs, TranslatorSwedish::trLegendDocs, TranslatorTurkish::trLegendDocs, TranslatorUkrainian::trLegendDocs, TranslatorVietnamese::trLegendDocs, DocbookDocVisitor::writeDotFile, RTFDocVisitor::writeDotFile, writeDotGraphFromFile, writeDotImageMapFromFile, DotLegendGraph::writeGraph, writeGraphInfo, HtmlDocVisitor::writeMscFile and HtmlDocVisitor::writePlantUMLFile.
getEncoding()
|
Declaration at line 470 of file util.h, definition at line 6212 of file util.cpp.
References Config_getString, InputFileEncoding::encoding, genericPatternMatch and Doxygen::inputFileEncodingList.
Referenced by readCodeFragment and readInputFile.
getFileFilter()
|
looks for a filter for the file name. Returns the name of the filter if there is a match for the file name, otherwise an empty string. In case inSourceCode is TRUE then first the source filter list is considered.
Declaration at line 136 of file util.h, definition at line 1370 of file util.cpp.
References Config_getList, Config_getString, FALSE, getFilterFromList, QCString::isEmpty, QCString::length and QCString::mid.
Referenced by FilterCache::getFileContents, CodeFragmentManager::parseCodeFragment, readCodeFragment, readInputFile and FileDefImpl::writeSourceBody.
getFileNameExtension()
|
Declaration at line 376 of file util.h, definition at line 5764 of file util.cpp.
References QCString::findRev, QCString::isEmpty and QCString::mid.
Referenced by TooltipManager::addTooltip, anonymous{tagreader.cpp}::TagFileParser::buildLists, convertFileNameFortranParserCode, generateExampleDocs, FileDefImpl::isDocumentationFile, DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), ManDocVisitor::operator(), RTFDocVisitor::operator(), XmlDocVisitor::operator(), CodeFragmentManager::parseCodeFragment and MarkdownOutlineParser::parseInput.
getLanguageFromCodeLang()
|
Routine to handle the language attribute of the \code command.
Declaration at line 375 of file util.h, definition at line 5740 of file util.cpp.
References QCString::at, g_lang2extMap, getLanguageFromFileName, QCString::lower and QCString::mid.
Referenced by DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), ManDocVisitor::operator(), RTFDocVisitor::operator() and XmlDocVisitor::operator().
getLanguageFromFileName()
|
Declaration at line 374 of file util.h, definition at line 5722 of file util.cpp.
References QCString::at, FileInfo::extension, FALSE, g_extLookup, QCString::isEmpty, QCString::lower, QCString::prepend and QCString::str.
Referenced by MemberDefImpl::_writeMultiLineInitializer, ClassDefImpl::ClassDefImpl, convertCppComments, DocRef::DocRef, FileDefImpl::FileDefImpl, generateExampleDocs, getLanguageFromCodeLang, guessSection, FileDefImpl::isDocumentationFile, COutlineParser::needsPreprocessing, DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), ManDocVisitor::operator(), ManDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), CodeFragmentManager::parseCodeFragment, parseFilesMultiThreading, parseFilesSingleThreading, parseMain, Markdown::Private::processLink, readCodeFragment, setContext, setFileName, validatingParseDoc and writeXMLCodeBlock.
getLanguageSpecificSeparator()
|
Returns the scope separator to use given the programming language lang.
Declaration at line 92 of file util.h, definition at line 6414 of file util.cpp.
Referenced by DefinitionImpl::_writeSourceRefList, addGlobalFunction, MemberDefImpl::addListReference, addMethodToClass, addVariableToFile, MemberDefImpl::displayDefinition, DefinitionAliasImpl::init, linkToText, makeDisplayName, makeDisplayName, makeQualifiedNameWithTemplateParameters, ClassDefImpl::mergeMembersFromBaseClasses, DefinitionImpl::qualifiedName, MemberDefImpl::qualifiedName, SearchIndex::setCurrentDoc, validatingParseDoc, MemberDefImpl::warnIfUndocumented, writeAlphabeticalClassList, MemberDefImpl::writeDeclaration, writeDefArgumentList, MemberDefImpl::writeDocumentation, writeJavasScriptSearchDataPage, MemberDefImpl::writeLink and writeMemberReference.
getOverloadDocs()
|
Returns the standard string that is generated when the \overload command is used.
Declaration at line 282 of file util.h, definition at line 4603 of file util.cpp.
Reference theTranslator.
Referenced by addMemberDocs, addOverloaded and CommentScanner::parseCommentBlock.
getPrefixIndex()
|
Returns the character index within name of the first prefix in Config_getList(IGNORE_PREFIX) that matches name at the left hand side, or zero if no match was found
Declaration at line 255 of file util.h, definition at line 3753 of file util.cpp.
References Config_getList, QCString::data and QCString::isEmpty.
Referenced by Index::addClassMemberNameToIndex, Index::addFileMemberNameToIndex, Index::addModuleMemberNameToIndex, Index::addNamespaceMemberNameToIndex, SearchIndex::addWordRec, parseInput, writeAlphabeticalClassList and writeMemberList.
getProjectId()
|
Declaration at line 476 of file util.h, definition at line 7326 of file util.cpp.
References Config_getString, QCString::data, QCString::isEmpty and QCString::length.
Referenced by generateJSNavTree, HtmlGenerator::init and writeJavaScriptSearchIndex.
getScopeFragment()
|
Returns a fragment from scope s, starting at position p.
- Parameters
-
s the scope name as a string.
p the start position (0 is the first).
l the resulting length of the fragment.
- Returns
the location of the fragment, or -1 if non is found.
Declaration at line 312 of file util.h, definition at line 5142 of file util.cpp.
References QCString::at and QCString::length.
Referenced by buildScopeFromQualifiedName, findScopeFromQualifiedName, SymbolResolver::Private::followPath, resolveTypeDef and stripAnonymousNamespaceScope.
guessSection()
|
try to determine if name is a source or a header file name by looking at the extension. A number of variations is allowed in both upper and lower case) If anyone knows or uses another extension please let me know :-)
Declaration at line 206 of file util.h, definition at line 350 of file util.cpp.
References QCString::findRev, getLanguageFromFileName, QCString::lower, QCString::mid and QCString::str.
Referenced by addIncludeFile, anonymous{tagreader.cpp}::TagFileParser::buildLists, ClassDefImpl::ClassDefImpl, computeClassRelations, FileDefImpl::FileDefImpl, FileDefImpl::generateSourceFile, parseMain, parseMain, Preprocessor::processFile, setFileName and warnUndocumentedNamespaces.
initDefaultExtensionMapping()
|
Declaration at line 377 of file util.h, definition at line 5649 of file util.cpp.
Reference updateLanguageMapping.
Referenced by initDoxygen.
inlineArgListToDoc()
|
Declaration at line 219 of file util.h, definition at line 1157 of file util.cpp.
References extractDirection and ArgumentList::hasDocumentation.
Referenced by DocParser::processCopyDoc and MemberDefImpl::writeDocumentation.
inlineTemplateArgListToDoc()
|
Declaration at line 220 of file util.h, definition at line 1175 of file util.cpp.
References ArgumentList::hasTemplateDocumentation, QCString::stripPrefix and QCString::stripWhiteSpace.
Referenced by ClassDefImpl::writeDetailedDocumentationBody and MemberDefImpl::writeDocumentation.
insertTemplateSpecifierInScope()
Declaration at line 269 of file util.h, definition at line 4263 of file util.cpp.
References ArgumentList::empty, QCString::find, getClass, QCString::isEmpty, QCString::left, QCString::length, QCString::right and ClassDef::templateArguments.
Referenced by DotClassGraph::addClass, generateXMLForClass, DiagramItem::label, ClassDefImpl::writeInheritanceGraph and ClassDefImpl::writeTagFile.
integerToAlpha()
|
Declaration at line 467 of file util.h, definition at line 7197 of file util.cpp.
Referenced by ManDocVisitor::operator() and RTFDocVisitor::operator().
integerToRoman()
|
Declaration at line 468 of file util.h, definition at line 7213 of file util.cpp.
Referenced by LatexDocVisitor::operator(), ManDocVisitor::operator() and RTFDocVisitor::operator().
isId()
| inline |
Definition at line 208 of file util.h.
Referenced by addTemplateNames, SearchIndexExternal::addWord, convertToHtml, convertToXML, MemberDefImpl::displayDefinition, escapeId, filterLatexString, findEndOfCommand, getNextId, matchExcludedSymbols, nameIsOperator, processConcatOperators, removeIdsAndMarkers, removeRedundantWhiteSpace, replaceAliases, splitKnRArg, splitSearchTokens, startsWithKeyword, stripIrrelevantString, substituteTemplateArgumentsInString, tempArgListToString, MemberDefImpl::writeDocumentation and PlantumlManager::writePlantUMLSource.
isIdJS()
| inline |
Definition at line 212 of file util.h.
Referenced by SearchTerm::termEncoded.
isURL()
|
Checks whether the given url starts with a supported protocol.
Declaration at line 431 of file util.h, definition at line 6430 of file util.cpp.
References QCString::find, QCString::left, QCString::str and QCString::stripWhiteSpace.
Referenced by correctURL, Markdown::Private::processLink and renderQuickLinksAsJs.
join()
|
create a string where the string in the vector are joined by the given delimiter
Declaration at line 462 of file util.h, definition at line 7184 of file util.cpp.
Referenced by handleAnchor, handleCite, handleFormatBlock and handleImage.
langToString()
|
Returns a string representation of lang.
Declaration at line 91 of file util.h, definition at line 6408 of file util.cpp.
Reference to_string.
Referenced by buildNamespaceList, findUsingDirectives, generateXMLForClass, generateXMLForFile and generateXMLForNamespace.
leftScopeMatch()
Declaration at line 238 of file util.h, definition at line 893 of file util.cpp.
References QCString::at, QCString::left and QCString::length.
Referenced by addClassToContext, addConceptToContext, buildFunctionList, mergeScopes, pushScope and resolveRef.
lineBlock()
Returns the line number of the line following the line with the marker.
- See Also
routine extractBlock
Declaration at line 429 of file util.h, definition at line 6387 of file util.cpp.
Reference QCString::find.
Referenced by readIncludeFile.
linkifyText()
|
Declaration at line 96 of file util.h, definition at line 905 of file util.cpp.
References Definition::anchor, Definition::definitionType, end, FALSE, QCString::findRev, GetDefResult::found, getClass, getConcept, getDefs, Definition::getLanguage, Definition::getOuterScope, Definition::getOutputFileBase, Definition::getReference, SymbolResolver::getTypedef, QCString::isEmpty, Definition::isLinkable, Definition::isLinkableInProject, MemberDef::isVariable, QCString::left, GetDefResult::md, QCString::mid, Definition::name, Definition::qualifiedName, SymbolResolver::resolveClass, substitute, TRUE, Definition::TypeClass, Definition::TypeNamespace, QCString::view, TextGeneratorIntf::writeBreak, TextGeneratorIntf::writeLink and TextGeneratorIntf::writeString.
Referenced by MemberDefImpl::_writeTemplatePrefix, generateSqlite3ForMember, generateXMLForClass, generateXMLForConcept, generateXMLForMember, insertMemberFunctionParams, MemberDefImpl::writeDeclaration, writeDefArgumentList, MemberDefImpl::writeDocumentation, writeExceptionListImpl, MemberDefImpl::writeMemberDocSimple, writeTemplateArgumentList, ClassDefImpl::writeTemplateSpec and writeTypeConstraints.
linkToText()
|
Declaration at line 342 of file util.h, definition at line 3220 of file util.cpp.
References QCString::at, QCString::find, getLanguageSpecificSeparator, QCString::isEmpty, QCString::length, QCString::right and substitute.
Referenced by DotCallGraph::buildGraph, DocRef::DocRef, DotCallGraph::DotCallGraph and DocParser::handleLinkedWord.
mainPageHasTitle()
|
Declaration at line 455 of file util.h, definition at line 6799 of file util.cpp.
Reference Doxygen::mainPage.
Referenced by generateJSNavTree, generateSqlite3ForPage, generateXMLForPage, mainPageHasOwnTitle and writeIndex.
mangleCSharpGenericName()
|
Declaration at line 483 of file util.h, definition at line 7428 of file util.cpp.
References QCString::contains, QCString::find, QCString::left and QCString::setNum.
Referenced by addClassToContext, addEnumValuesToEnums, addVariable, buildFunctionList, extractClassName, findClassRelation, findEnums, SymbolResolver::resolveClass, resolveLink and resolveRef.
matchArguments2()
|
Declaration at line 165 of file util.h, definition at line 1959 of file util.cpp.
References argListToString, ASSERT, AUTO_TRACE, ArgumentList::begin, ArgumentList::constSpecifier, ArgumentList::empty, ArgumentList::end, FALSE, ArgumentList::front, MATCH, matchArgument2, Definition::name, NOMATCH, ArgumentList::refQualifier, ArgumentList::size, TRUE, Argument::type and ArgumentList::volatileSpecifier.
Referenced by addMemberDocs, addMemberFunction, buildFunctionList, combineDeclarationAndDefinition, computeMemberRelationsForBaseClass, ClassDefImpl::containsOverload, findFriends, findGlobalMember, findMember, findMembersWithSpecificName, getDefsOld, SymbolResolver::Private::getResolvedSymbol, GroupDefImpl::insertMember, matchCanonicalTypes, ClassDefImpl::mergeMembersFromBaseClasses, transferFunctionReferences and transferRelatedFunctionDocumentation.
matchTemplateArguments()
|
Declaration at line 172 of file util.h, definition at line 2197 of file util.cpp.
References argListToString, AUTO_TRACE, AUTO_TRACE_EXIT, ArgumentList::begin, ArgumentList::end, ArgumentList::size and Argument::type.
Referenced by buildFunctionList.
mergeArguments()
|
Declaration at line 170 of file util.h, definition at line 2053 of file util.cpp.
References argListToString, AUTO_TRACE, AUTO_TRACE_ADD, ArgumentList::begin, QCString::clear, Argument::defval, Argument::docs, ArgumentList::end, QCString::find, QCString::isEmpty, QCString::left, QCString::length, Argument::name, qPrint, QCString::right, ArgumentList::size, QCString::stripWhiteSpace and Argument::type.
Referenced by addMemberDocs, buildFunctionList and findFriends.
mergeMemberOverrideOptions()
|
Declaration at line 479 of file util.h, definition at line 7376 of file util.cpp.
References Config_getBool, MemberDef::hasCallerGraph, MemberDef::hasCallGraph, MemberDef::hasEnumValues, MemberDef::hasInlineSource, MemberDef::hasReferencedByRelation, MemberDef::hasReferencesRelation, MemberDefMutable::overrideCallerGraph, MemberDefMutable::overrideCallGraph, MemberDefMutable::overrideEnumValues, MemberDefMutable::overrideInlineSource, MemberDefMutable::overrideReferencedByRelation and MemberDefMutable::overrideReferencesRelation.
Referenced by combineDeclarationAndDefinition and findFriends.
mergeScopes()
Merges two scope parts together. The parts may (partially) overlap. Example1: A::B and B::C will result in A::B::C
Example2: A and B will be A::B
Example3: A::B and B will be A::B
- Parameters
-
leftScope the left hand part of the scope.
rightScope the right hand part of the scope.
- Returns
the merged scope.
Declaration at line 310 of file util.h, definition at line 5097 of file util.cpp.
References AUTO_TRACE, AUTO_TRACE_EXIT, FALSE, QCString::findRev, QCString::isEmpty, QCString::left, leftScopeMatch, QCString::length, QCString::right and TRUE.
Referenced by addEnumValuesToEnums, addVariable, findEnums, findMember and stripTemplateSpecifiersFromScope.
nextUtf8CharPosition()
|
Definition at line 409 of file util.h.
normalizeNonTemplateArgumentsInString()
|
Declaration at line 291 of file util.h, definition at line 4803 of file util.cpp.
References end, FALSE, QCString::find, QCString::left, QCString::mid, Definition::name, removeRedundantWhiteSpace, SymbolResolver::resolveClass, QCString::str and TRUE.
Referenced by findUsedClassesForClass.
openOutputFile()
|
Declaration at line 456 of file util.h, definition at line 6811 of file util.cpp.
References FileInfo::exists, FALSE, FileInfo::filePath, Portable::openOutputStream, Dir::remove, Dir::rename and QCString::str.
Referenced by compareDoxyfile, generateConfigFile, readConfiguration and writeDefaultLayoutFile.
parseCommentAsHtml()
|
Declaration at line 383 of file util.h, definition at line 5931 of file util.cpp.
References OutputCodeList::add, createDocParser, filterTitle, g_docCache, g_docCacheMutex, QCString::str, TextStream::str and validatingParseTitle.
Referenced by PageDefImpl::addSectionsToIndex, SearchTerm::makeTitle, DefinitionImpl::navigationPathAsString, writeGroupTreeNode, writeIndex, writeJavasScriptSearchDataPage and writePages.
parseCommentAsText()
|
Declaration at line 382 of file util.h, definition at line 5880 of file util.cpp.
References QCString::at, Config_getBool, convertCharEntitiesToUTF8, createDocParser, QCString::data, FALSE, QCString::isEmpty, QCString::left, QCString::length, nextUTF8CharPosition, TextStream::str, QCString::stripWhiteSpace and validatingParseDoc.
Referenced by PageDefImpl::addSectionsToIndex, DefinitionImpl::computeTooltip, writeGroupTreeNode, writeIndex and writePages.
patternMatch()
|
Declaration at line 399 of file util.h, definition at line 6205 of file util.cpp.
Reference genericPatternMatch.
Referenced by checkAndOpenFile and readDir.
processMarkup()
projectLogoFile()
|
Declaration at line 477 of file util.h, definition at line 3658 of file util.cpp.
References Config_getString, QCString::find, QCString::isEmpty and QCString::left.
Referenced by copyLogo and substituteKeywords.
protectionLevelVisible()
|
Declaration at line 437 of file util.h, definition at line 6454 of file util.cpp.
Reference Config_getBool.
Referenced by MemberDefImpl::_computeLinkableInProject, addClassAndNestedClasses, computeClassRelations, MemberDefImpl::hasDetailedDescription, ClassDefImpl::internalInsertMember, MemberDefImpl::isBriefSectionVisible, ClassDefImpl::isLinkableInProject, ClassDefImpl::isVisibleInHierarchy, MemberDefImpl::warnIfUndocumented, MemberDefImpl::writeDeclaration, ClassDefImpl::writeDocumentationForInnerClasses, ClassDefImpl::writeMemberList and ClassDefImpl::writeTagFile.
readInputFile()
|
read a file name fileName and optionally filter and transcode it
Declaration at line 395 of file util.h, definition at line 6051 of file util.cpp.
References err, FileInfo::exists, Debug::ExtCmd, FALSE, filterCRLF, Debug::FilterOutput, getEncoding, getFileFilter, QCString::isEmpty, Portable::openInputStream, Portable::pclose, Portable::popen, Debug::print, FileInfo::size, QCString::str and transcodeCharacterBuffer.
Referenced by checkAndOpenFile, fileToString, HtmlDocVisitor::operator(), RTFDocVisitor::operator(), parseFile, parseInput, readIncludeFile, DocbookDocVisitor::startPlantUmlFile and LatexDocVisitor::startPlantUmlFile.
recodeString()
|
recognizeFixedForm()
|
Declaration at line 464 of file util.h, definition at line 6858 of file util.cpp.
References QCString::at, Config_getInt, QCString::data, FALSE, Fixed, Free, keyWordsFortranC, QCString::length and TRUE.
Referenced by convertCppComments, FortranCodeParser::parseCode and parseMain.
relativePathToRoot()
|
Declaration at line 358 of file util.h, definition at line 4096 of file util.cpp.
References Config_getBool, QCString::findRev, QCString::isEmpty and REL_PATH_TO_ROOT.
Referenced by generateBriefDoc, DocbookGenerator::startFile, HtmlGenerator::startFile, LatexGenerator::startFile, RTFGenerator::startFile and validatingParseDoc.
removeAnonymousScopes()
|
Removes all anonymous scopes from string s Possible examples:
"bla::@10::blep" => "bla::blep"
"bla::@10::@11::blep" => "bla::blep"
"@10::blep" => "blep"
" @10::blep" => "blep"
"@9::@10::blep" => "blep"
"bla::@1" => "bla"
"bla::@1::@2" => "bla"
"bla @1" => "bla"
Declaration at line 257 of file util.h, definition at line 173 of file util.cpp.
References end, QCString::isEmpty and QCString::str.
Referenced by createTagLessInstance, MemberDefImpl::displayDefinition, generateClassMemberLink, makeDisplayName, makeDisplayName, simplifyTypeForTable, MemberDefImpl::writeDeclaration and MemberDefImpl::writeDocumentation.
removeEmptyLines()
|
Declaration at line 198 of file util.h, definition at line 7101 of file util.cpp.
References QCString::data, QCString::length and QCString::reserve.
Referenced by substituteHtmlKeywords and substituteLatexKeywords.
removeLongPathMarker()
|
Declaration at line 364 of file util.h, definition at line 299 of file util.cpp.
References QCString::mid and QCString::startsWith.
Referenced by computeCommonDirPrefix, FileDefImpl::FileDefImpl, findFileDef, DirDefImpl::mergeDirectoryInTree and stripFromPath.
removeRedundantWhiteSpace()
|
Declaration at line 217 of file util.h, definition at line 579 of file util.cpp.
References Config_getBool, constScope, QCString::data, g_charAroundSpace, QCString::isEmpty, isId, QCString::length, operatorScope, qisspace, THREAD_LOCAL, virtualScope and volatileScope.
Referenced by addFrom, addGlobalFunction, addMethodToClass, addVariable, addVariableToClass, argListToString, buildFunctionList, buildInterfaceAndServiceList, buildTypedefList, ClassDefImpl::ClassDefImpl, extractCanonicalType, findClassRelation, DocParser::findDocsForMemberOrCompound, findMember, findUsedClassesForClass, findUsingDeclImports, generateFunctionLink, generateFunctionLink, generateLink, getCanonicalTypeForIdentifier, getLink, getLink, getLink, MemberDefImpl::init, ClassDefImpl::insertTemplateInstance, MemberDefImpl::MemberDefImpl, normalizeNonTemplateArgumentsInString, parseFuncDecl, resolveRef, tempArgListToString and writeExceptionListImpl.
replaceAnonymousScopes()
Declaration at line 259 of file util.h, definition at line 230 of file util.cpp.
References QCString::data, QCString::isEmpty, reg::replace and QCString::str.
Referenced by addMemberFunction, findGlobalMember and generateDEFForMember.
replaceColorMarkers()
|
Replaces any markers of the form ##AA in input string str by new markers of the form #AABBCC, where #AABBCC represents a valid color, based on the intensity represented by hex number AA and the current HTML_COLORSTYLE_* settings.
Declaration at line 425 of file util.h, definition at line 6323 of file util.cpp.
References Config_getInt, end, hex, HEXTONUM, ColoredImage::hsl2rgb, QCString::isEmpty and QCString::str.
Referenced by ResourceMgr::copyResourceAs, fillColorStyleMaps, HtmlGenerator::init and writeDefaultStyleSheet.
resolveLink()
|
Declaration at line 149 of file util.h, definition at line 3246 of file util.cpp.
References FileInfo::absFilePath, Definition::anchor, AUTO_TRACE, AUTO_TRACE_EXIT, SectionInfo::definition, Doxygen::dirLinkedMap, Doxygen::exampleLinkedMap, FALSE, LinkedMap< T, Hash, KeyEqual, Map >::find, findFileDef, getClass, getConcept, PageDef::getGroupDef, Doxygen::groupLinkedMap, Doxygen::inputNameLinkedMap, ModuleManager::instance, SectionManager::instance, QCString::isEmpty, Definition::isLinkable, SectionInfo::label, mangleCSharpGenericName, Definition::name, Doxygen::namespaceLinkedMap, Doxygen::pageLinkedMap, prefix, resolveRef, QCString::str, stripTemplateSpecifiersFromScope and TRUE.
Referenced by DocLink::DocLink and DocRef::DocRef.
resolveRef()
|
Returns an object to reference to given its name and context
- Postcondition
return value TRUE implies *resContext!=0 or *resMember!=0
Declaration at line 138 of file util.h, definition at line 2965 of file util.cpp.
References ASSERT, AUTO_TRACE, AUTO_TRACE_ADD, GetDefResult::cd, GetDefInput::checkCV, GetDefResult::cnd, Doxygen::conceptLinkedMap, GetDefInput::currentFile, FALSE, GetDefResult::fd, QCString::find, findFileDef, findParameterList, QCString::findRev, GetDefInput::forceEmptyScope, GetDefResult::found, GetDefResult::gd, getClass, getDefs, Definition::getOuterScope, getScopeDefs, Doxygen::globalScope, Doxygen::groupLinkedMap, Doxygen::inputNameLinkedMap, ModuleManager::instance, QCString::isEmpty, MemberDef::isEnumerate, isLowerCase, MemberDef::isStrongEnumValue, MemberDef::isTypedef, QCString::left, leftScopeMatch, QCString::length, mangleCSharpGenericName, GetDefResult::md, QCString::mid, GetDefResult::modd, GetDefResult::nd, removeRedundantWhiteSpace, resolveRef, QCString::right, QCString::startsWith, substitute and TRUE.
Referenced by DocParser::handleLinkedWord, resolveLink and resolveRef.
resolveTypeDef()
|
Declaration at line 307 of file util.h, definition at line 385 of file util.cpp.
References MemberDef::argsString, AUTO_TRACE, AUTO_TRACE_ADD, AUTO_TRACE_EXIT, Definition::definitionType, LinkedMap< T, Hash, KeyEqual, Map >::find, QCString::find, Definition::findInnerCompound, QCString::findRev, Doxygen::functionNameLinkedMap, Definition::getOuterScope, getScopeFragment, Doxygen::globalScope, SymbolResolver::isAccessibleFrom, QCString::isEmpty, MemberDef::isRelated, MemberDef::isTypedef, QCString::left, QCString::length, Doxygen::memberNameLinkedMap, QCString::mid, Definition::name, resolveTypeDef, QCString::right, Definition::TypeClass and MemberDef::typeString.
Referenced by findUsedClassesForClass, getCanonicalTemplateSpec, getCanonicalTypeForIdentifier, isVarWithConstructor and resolveTypeDef.
rightScopeMatch()
Declaration at line 236 of file util.h, definition at line 882 of file util.cpp.
References QCString::at, QCString::length and QCString::right.
Referenced by addMemberFunction, findScopeFromQualifiedName, getDefsOld and isRecursiveBaseClass.
selectBlocks()
|
remove disabled blocks and all block markers from s and return the result as a string
Declaration at line 195 of file util.h, definition at line 6924 of file util.cpp.
References SelectionMarkerInfo::beginLen, SelectionMarkerInfo::beginStr, SelectionMarkerInfo::closeLen, SelectionMarkerInfo::closeStr, QCString::data, SelectionMarkerInfo::endLen, SelectionMarkerInfo::endStr, QCString::isEmpty, QCString::length, SelectionMarkerInfo::markerChar, qstrlen, qstrncmp and QCString::reserve.
Referenced by substituteHtmlKeywords and substituteLatexKeywords.
showFileDefMatches()
|
Declaration at line 204 of file util.h, definition at line 3542 of file util.cpp.
References LinkedMap< T, Hash, KeyEqual, Map >::find, QCString::findRev, QCString::isEmpty, QCString::left, QCString::length and QCString::right.
Referenced by addIncludeFile, buildFileList, DocParser::findAndCopyImage, DocDiaFile::parse, DocDotFile::parse, DocMscFile::parse, DocPlantUmlFile::parse, readIncludeFile, DocParser::readTextFileByName and readTextFileByName.
split()
|
split input string s by string delimiter delimiter.
returns a vector of non-empty strings that are between the delimiters
Declaration at line 458 of file util.h, definition at line 7133 of file util.cpp.
Referenced by VHDLOutlineParser::addProto, VHDLOutlineParser::addVhdlType, FlowChart::alignCommentNode, anonymous{tagreader.cpp}::TagFileParser::buildLists, VHDLOutlineParser::checkInlineCode, checkVhdlString, VHDLOutlineParser::createFunction, VhdlDocGen::findArchitecture, CitationManager::generatePage, getFilteredImageAttributes, VhdlDocGen::getIndexWord, DocPara::handleCite, DocPara::handleCommand, DocParser::handleImage, DocPara::handleInclude, Qhp::initialize, VhdlDocGen::parseForBinding, VhdlDocGen::parseForConfig, parseIncludeOptions, writeFuncProto, VhdlDocGen::writeInlineClassLink and VhdlDocGen::writeRecUnitDocu.
split()
|
split input string s by regular expression delimiter delimiter.
returns a vector of non-empty strings that are between the delimiters
Declaration at line 459 of file util.h, definition at line 7150 of file util.cpp.
Reference end.
stackTrace()
|
Declaration at line 393 of file util.h, definition at line 5987 of file util.cpp.
References Portable::pclose, Portable::popen and qsnprintf.
stripAnonymousNamespaceScope()
|
Declaration at line 230 of file util.h, definition at line 242 of file util.cpp.
References QCString::at, getScopeFragment, QCString::isEmpty, QCString::left, QCString::length, QCString::mid, Doxygen::namespaceLinkedMap and QCString::right.
Referenced by addMemberFunction, addPageToContext, addVariable, buildNamespaceList, computeTemplateClassRelations, extractClassName, findGroupScope, findUsingDeclImports, findUsingDirectives, MemberDefImpl::getClassDefOfAnonymousType and resolveClassNestingRelations.
stripExtension()
|
Declaration at line 350 of file util.h, definition at line 5438 of file util.cpp.
References Doxygen::htmlFileExtension and stripExtensionGeneral.
Referenced by anonymous{tagreader.cpp}::TagFileParser::buildLists, ClassDefImpl::ClassDefImpl and MemberDefImpl::setTagInfo.
stripExtensionGeneral()
Declaration at line 348 of file util.h, definition at line 5428 of file util.cpp.
References QCString::left, QCString::length and QCString::right.
Referenced by TooltipManager::addTooltip, anonymous{tagreader.cpp}::TagFileParser::buildLists, extraLatexStyleSheet, MarkdownOutlineParser::parseInput, stripExtension, DocbookCodeGenerator::writeCodeLinkLine, LatexCodeGenerator::writeLineNumber and RTFCodeGenerator::writeLineNumber.
stripFromIncludePath()
|
strip part of path if it matches one of the paths in the Config_getList(INCLUDE_PATH) list
Declaration at line 234 of file util.h, definition at line 341 of file util.cpp.
References Config_getList and stripFromPath.
Referenced by MemberDefImpl::_writeGroupInclude, addIncludeFile and findFileDef.
stripFromPath()
|
strip part of path if it matches one of the paths in the Config_getList(STRIP_FROM_PATH) list
Declaration at line 232 of file util.h, definition at line 333 of file util.cpp.
References Config_getList and stripFromPath.
stripIndentation()
|
Declaration at line 439 of file util.h, definition at line 6466 of file util.cpp.
References Config_getInt, QCString::data, QCString::isEmpty, literal_at, TextStream::str and substitute.
Referenced by handleCommentBlock, handleCommentBlock, handleCommentBlock, handleParametersCommentBlocks, DocPara::handleStartCode and MarkdownOutlineParser::parseInput.
stripIndentationVerbatim()
|
Declaration at line 440 of file util.h, definition at line 6554 of file util.cpp.
References QCString::data, QCString::isEmpty, QCString::rawData and QCString::resize.
stripLeadingAndTrailingEmptyLines()
|
Special version of QCString::stripWhiteSpace() that only strips completely blank lines.
- Parameters
-
s the string to be stripped
docLine the line number corresponding to the start of the string. This will be adjusted based on the number of lines stripped from the start.
- Returns
The stripped string.
Declaration at line 371 of file util.h, definition at line 5541 of file util.cpp.
References QCString::data, QCString::isEmpty, QCString::length, literal_at and QCString::mid.
Referenced by DefinitionImpl::_setBriefDescription, DocGroup::addDocs, VHDLOutlineParser::checkInlineCode, DocPara::handleCommand, CommentScanner::parseCommentBlock and toDefinition.
stripPath()
|
Declaration at line 365 of file util.h, definition at line 5465 of file util.cpp.
References QCString::findRev and QCString::mid.
Referenced by LatexGenerator::addLabel, anonymous{tagreader.cpp}::TagFileParser::buildLists, RTFGenerator::endDoxyAnchor, LatexGenerator::endIndexItem, LatexGenerator::endIndexValue, LatexGenerator::endTitleHead, objectLinkToString, objectLinkToString, objectLinkToString, DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), DocbookDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), HtmlDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), LatexDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), RTFDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), XmlDocVisitor::operator(), DotFilePatcher::run, SearchIndexExternal::setCurrentDoc, DocbookGenerator::startDoxyAnchor, LatexGenerator::startDoxyAnchor, DocbookGenerator::startFile, LatexGenerator::startFile, RTFGenerator::startFile, DocbookDocVisitor::startLink, LatexDocVisitor::startLink, RTFDocVisitor::startLink, DocbookGenerator::startSection, LatexGenerator::startSection, LatexGenerator::startTextLink, RTFGenerator::startTextLink, substituteHtmlKeywords, substituteKeywords, LatexGenerator::writeAnchor, RTFGenerator::writeAnchor, LatexCodeGenerator::writeCodeLink, RTFCodeGenerator::writeCodeLink, DocbookCodeGenerator::writeCodeLinkLine, MemberList::writeDeclarations, writeDocbookLink, LatexCodeGenerator::writeLineNumber, RTFCodeGenerator::writeLineNumber, RTFGenerator::writeRTFReference and RTFGenerator::writeStartAnnoItem.
stripScope()
|
Strips the scope from a name. Examples: A::B will return A and A<T>::B<N::C<D> > will return A<T>.
Declaration at line 271 of file util.h, definition at line 4296 of file util.cpp.
References QCString::at, FALSE, QCString::length, QCString::right and TRUE.
Referenced by DotClassGraph::addClass, DocRef::DocRef, generateJSLink, getCanonicalTypeForIdentifier, DefinitionImpl::Private::init, DiagramItem::label, NamespaceDefImpl::writeBriefDescription and ClassDefImpl::writeIncludeFilesForSlice.
stripTemplateSpecifiersFromScope()
|
Strips template specifiers from scope fullName, except those that make up specialized classes. The switch parentOnly determines whether or not a template "at the end" of a scope should be considered, e.g. with parentOnly is TRUE, A<T>::B<S> will try to strip <T> and not <S>, while parentOnly is FALSE will strip both unless A<T> or B<S> are specialized template classes.
Declaration at line 301 of file util.h, definition at line 5030 of file util.cpp.
References QCString::at, QCString::find, getClass, Definition::isArtificial, QCString::length, mergeScopes, QCString::mid and QCString::right.
Referenced by addClassToContext, addMemberFunction, addVariable, buildFunctionList, computeTemplateClassRelations, extractClassName, findMember, findScopeFromQualifiedName, findUsingDeclImports, getCanonicalTypeForIdentifier, getDefsOld, SymbolResolver::Private::getResolvedSymbolRec, SymbolResolver::Private::getResolvedTypeRec, SymbolResolver::Private::newResolveTypedef and resolveLink.
substituteClassNames()
substituteKeywords()
|
Declaration at line 250 of file util.h, definition at line 3572 of file util.cpp.
References QCString::data, QCString::left, QCString::length, qstrlen, qstrncmp and warn.
Referenced by substituteHtmlKeywords, substituteKeywords and substituteLatexKeywords.
substituteKeywords()
|
Declaration at line 252 of file util.h, definition at line 3724 of file util.cpp.
References Config_getString, Date, DateTime, dateToString, QCString::isEmpty, projectLogoFile, projectLogoSize, showDate, stripPath, substituteKeywords, theTranslator, Time and yearToString.
substituteTemplateArgumentsInString()
|
Substitutes any occurrence of a formal argument from argument list formalArgs in name by the corresponding actual argument in argument list actualArgs. The result after substitution is returned as a string. The argument name is used to prevent recursive substitution.
Declaration at line 296 of file util.h, definition at line 4868 of file util.cpp.
References argListToString, AUTO_TRACE, AUTO_TRACE_ADD, AUTO_TRACE_EXIT, ArgumentList::begin, Argument::defval, ArgumentList::empty, ArgumentList::end, end, FALSE, QCString::isEmpty, isId, QCString::left, QCString::mid, Argument::name, prefix, QCString::simplifyWhiteSpace, QCString::startsWith, QCString::str, QCString::stripWhiteSpace, substituteTemplateArgumentsInString, TRUE and Argument::type.
Referenced by computeTemplateClassRelations, MemberDefImpl::createTemplateInstanceMember, findBaseClassesForClass, findUsedClassesForClass, SymbolResolver::Private::getResolvedSymbol, SymbolResolver::Private::newResolveTypedef and substituteTemplateArgumentsInString.
tempArgListToString()
|
Declaration at line 224 of file util.h, definition at line 1247 of file util.cpp.
References ArgumentList::empty, isId, removeRedundantWhiteSpace and QCString::right.
Referenced by addMemberFunction, ClassDefImpl::className, findTemplateInstanceRelation, makeQualifiedNameWithTemplateParameters, searchTemplateSpecs and writeDefArgumentList.
transcodeCharacterStringToUTF8()
|
Declaration at line 385 of file util.h, definition at line 1404 of file util.cpp.
References QCString::at, QCString::ExplicitSize, portable_iconv, portable_iconv_close, portable_iconv_open, qstricmp, QCString::rawData, QCString::resize and QCString::str.
Referenced by LayoutDocManager::parse and readCodeFragment.
unescapeCharsInString()
|
Declaration at line 338 of file util.h, definition at line 3934 of file util.cpp.
References QCString::data, getCaseSenseNames and QCString::isEmpty.
updateColumnCount()
|
Declaration at line 481 of file util.h, definition at line 7395 of file util.cpp.
References Config_getInt and getUTF8CharNumBytes.
Referenced by HtmlCodeGenerator::codify, LatexCodeGenerator::codify, ManCodeGenerator::codify, RTFCodeGenerator::codify, writeDocbookCodeString and writeXMLCodeString.
updateLanguageMapping()
Declaration at line 373 of file util.h, definition at line 5617 of file util.cpp.
References QCString::at, QCString::data, err, FALSE, g_extLookup, g_lang2extMap, QCString::isEmpty, QCString::lower, Doxygen::parserManager, QCString::prepend, QCString::str and TRUE.
Referenced by addCodeOnlyMappings, adjustConfiguration and initDefaultExtensionMapping.
writeColoredImgData()
|
Writes the intensity only bitmap represented by data as an image to directory dir using the colors defined by HTML_COLORSTYLE_*.
Declaration at line 424 of file util.h, definition at line 6299 of file util.cpp.
References ColoredImgDataItem::alpha, Config_getInt, ColoredImgDataItem::content, ColoredImgDataItem::height, Doxygen::indexList, ColoredImgDataItem::name, ColoredImage::save and ColoredImgDataItem::width.
writeExamples()
|
Declaration at line 228 of file util.h, definition at line 1128 of file util.cpp.
References OutputList::disable, Docbook, Html, Latex, Man, OutputList::popGeneratorState, OutputList::pushGeneratorState, RTF, theTranslator, writeMarkerList, OutputList::writeObjectLink and OutputList::writeString.
Referenced by MemberDefImpl::_writeExamples and ClassDefImpl::writeDetailedDocumentationBody.
writeMarkerList()
|
Declaration at line 411 of file util.h, definition at line 1104 of file util.cpp.
References end and OutputList::parseText.
Referenced by MemberDefImpl::_writeReimplementedBy, DefinitionImpl::_writeSourceRefList, writeExamples and ClassDefImpl::writeInheritanceGraph.
writePageRef()
|
Declaration at line 161 of file util.h, definition at line 271 of file util.cpp.
References Config_getBool, OutputList::disable, Docbook, OutputList::docify, OutputList::endPageRef, Html, Latex, Man, OutputList::popGeneratorState, OutputList::pushGeneratorState, RTF, OutputList::startPageRef and theTranslator.
Referenced by MemberDefImpl::_writeReimplementedBy and MemberDefImpl::_writeReimplements.
writeTypeConstraints()
|
Declaration at line 389 of file util.h, definition at line 5965 of file util.cpp.
References Definition::docFile, Definition::docLine, ArgumentList::empty, OutputList::endConstraintDocs, OutputList::endConstraintList, OutputList::endConstraintParam, OutputList::endConstraintType, FALSE, OutputList::generateDoc, linkifyText, OutputList::parseText, OutputList::startConstraintDocs, OutputList::startConstraintList, OutputList::startConstraintParam, OutputList::startConstraintType, theTranslator and TRUE.
Referenced by MemberDefImpl::_writeTypeConstraints and ClassDefImpl::writeDetailedDocumentationBody.
Generated via doxygen2docusaurus by Doxygen 1.14.0.