#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <md5.h>
#include "qtbc.h"
#include <qregexp.h>
#include <qfileinfo.h>
#include <qdir.h>
#include <qdatetime.h>
#include <qcache.h>
#include "util.h"
#include "message.h"
#include "classdef.h"
#include "filedef.h"
#include "doxygen.h"
#include "outputlist.h"
#include "defargs.h"
#include "language.h"
#include "config.h"
#include "htmlhelp.h"
#include "example.h"
#include "version.h"
#include "groupdef.h"
#include "reflist.h"
#include "pagedef.h"
#include "debug.h"
#include "searchindex.h"
#include "textdocvisitor.h"
#include "portable.h"
Go to the source code of this file.
Classes | |
struct | FindFileCacheElem |
Defines | |
#define | ALGO_COUNT 1 |
#define | ALGO_CRC16 2 |
#define | ALGO_MD5 3 |
#define | MAP_ALGO ALGO_MD5 |
#define | REL_PATH_TO_ROOT "../../" |
#define | MATCH |
#define | NOMATCH |
Functions | |
bool | isId (int c) |
QCString | removeAnonymousScopes (const QCString &s) |
QCString | replaceAnonymousScopes (const QCString &s, const char *replacement) |
QCString | stripAnonymousNamespaceScope (const QCString &s) |
void | writePageRef (OutputDocInterface &od, const char *cn, const char *mn) |
QCString | generateMarker (int id) |
QCString | stripFromPath (const QCString &path) |
QCString | stripFromIncludePath (const QCString &path) |
int | guessSection (const char *name) |
QCString | resolveTypeDef (Definition *context, const QCString &qualifiedName, Definition **typedefContext) |
ClassDef * | getClass (const char *name) |
NamespaceDef * | getResolvedNamespace (const char *name) |
ClassDef * | getResolvedClassRec (Definition *scope, FileDef *fileScope, const char *n, MemberDef **pTypeDef, QCString *pTemplSpec, QCString *pResolvedType) |
int | isAccessibleFromWithExpScope (Definition *scope, FileDef *fileScope, Definition *item, const QCString &explicitScopePart) |
ClassDef * | newResolveTypedef (FileDef *fileScope, MemberDef *md, MemberDef **pMemType, QCString *pTemplSpec, QCString *pResolvedType) |
bool | accessibleViaUsingClass (const SDict< Definition > *cl, FileDef *fileScope, Definition *item, const QCString &explicitScopePart="") |
bool | accessibleViaUsingNamespace (const NamespaceSDict *nl, FileDef *fileScope, Definition *item, const QCString &explicitScopePart="") |
int | isAccessibleFrom (Definition *scope, FileDef *fileScope, Definition *item) |
int | computeQualifiedIndex (const QCString &name) |
ClassDef * | getResolvedClass (Definition *scope, FileDef *fileScope, const char *n, MemberDef **pTypeDef, QCString *pTemplSpec, bool mayBeUnlinkable, bool mayBeHidden, QCString *pResolvedType) |
QCString | removeRedundantWhiteSpace (const QCString &s) |
bool | rightScopeMatch (const QCString &scope, const QCString &name) |
bool | leftScopeMatch (const QCString &scope, const QCString &name) |
void | linkifyText (const TextGeneratorIntf &out, Definition *scope, FileDef *fileScope, const char *, const char *text, bool autoBreak, bool external, bool keepSpaces) |
void | writeExample (OutputList &ol, ExampleSDict *ed) |
QCString | argListToString (ArgumentList *al, bool useCanonicalType) |
QCString | tempArgListToString (ArgumentList *al) |
void | setAnchors (ClassDef *cd, char id, MemberList *ml, int groupId) |
int | filterCRLF (char *buf, int len) |
QCString | getFileFilter (const char *name) |
QCString | recodeString (const QCString &str, const char *fromEncoding, const char *toEncoding) |
QCString | transcodeCharacterStringToUTF8 (const QCString &input) |
QCString | fileToString (const char *name, bool filter) |
QCString | dateToString (bool includeTime) |
QCString | yearToString () |
int | minClassDistance (const ClassDef *cd, const ClassDef *bcd, int level) |
void | trimBaseClassScope (BaseClassList *bcl, QCString &s, int level=0) |
void | stripIrrelevantConstVolatile (QCString &s) |
QCString | getCanonicalTemplateSpec (Definition *d, FileDef *fs, const QCString &spec) |
bool | matchArguments2 (Definition *srcScope, FileDef *srcFileScope, ArgumentList *srcAl, Definition *dstScope, FileDef *dstFileScope, ArgumentList *dstAl, bool checkCV) |
void | mergeArguments (ArgumentList *srcAl, ArgumentList *dstAl, bool forceNameOverwrite) |
bool | getDefs (const QCString &scName, const QCString &memberName, const char *args, MemberDef *&md, ClassDef *&cd, FileDef *&fd, NamespaceDef *&nd, GroupDef *&gd, bool forceEmptyScope, FileDef *currentFile, bool checkCV) |
bool | resolveRef (const char *scName, const char *name, bool inSeeBlock, Definition **resContext, MemberDef **resMember) |
QCString | linkToText (const char *link, bool isFileName) |
bool | generateRef (OutputDocInterface &od, const char *scName, const char *name, bool inSeeBlock, const char *rt) |
bool | resolveLink (const char *scName, const char *lr, bool inSeeBlock, Definition **resContext, QCString &resAnchor) |
bool | generateLink (OutputDocInterface &od, const char *clName, const char *lr, bool inSeeBlock, const char *lt) |
void | generateFileRef (OutputDocInterface &od, const char *name, const char *text) |
QCString | substitute (const char *s, const char *src, const char *dst) |
FileDef * | findFileDef (const FileNameDict *fnDict, const char *n, bool &ambig) |
QCString | showFileDefMatches (const FileNameDict *fnDict, const char *n) |
QCString | substituteKeywords (const QCString &s, const char *title, const QCString &relPath) |
int | getPrefixIndex (const QCString &name) |
void | initClassHierarchy (ClassSDict *cl) |
bool | hasVisibleRoot (BaseClassList *bcl) |
QCString | escapeCharsInString (const char *name, bool allowDots) |
QCString | convertNameToFile (const char *name, bool allowDots) |
QCString | relativePathToRoot (const char *name) |
void | createSubDirs (QDir &d) |
void | extractNamespaceName (const QCString &scopeName, QCString &className, QCString &namespaceName, bool allowEmptyClass) |
QCString | insertTemplateSpecifierInScope (const QCString &scope, const QCString &templ) |
QCString | stripScope (const char *name) |
QCString | convertToXML (const char *s) |
QCString | convertToHtml (const char *s, bool keepEntities) |
QCString | convertCharEntitiesToUTF8 (const QCString &s) |
QCString | getOverloadDocs () |
void | addMembersToMemberGroup (MemberList *ml, MemberGroupSDict **ppMemberGroupSDict, Definition *context) |
int | extractClassNameFromType (const QCString &type, int &pos, QCString &name, QCString &templSpec) |
QCString | substituteTemplateArgumentsInString (const QCString &name, ArgumentList *formalArgs, ArgumentList *actualArgs) |
ArgumentList * | copyArgumentList (const ArgumentList *src) |
QList< ArgumentList > * | copyArgumentLists (const QList< ArgumentList > *srcLists) |
QCString | stripTemplateSpecifiersFromScope (const QCString &fullName, bool parentOnly, QCString *pLastScopeStripped) |
QCString | mergeScopes (const QCString &leftScope, const QCString &rightScope) |
int | getScopeFragment (const QCString &s, int p, int *l) |
PageDef * | addRelatedPage (const char *name, const QCString &ptitle, const QCString &doc, QList< SectionInfo > *, const char *fileName, int startLine, const QList< ListItemInfo > *sli, GroupDef *gd, TagInfo *tagInfo) |
void | addRefItem (const QList< ListItemInfo > *sli, const char *prefix, const char *name, const char *title, const char *args) |
void | addGroupListToTitle (OutputList &ol, Definition *d) |
void | filterLatexString (QTextStream &t, const char *str, bool insideTabbing, bool insidePre, bool insideItem) |
QCString | rtfFormatBmkStr (const char *name) |
QCString | stripExtension (const char *fName) |
void | replaceNamespaceAliases (QCString &scope, int i) |
QCString | stripPath (const char *s) |
bool | containsWord (const QCString &s, const QCString &word) |
bool | findAndRemoveWord (QCString &s, const QCString &word) |
QCString | stripLeadingAndTrailingEmptyLines (const QCString &s) |
void | stringToSearchIndex (const QCString &docBaseUrl, const QCString &title, const QCString &str, bool priority, const QCString &anchor) |
SrcLangExt | getLanguageFromFileName (const QCString fileName) |
bool | checkIfTypedef (Definition *scope, FileDef *fileScope, const char *n) |
QCString | parseCommentAsText (const QString &doc, const QCString &fileName, int lineNr) |
QCString | expandAliasRec (const QCString s) |
QCString | replaceAliasArguments (const QCString &aliasValue, const QCString &argList) |
int | countAliasArguments (const QCString argList) |
QCString | extractAliasArgs (const QCString &args, int pos) |
QCString | resolveAliasCmd (const QCString aliasCmd) |
QCString | expandAlias (const QCString &aliasName, const QCString &aliasValue) |
void | writeTypeConstraints (OutputList &ol, Definition *d, ArgumentList *al) |
Variables | |
const int | maxInheritanceDepth = 100000 |
#define MATCH |
#define NOMATCH |
#define REL_PATH_TO_ROOT "../../" |
bool accessibleViaUsingClass | ( | const SDict< Definition > * | cl, | |
FileDef * | fileScope, | |||
Definition * | item, | |||
const QCString & | explicitScopePart = "" | |||
) |
bool accessibleViaUsingNamespace | ( | const NamespaceSDict * | nl, | |
FileDef * | fileScope, | |||
Definition * | item, | |||
const QCString & | explicitScopePart = "" | |||
) |
Definition at line 776 of file util.cpp.
References SDict< T >::find(), Definition::getOuterScope(), NamespaceDef::getUsedNamespaces(), SDict< NamespaceDef >::Iterator, Definition::name(), and QCString.
Referenced by isAccessibleFrom(), and isAccessibleFromWithExpScope().
void addGroupListToTitle | ( | OutputList & | ol, | |
Definition * | d | |||
) |
Definition at line 5699 of file util.cpp.
References OutputList::disableAllBut(), OutputList::docify(), OutputList::endSmall(), GroupDef::getOutputFileBase(), Definition::getReference(), GroupDef::groupTitle(), OutputGenerator::Html, OutputList::lineBreak(), Definition::partOfGroups(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputList::startSmall(), OutputList::writeNonBreakableSpace(), and OutputList::writeObjectLink().
Referenced by NamespaceDef::writeDocumentation(), GroupDef::writeDocumentation(), FileDef::writeDocumentation(), and ClassDef::writeDocumentation().
void addMembersToMemberGroup | ( | MemberList * | ml, | |
MemberGroupSDict ** | ppMemberGroupSDict, | |||
Definition * | context | |||
) |
Definition at line 5159 of file util.cpp.
References addMembersToMemberGroup(), MemberGroupInfo::doc, MemberGroupInfo::docFile, MemberDef::enumFieldList(), MemberDef::getMemberGroupId(), MemberGroupInfo::header, MemberGroup::insertMember(), MemberDef::isEnumerate(), Doxygen::memGrpInfoDict, SIntDict< T >::setAutoDelete(), and MemberDef::setMemberGroup().
Referenced by addMembersToMemberGroup().
void addRefItem | ( | const QList< ListItemInfo > * | sli, | |
const char * | prefix, | |||
const char * | name, | |||
const char * | title, | |||
const char * | args | |||
) |
Definition at line 5651 of file util.cpp.
References addRelatedPage(), Config_getBool, ListItemInfo::itemId, RefItem::listAnchor, QCString, RefItem::text, ListItemInfo::type, RefItem::written, and Doxygen::xrefLists.
Referenced by MemberDef::addListReference(), NamespaceDef::addListReferences(), GroupDef::addListReferences(), FileDef::addListReferences(), and ClassDef::addListReferences().
PageDef* addRelatedPage | ( | const char * | name, | |
const QCString & | ptitle, | |||
const QCString & | doc, | |||
QList< SectionInfo > * | , | |||
const char * | fileName, | |||
int | startLine, | |||
const QList< ListItemInfo > * | sli, | |||
GroupDef * | gd, | |||
TagInfo * | tagInfo | |||
) |
Definition at line 5571 of file util.cpp.
References GroupDef::addPage(), addRelatedPage(), SDict< T >::append(), Config_getBool, Doxygen::htmlFileExtension, Definition::name(), SectionInfo::Page, Doxygen::pageSDict, QCString, Doxygen::sectionDict, Definition::setDocumentation(), PageDef::setFileName(), Definition::setReference(), Definition::setRefItems(), and TagInfo::tagName.
Referenced by addRefItem(), and addRelatedPage().
QCString argListToString | ( | ArgumentList * | al, | |
bool | useCanonicalType | |||
) |
Definition at line 1850 of file util.cpp.
References Argument::array, Argument::attrib, Argument::canType, ArgumentList::constSpecifier, Argument::defval, Argument::name, QCString, removeRedundantWhiteSpace(), Argument::type, and ArgumentList::volatileSpecifier.
bool checkIfTypedef | ( | Definition * | scope, | |
FileDef * | fileScope, | |||
const char * | n | |||
) |
Returns true iff the given name string appears to be a typedef in scope.
Definition at line 6315 of file util.cpp.
References computeQualifiedIndex(), DefinitionIntf::definitionType(), Doxygen::globalScope, isAccessibleFromWithExpScope(), MemberDef::isTypedef(), QCString, replaceNamespaceAliases(), Doxygen::symbolMap, DefinitionIntf::TypeClass, DefinitionIntf::TypeMember, DefinitionIntf::TypeNamespace, and DefinitionIntf::TypeSymbolList.
int computeQualifiedIndex | ( | const QCString & | name | ) |
Definition at line 1076 of file util.cpp.
Referenced by checkIfTypedef(), and getResolvedClassRec().
bool containsWord | ( | const QCString & | s, | |
const QCString & | word | |||
) |
QCString convertCharEntitiesToUTF8 | ( | const QCString & | s | ) |
Definition at line 5051 of file util.cpp.
References QCString.
Referenced by LatexDocVisitor::visitPre(), and HtmlDocVisitor::visitPre().
QCString convertNameToFile | ( | const char * | name, | |
bool | allowDots | |||
) |
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.
Definition at line 4662 of file util.cpp.
References Config_getBool, escapeCharsInString(), Doxygen::htmlDirMap, and QCString.
Referenced by Definition::convertNameToFile(), DotInclDepGraph::diskName(), parseFortranCode(), parseVhdlCode(), DotGroupCollaboration::writeGraph(), DotInclDepGraph::writeGraph(), DotClassGraph::writeGraph(), and DotGfxHierarchyTable::writeGraph().
QCString convertToHtml | ( | const char * | s, | |
bool | keepEntities | |||
) |
Converts a string to a HTML-encoded string
Definition at line 5007 of file util.cpp.
References isId(), and QCString.
Referenced by HtmlGenerator::startFile(), writeDirTreeNode(), writeGroupIndexItem(), and writeGroupTreeNode().
QCString convertToXML | ( | const char * | s | ) |
Converts a string to an XML-encoded string
Definition at line 4985 of file util.cpp.
References convertToXML(), and QCString.
Referenced by DocSets::addContentsItem(), convertToXML(), XmlDocVisitor::visitPre(), ClassDef::writeClassDiagrams(), HtmlGenerator::writeCodeLink(), NamespaceSDict::writeDeclaration(), MemberDef::writeDeclaration(), ClassSDict::writeDeclaration(), PageDef::writeDocumentation(), NamespaceDef::writeDocumentation(), GroupDef::writeDocumentation(), FileDef::writeDocumentation(), DirDef::writeDocumentation(), ClassDef::writeDocumentation(), MemberDef::writeEnumDeclaration(), writeIndex(), VhdlDocGen::writeVHDLDeclaration(), DotNode::writeXML(), writeXMLLink(), and writeXMLString().
ArgumentList* copyArgumentList | ( | const ArgumentList * | src | ) |
Makes a deep copy of argument list src. Will allocate memory, that is owned by the caller.
Definition at line 5388 of file util.cpp.
References ArgumentList::constSpecifier, ArgumentList::pureSpecifier, and ArgumentList::volatileSpecifier.
Referenced by copyArgumentLists().
QList<ArgumentList>* copyArgumentLists | ( | const QList< ArgumentList > * | srcLists | ) |
Makes a deep copy of the list of argument lists srcLists. Will allocate memory, that is owned by the caller.
Definition at line 5408 of file util.cpp.
References copyArgumentList().
Referenced by Entry::Entry(), and MemberDef::setDefinitionTemplateParameterLists().
int countAliasArguments | ( | const QCString | argList | ) |
void createSubDirs | ( | QDir & | d | ) |
Definition at line 4766 of file util.cpp.
References Config_getBool.
Referenced by generateXML(), RTFGenerator::init(), ManGenerator::init(), LatexGenerator::init(), HtmlGenerator::init(), NamespaceDef::writeQuickMemberLinks(), GroupDef::writeQuickMemberLinks(), FileDef::writeQuickMemberLinks(), and ClassDef::writeQuickMemberLinks().
QCString dateToString | ( | bool | includeTime | ) |
Definition at line 2194 of file util.cpp.
References convertToQCString(), and QCString.
Referenced by ManGenerator::endTitleHead(), generateOutput(), substituteKeywords(), and LatexGenerator::writeStyleSheetFile().
QCString escapeCharsInString | ( | const char * | name, | |
bool | allowDots | |||
) |
Definition at line 4610 of file util.cpp.
References Config_getBool, and QCString.
Referenced by convertNameToFile(), and setAnchors().
QCString expandAlias | ( | const QCString & | aliasName, | |
const QCString & | aliasValue | |||
) |
QCString expandAliasRec | ( | const QCString | s | ) |
Definition at line 6416 of file util.cpp.
References Doxygen::aliasDict, countAliasArguments(), extractAliasArgs(), QCString, and replaceAliasArguments().
Referenced by expandAlias(), and resolveAliasCmd().
QCString extractAliasArgs | ( | const QCString & | args, | |
int | pos | |||
) |
int extractClassNameFromType | ( | const QCString & | type, | |
int & | pos, | |||
QCString & | name, | |||
QCString & | templSpec | |||
) |
void extractNamespaceName | ( | const QCString & | scopeName, | |
QCString & | className, | |||
QCString & | namespaceName, | |||
bool | allowEmptyClass | |||
) |
Input is a scopeName, output is the scopename split into a namespace part (as large as possible) and a classname part.
Definition at line 4786 of file util.cpp.
References getClass(), getResolvedNamespace(), Definition::name(), and QCString.
Referenced by ClassDefImpl::init(), and writeAlphabeticalClassList().
QCString fileToString | ( | const char * | name, | |
bool | filter | |||
) |
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.
Definition at line 2101 of file util.cpp.
References err(), Debug::ExtCmd, filterCRLF(), getFileFilter(), portable_pclose(), portable_popen(), Debug::print(), QCString, and transcodeCharacterStringToUTF8().
Referenced by FormulaList::generateBitmaps(), HtmlGenerator::init(), FileDef::parseSource(), LatexGenerator::startIndexSection(), FileDef::writeSource(), HtmlGenerator::writeStyleInfo(), and writeXMLCodeBlock().
int filterCRLF | ( | char * | buf, | |
int | len | |||
) |
takes the buf of the given lenght len and converts CR LF (DOS) or CR (MAC) line ending to LF (Unix). Returns the length of the converted content (i.e. the same as len (Unix, MAC) or smaller (DOS).
Definition at line 1952 of file util.cpp.
Referenced by copyAndFilterFile(), and fileToString().
void filterLatexString | ( | QTextStream & | t, | |
const char * | str, | |||
bool | insideTabbing, | |||
bool | insidePre, | |||
bool | insideItem | |||
) |
Definition at line 5915 of file util.cpp.
References Config_getBool, Translator::idLanguage(), Translator::idLanguageCharset(), and theTranslator.
Referenced by LatexGenerator::docify().
bool findAndRemoveWord | ( | QCString & | s, | |
const QCString & | word | |||
) |
FileDef* findFileDef | ( | const FileNameDict * | fnDict, | |
const char * | n, | |||
bool & | ambig | |||
) |
Definition at line 4416 of file util.cpp.
References convertToQCString(), FindFileCacheElem::fileDef, FileDef::getPath(), FindFileCacheElem::isAmbig, QCString, and stripFromIncludePath().
Referenced by generateFileRef(), getDefs(), DocDotFile::parse(), resolveLink(), resolveRef(), and ClassDef::showUsedFiles().
void generateFileRef | ( | OutputDocInterface & | od, | |
const char * | name, | |||
const char * | text | |||
) |
Definition at line 4343 of file util.cpp.
References BaseOutputDocInterface::docify(), findFileDef(), FileDef::getOutputFileBase(), Definition::getReference(), Doxygen::inputNameDict, FileDef::isLinkable(), QCString, and BaseOutputDocInterface::writeObjectLink().
bool generateLink | ( | OutputDocInterface & | od, | |
const char * | clName, | |||
const char * | lr, | |||
bool | inSeeBlock, | |||
const char * | lt | |||
) |
Definition at line 4301 of file util.cpp.
References BaseOutputDocInterface::docify(), err(), generateLink(), linkToText(), QCString, resolveLink(), DefinitionIntf::TypeFile, DefinitionIntf::TypeGroup, BaseOutputDocInterface::writeObjectLink(), and writePageRef().
Referenced by generateLink().
QCString generateMarker | ( | int | id | ) |
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.
Definition at line 241 of file util.cpp.
References QCString.
Referenced by TranslatorAfrikaans::trWriteList(), TranslatorUkrainian::trWriteList(), TranslatorChinesetraditional::trWriteList(), TranslatorSerbian::trWriteList(), TranslatorSlovak::trWriteList(), TranslatorSlovene::trWriteList(), TranslatorSwedish::trWriteList(), TranslatorRussian::trWriteList(), TranslatorRomanian::trWriteList(), TranslatorPortuguese::trWriteList(), TranslatorPolish::trWriteList(), TranslatorNorwegian::trWriteList(), TranslatorDutch::trWriteList(), TranslatorMacedonian::trWriteList(), TranslatorLithuanian::trWriteList(), TranslatorKorean::trWriteList(), TranslatorJapanese::trWriteList(), TranslatorItalian::trWriteList(), TranslatorIndonesian::trWriteList(), TranslatorHungarian::trWriteList(), TranslatorCroatian::trWriteList(), TranslatorGreek::trWriteList(), TranslatorFrench::trWriteList(), TranslatorFinnish::trWriteList(), TranslatorPersian::trWriteList(), TranslatorSpanish::trWriteList(), TranslatorEnglish::trWriteList(), TranslatorDanish::trWriteList(), TranslatorGerman::trWriteList(), TranslatorCzech::trWriteList(), TranslatorChinese::trWriteList(), TranslatorCatalan::trWriteList(), TranslatorBrazilian::trWriteList(), and TranslatorArabic::trWriteList().
bool generateRef | ( | OutputDocInterface & | od, | |
const char * | scName, | |||
const char * | name, | |||
bool | inSeeBlock, | |||
const char * | rt | |||
) |
generate a reference to a class, namespace or member. `scName' is the name of the scope that contains the documentation string that is returned. `name' is the name that we want to link to. `name' may have five formats: 1) "ScopeName" 2) "memberName()" one of the (overloaded) function or define with name memberName. 3) "memberName(...)" a specific (overloaded) function or define with name memberName 4) "name a global variable or define 4) "#memberName member variable, global variable or define 5) ("ScopeName::")+"memberName()" 6) ("ScopeName::")+"memberName(...)" 7) ("ScopeName::")+"memberName" instead of :: the # symbol may also be used.
Definition at line 4160 of file util.cpp.
References MemberDef::anchor, DefinitionIntf::definitionType(), BaseOutputDocInterface::docify(), MemberDef::getOutputFileBase(), Definition::getOutputFileBase(), MemberDef::getReference(), Definition::getReference(), MemberDef::isLinkable(), Definition::isLinkable(), Definition::isReference(), linkToText(), QCString, resolveRef(), DefinitionIntf::TypeFile, DefinitionIntf::TypeGroup, BaseOutputDocInterface::writeObjectLink(), and writePageRef().
QCString getCanonicalTemplateSpec | ( | Definition * | d, | |
FileDef * | fs, | |||
const QCString & | spec | |||
) |
ClassDef* getClass | ( | const char * | name | ) |
Get a class definition given its name. Returns 0 if the class is not found.
Definition at line 437 of file util.cpp.
References Doxygen::classSDict, and SDict< T >::find().
Referenced by extractNamespaceName(), MemberDef::getClassDefOfAnonymousType(), getTemplateArgumentsFromName(), insertTemplateSpecifierInScope(), MemberDef::isDocumentedFriendClass(), linkifyText(), resolveLink(), stripTemplateSpecifiersFromScope(), and MemberDef::writeDeclaration().
bool getDefs | ( | const QCString & | scName, | |
const QCString & | memberName, | |||
const char * | args, | |||
MemberDef *& | md, | |||
ClassDef *& | cd, | |||
FileDef *& | fd, | |||
NamespaceDef *& | nd, | |||
GroupDef *& | gd, | |||
bool | forceEmptyScope, | |||
FileDef * | currentFile, | |||
bool | checkCV | |||
) |
Searches for a member definition given its name `memberName' as a string. memberName may also include a (partial) scope to indicate the scope in which the member is located.
The parameter `scName' is a string representing the name of the scope in which the link was found.
In case of a function args contains a string representation of the argument list. Passing 0 means the member has no arguments. Passing "()" means any argument list will do, but "()" is preferred.
The function returns TRUE if the member is known and documented or FALSE if it is not. If TRUE is returned parameter `md' contains a pointer to the member definition. Furthermore exactly one of the parameter `cd', `nd', or `fd' will be non-zero:
Definition at line 3513 of file util.cpp.
References MemberDef::argumentList(), Config_getBool, SDict< T >::find(), findFileDef(), found, Doxygen::functionNameSDict, Definition::getBodyDef(), MemberDef::getClassDef(), MemberDef::getFileDef(), ClassDef::getFileDef(), MemberDef::getGroupDef(), MemberDef::getNamespaceDef(), Definition::getOuterScope(), getResolvedClass(), Doxygen::globalScope, Doxygen::inputNameDict, MemberDef::isDefine(), ClassDef::isLinkable(), MemberDef::isLinkable(), NamespaceDef::isLinkable(), GroupDef::isLinkable(), FileDef::isLinkable(), MemberDef::isRelated(), MemberDef::isStatic(), matchArguments2(), maxInheritanceDepth, Doxygen::memberNameSDict, minClassDistance(), ClassDef::name, Doxygen::namespaceSDict, LockingPtr< T >::pointer(), QCString, and stringToArgumentList().
Referenced by linkifyText(), and resolveRef().
QCString getFileFilter | ( | const char * | name | ) |
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.
Definition at line 1980 of file util.cpp.
References Config_getList, Config_getString, portable_fileSystemIsCaseSensitive(), and QCString.
Referenced by copyAndFilterFile(), fileToString(), and preprocessFile().
SrcLangExt getLanguageFromFileName | ( | const QCString | fileName | ) |
Definition at line 6267 of file util.cpp.
References QCString, SrcLangExt_Cpp, SrcLangExt_CSharp, SrcLangExt_D, SrcLangExt_F90, SrcLangExt_IDL, SrcLangExt_Java, SrcLangExt_JS, SrcLangExt_ObjC, SrcLangExt_PHP, SrcLangExt_Python, and SrcLangExt_VHDL.
Referenced by DocSets::addIndexItem(), MemberDef::isConstructor(), and MemberDef::isDestructor().
QCString getOverloadDocs | ( | ) |
Returns the standard string that is generated when the \overload command is used.
Definition at line 5151 of file util.cpp.
References theTranslator, and Translator::trOverloadText().
int getPrefixIndex | ( | const QCString & | name | ) |
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
Definition at line 4541 of file util.cpp.
References Config_getList.
Referenced by addClassMemberNameToIndex(), addFileMemberNameToIndex(), addNamespaceMemberNameToIndex(), MemberNameSDict::compareItems(), PrefixIgnoreClassList::compareItems(), writeAlphabeticalClassList(), and writeAnnotatedClassList().
ClassDef* getResolvedClass | ( | Definition * | scope, | |
FileDef * | fileScope, | |||
const char * | n, | |||
MemberDef ** | pTypeDef, | |||
QCString * | pTemplSpec, | |||
bool | mayBeUnlinkable, | |||
bool | mayBeHidden, | |||
QCString * | pResolvedType | |||
) |
Definition at line 1410 of file util.cpp.
References DefinitionIntf::definitionType(), getResolvedClassRec(), Doxygen::globalScope, Definition::isHidden(), FileDef::isJava(), ClassDef::isLinkable(), QCString, DefinitionIntf::TypeClass, and DefinitionIntf::TypeNamespace.
Referenced by PyVariableContext::addVariable(), VariableContext::addVariable(), getDefs(), and linkifyText().
ClassDef * getResolvedClassRec | ( | Definition * | scope, | |
FileDef * | fileScope, | |||
const char * | n, | |||
MemberDef ** | pTypeDef, | |||
QCString * | pTemplSpec, | |||
QCString * | pResolvedType | |||
) |
Definition at line 1242 of file util.cpp.
References FileDef::absFilePath(), LookupInfo::classDef, computeQualifiedIndex(), SDict< T >::count(), DefinitionIntf::definitionType(), FileDef::getUsedClasses(), FileDef::getUsedNamespaces(), Doxygen::lookupCache, Definition::name(), QCString, replaceNamespaceAliases(), LookupInfo::resolvedType, Doxygen::symbolMap, LookupInfo::templSpec, LookupInfo::typeDef, and DefinitionIntf::TypeSymbolList.
Referenced by getResolvedClass(), and newResolveTypedef().
NamespaceDef* getResolvedNamespace | ( | const char * | name | ) |
Definition at line 443 of file util.cpp.
References SDict< T >::find(), Doxygen::namespaceAliasDict, Doxygen::namespaceSDict, QCString, and warn_cont().
Referenced by extractNamespaceName(), and writeAlphabeticalClassList().
int getScopeFragment | ( | const QCString & | s, | |
int | p, | |||
int * | l | |||
) |
Returns a fragment from scope s, starting at position p.
s | the scope name as a string. | |
p | the start position (0 is the first). | |
l | the resulting length of the fragment. |
Definition at line 5524 of file util.cpp.
References found.
Referenced by resolveTypeDef(), and stripAnonymousNamespaceScope().
int guessSection | ( | const char * | name | ) |
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 :-)
Definition at line 289 of file util.cpp.
References Entry::HEADER_SEC, QCString, and Entry::SOURCE_SEC.
Referenced by TagFileParser::buildLists(), FileDef::generateSourceFile(), and ClassDefImpl::init().
bool hasVisibleRoot | ( | BaseClassList * | bcl | ) |
Definition at line 4593 of file util.cpp.
References ClassDef::baseClasses(), hasVisibleRoot(), and ClassDef::isVisibleInHierarchy().
Referenced by hasVisibleRoot(), and writeClassTree().
void initClassHierarchy | ( | ClassSDict * | cl | ) |
Definition at line 4580 of file util.cpp.
References ClassDef::baseClasses(), SDict< ClassDef >::Iterator, and ClassDef::visited.
Referenced by countClassHierarchy(), DotGfxHierarchyTable::DotGfxHierarchyTable(), and writeClassHierarchy().
QCString insertTemplateSpecifierInScope | ( | const QCString & | scope, | |
const QCString & | templ | |||
) |
Definition at line 4831 of file util.cpp.
References getClass(), QCString, and ClassDef::templateArguments().
Referenced by DiagramItem::label().
int isAccessibleFrom | ( | Definition * | scope, | |
FileDef * | fileScope, | |||
Definition * | item | |||
) |
Definition at line 820 of file util.cpp.
References accessibleViaUsingClass(), accessibleViaUsingNamespace(), DefinitionIntf::definitionType(), MemberDef::definitionType(), Definition::getOuterScope(), Doxygen::globalScope, isAccessibleFrom(), QCString, DefinitionIntf::TypeClass, DefinitionIntf::TypeMember, and DefinitionIntf::TypeNamespace.
Referenced by isAccessibleFrom(), and isAccessibleFromWithExpScope().
int isAccessibleFromWithExpScope | ( | Definition * | scope, | |
FileDef * | fileScope, | |||
Definition * | item, | |||
const QCString & | explicitScopePart | |||
) |
Definition at line 923 of file util.cpp.
References accessibleViaUsingNamespace(), DefinitionIntf::definitionType(), Definition::getOuterScope(), NamespaceDef::getUsedClasses(), NamespaceDef::getUsedNamespaces(), Doxygen::globalScope, isAccessibleFrom(), SDict< NamespaceDef >::Iterator, Definition::name(), QCString, DefinitionIntf::TypeClass, and DefinitionIntf::TypeNamespace.
Referenced by checkIfTypedef().
bool isId | ( | int | c | ) |
Definition at line 119 of file util.cpp.
Referenced by convertToHtml(), MemberDef::getClassDefOfAnonymousType(), removeIdsAndMarkers(), removeRedundantWhiteSpace(), tempArgListToString(), and MemberDef::writeDocumentation().
bool leftScopeMatch | ( | const QCString & | scope, | |
const QCString & | name | |||
) |
void linkifyText | ( | const TextGeneratorIntf & | out, | |
Definition * | scope, | |||
FileDef * | fileScope, | |||
const char * | , | |||
const char * | text, | |||
bool | autoBreak, | |||
bool | external, | |||
bool | keepSpaces | |||
) |
Definition at line 1650 of file util.cpp.
References MemberDef::anchor, DefinitionIntf::definitionType(), found, getClass(), getDefs(), ClassDef::getOutputFileBase(), MemberDef::getOutputFileBase(), ClassDef::getReference(), MemberDef::getReference(), getResolvedClass(), MemberDef::isEnumerate(), ClassDef::isLinkable(), MemberDef::isLinkable(), ClassDef::isLinkableInProject(), MemberDef::isLinkableInProject(), Definition::isReference(), MemberDef::isTypedef(), MemberDef::isVariable(), Definition::name(), QCString, substitute(), DefinitionIntf::TypeClass, DefinitionIntf::TypeNamespace, TextGeneratorIntf::writeBreak(), TextGeneratorIntf::writeLink(), and TextGeneratorIntf::writeString().
Referenced by MemberDef::writeDeclaration(), MemberDef::writeDocumentation(), and writeTypeConstraints().
QCString linkToText | ( | const char * | link, | |
bool | isFileName | |||
) |
Definition at line 4118 of file util.cpp.
References Config_getBool, QCString, and substitute().
Referenced by DotCallGraph::buildGraph(), DocRef::DocRef(), DotCallGraph::DotCallGraph(), generateLink(), and generateRef().
bool matchArguments2 | ( | Definition * | srcScope, | |
FileDef * | srcFileScope, | |||
ArgumentList * | srcAl, | |||
Definition * | dstScope, | |||
FileDef * | dstFileScope, | |||
ArgumentList * | dstAl, | |||
bool | checkCV | |||
) |
Definition at line 3279 of file util.cpp.
References ArgumentList::constSpecifier, MATCH, NOMATCH, and ArgumentList::volatileSpecifier.
Referenced by getDefs(), GroupDef::insertMember(), and ClassDef::mergeMembers().
void mergeArguments | ( | ArgumentList * | srcAl, | |
ArgumentList * | dstAl, | |||
bool | forceNameOverwrite | |||
) |
Definition at line 3363 of file util.cpp.
References Argument::defval, Argument::docs, Argument::name, and Argument::type.
QCString mergeScopes | ( | const QCString & | leftScope, | |
const QCString & | rightScope | |||
) |
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
leftScope | the left hand part of the scope. | |
rightScope | the right hand part of the scope. |
Definition at line 5489 of file util.cpp.
References found, leftScopeMatch(), and QCString.
Definition at line 2230 of file util.cpp.
References ClassDef::baseClasses(), ClassDef::categoryOf(), err(), maxInheritanceDepth, minClassDistance(), and ClassDef::name.
Referenced by getDefs(), ClassDef::getMemberByName(), and minClassDistance().
ClassDef* newResolveTypedef | ( | FileDef * | fileScope, | |
MemberDef * | md, | |||
MemberDef ** | pMemType, | |||
QCString * | pTemplSpec, | |||
QCString * | pResolvedType | |||
) |
Returns the class representing the value of the typedef represented by md within file fileScope.
Example: typedef A T; will return the class representing A if it is a class.
Example: typedef int T; will return 0, since "int" is not a class.
Definition at line 489 of file util.cpp.
References MemberDef::cacheTypedefVal(), MemberDef::getCachedResolvedTypedef(), MemberDef::getCachedTypedefTemplSpec(), MemberDef::getCachedTypedefVal(), Definition::getDefFileName(), Definition::getOuterScope(), getResolvedClassRec(), MemberDef::isTypedefValCached(), newResolveTypedef(), QCString, MemberDef::qualifiedName(), stripTemplateSpecifiersFromScope(), and MemberDef::typeString().
Referenced by newResolveTypedef().
QCString parseCommentAsText | ( | const QString & | doc, | |
const QCString & | fileName, | |||
int | lineNr | |||
) |
Definition at line 6384 of file util.cpp.
References DocNode::accept(), Doxygen::globalScope, and validatingParseDoc().
Referenced by Definition::briefDescriptionAsTooltip().
QCString recodeString | ( | const QCString & | str, | |
const char * | fromEncoding, | |||
const char * | toEncoding | |||
) |
Definition at line 2023 of file util.cpp.
References err(), portable_iconv(), portable_iconv_close(), portable_iconv_open(), and QCString.
QCString relativePathToRoot | ( | const char * | name | ) |
Definition at line 4744 of file util.cpp.
References Config_getBool, QCString, and REL_PATH_TO_ROOT.
Referenced by LatexGenerator::startFile(), HtmlGenerator::startFile(), validatingParseDoc(), and HtmlGenerator::writeHeaderFile().
QCString removeAnonymousScopes | ( | const QCString & | s | ) |
Removes all anoymous 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"
Definition at line 140 of file util.cpp.
References QCString.
Referenced by MemberDef::writeDeclaration().
QCString removeRedundantWhiteSpace | ( | const QCString & | s | ) |
Definition at line 1485 of file util.cpp.
References Config_getBool, isId(), and QCString.
Referenced by argListToString(), MemberDefImpl::init(), parseFuncDecl(), resolveRef(), and tempArgListToString().
QCString replaceAliasArguments | ( | const QCString & | aliasValue, | |
const QCString & | argList | |||
) |
QCString replaceAnonymousScopes | ( | const QCString & | s, | |
const char * | replacement | |||
) |
void replaceNamespaceAliases | ( | QCString & | scope, | |
int | i | |||
) |
Definition at line 6151 of file util.cpp.
References Doxygen::namespaceAliasDict, and QCString.
Referenced by checkIfTypedef(), and getResolvedClassRec().
QCString resolveAliasCmd | ( | const QCString | aliasCmd | ) |
bool resolveLink | ( | const char * | scName, | |
const char * | lr, | |||
bool | inSeeBlock, | |||
Definition ** | resContext, | |||
QCString & | resAnchor | |||
) |
Definition at line 4209 of file util.cpp.
References MemberDef::anchor, Doxygen::directories, Doxygen::exampleSDict, findFileDef(), getClass(), PageDef::getGroupDef(), Doxygen::groupSDict, Doxygen::inputNameDict, FileDef::isLinkable(), DirDef::isLinkable(), SectionInfo::label, Definition::name(), Doxygen::namespaceSDict, Doxygen::pageSDict, QCString, resolveRef(), and Doxygen::sectionDict.
Referenced by DocLink::DocLink(), DocRef::DocRef(), and generateLink().
bool resolveRef | ( | const char * | scName, | |
const char * | name, | |||
bool | inSeeBlock, | |||
Definition ** | resContext, | |||
MemberDef ** | resMember | |||
) |
Returns an object to reference to given its name and context
Definition at line 3997 of file util.cpp.
References SDict< T >::find(), findFileDef(), getDefs(), Doxygen::groupSDict, Doxygen::inputNameDict, QCString, removeRedundantWhiteSpace(), and substitute().
Referenced by generateRef(), and resolveLink().
QCString resolveTypeDef | ( | Definition * | context, | |
const QCString & | qualifiedName, | |||
Definition ** | typedefContext | |||
) |
Definition at line 316 of file util.cpp.
References MemberDef::argsString(), DefinitionIntf::definitionType(), SDict< T >::find(), Definition::findInnerCompound(), Doxygen::functionNameSDict, Definition::getOuterScope(), getScopeFragment(), MemberDef::isTypedef(), Doxygen::memberNameSDict, QCString, resolveTypeDef(), DefinitionIntf::TypeClass, and MemberDef::typeString().
Referenced by getCanonicalTemplateSpec(), and resolveTypeDef().
bool rightScopeMatch | ( | const QCString & | scope, | |
const QCString & | name | |||
) |
QCString rtfFormatBmkStr | ( | const char * | name | ) |
Definition at line 6100 of file util.cpp.
References QCString.
Referenced by RTFGenerator::endDoxyAnchor(), RTFGenerator::startTextLink(), RTFDocVisitor::visit(), RTFGenerator::writeAnchor(), RTFGenerator::writeCodeLink(), RTFGenerator::writeObjectLink(), and RTFGenerator::writeStartAnnoItem().
void setAnchors | ( | ClassDef * | cd, | |
char | id, | |||
MemberList * | ml, | |||
int | groupId | |||
) |
Definition at line 1922 of file util.cpp.
References escapeCharsInString(), Definition::isReference(), ClassDef::name, QCString, and MemberDef::setAnchor().
Referenced by NamespaceDef::computeAnchors(), GroupDef::computeAnchors(), FileDef::computeAnchors(), and ClassDef::computeAnchors().
QCString showFileDefMatches | ( | const FileNameDict * | fnDict, | |
const char * | n | |||
) |
Definition at line 4492 of file util.cpp.
References FileDef::absFilePath(), FileDef::getPath(), and QCString.
Referenced by DocDotFile::parse().
void stringToSearchIndex | ( | const QCString & | docBaseUrl, | |
const QCString & | title, | |||
const QCString & | str, | |||
bool | priority, | |||
const QCString & | anchor | |||
) |
Definition at line 6250 of file util.cpp.
References SearchIndex::addWord(), Config_getBool, Doxygen::searchIndex, and SearchIndex::setCurrentDoc().
Referenced by PageDef::writeDocumentation().
QCString stripAnonymousNamespaceScope | ( | const QCString & | s | ) |
Definition at line 194 of file util.cpp.
References getScopeFragment(), Doxygen::namespaceSDict, and QCString.
Referenced by VhdlDocGen::computeVhdlComponentRelations(), and MemberDef::getClassDefOfAnonymousType().
QCString stripExtension | ( | const char * | fName | ) |
Definition at line 6140 of file util.cpp.
References Doxygen::htmlFileExtension, and QCString.
Referenced by GroupDef::GroupDef(), ClassDefImpl::init(), NamespaceDef::NamespaceDef(), and MemberDef::setTagInfo().
QCString stripFromIncludePath | ( | const QCString & | path | ) |
strip part of path if it matches one of the paths in the Config_getList("INCLUDE_PATH") list
Definition at line 280 of file util.cpp.
References Config_getList.
Referenced by findFileDef().
QCString stripFromPath | ( | const QCString & | path | ) |
strip part of path if it matches one of the paths in the Config_getList("STRIP_FROM_PATH") list
Definition at line 272 of file util.cpp.
References Config_getList.
Referenced by Config::check(), DirDef::DirDef(), FileDef::FileDef(), ClassDef::showUsedFiles(), and writeFileIndex().
void stripIrrelevantConstVolatile | ( | QCString & | s | ) |
According to the C++ spec and Ivan Vecerina:
Parameter declarations that differ only in the presence or absence of const and/or volatile are equivalent.
So the following example, show what is stripped by this routine for const. The same is done for volatile.
const T param -> T param // not relevant const T& param -> const T& param // const needed T* const param -> T* param // not relevant const T* param -> const T* param // const needed
QCString stripLeadingAndTrailingEmptyLines | ( | const QCString & | s | ) |
QCString stripPath | ( | const char * | s | ) |
Definition at line 6167 of file util.cpp.
References QCString, and stripPath().
Referenced by LatexGenerator::startDoxyAnchor(), LatexGenerator::startSection(), LatexGenerator::startTextLink(), LatexGenerator::startTitleHead(), stripPath(), LatexDocVisitor::visitPre(), LatexGenerator::writeAnchor(), and LatexGenerator::writeObjectLink().
QCString stripScope | ( | const char * | name | ) |
Definition at line 4909 of file util.cpp.
References QCString.
Referenced by DefinitionImpl::init(), DiagramItem::label(), and Definition::setName().
QCString stripTemplateSpecifiersFromScope | ( | const QCString & | fullName, | |
bool | parentOnly, | |||
QCString * | pLastScopeStripped | |||
) |
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.
Definition at line 5429 of file util.cpp.
References getClass(), and QCString.
Referenced by newResolveTypedef(), and parseFuncDecl().
QCString substitute | ( | const char * | s, | |
const char * | src, | |||
const char * | dst | |||
) |
Definition at line 4389 of file util.cpp.
References QCString.
Referenced by NamespaceDef::displayName(), ClassDef::displayName(), VhdlDocGen::getClassName(), linkifyText(), linkToText(), resolveRef(), substituteKeywords(), validatingParseDoc(), writeAlphabeticalClassList(), and writeIndex().
QCString substituteKeywords | ( | const QCString & | s, | |
const char * | title, | |||
const QCString & | relPath | |||
) |
Definition at line 4521 of file util.cpp.
References Config_getString, dateToString(), QCString, substitute(), versionString, and yearToString().
Referenced by HtmlGenerator::startFile(), LatexGenerator::startIndexSection(), and HtmlGenerator::writeSearchPage().
QCString substituteTemplateArgumentsInString | ( | const QCString & | name, | |
ArgumentList * | formalArgs, | |||
ArgumentList * | actualArgs | |||
) |
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.
Definition at line 5312 of file util.cpp.
References Argument::defval, found, Argument::name, QCString, substituteTemplateArgumentsInString(), and Argument::type.
Referenced by MemberDef::createTemplateInstanceMember(), and substituteTemplateArgumentsInString().
QCString tempArgListToString | ( | ArgumentList * | al | ) |
Definition at line 1892 of file util.cpp.
References isId(), Argument::name, QCString, removeRedundantWhiteSpace(), and Argument::type.
Referenced by ClassDef::qualifiedNameWithTemplateParameters().
QCString transcodeCharacterStringToUTF8 | ( | const QCString & | input | ) |
Definition at line 2061 of file util.cpp.
References Config_getString, err(), portable_iconv(), portable_iconv_close(), portable_iconv_open(), and QCString.
Referenced by fileToString().
void trimBaseClassScope | ( | BaseClassList * | bcl, | |
QCString & | s, | |||
int | level = 0 | |||
) |
Definition at line 2431 of file util.cpp.
References ClassDef::baseClasses(), BaseClassDef::classDef, and ClassDef::name.
void writeExample | ( | OutputList & | ol, | |
ExampleSDict * | ed | |||
) |
Definition at line 1806 of file util.cpp.
References Example::anchor, SDict< T >::at(), SDict< T >::count(), OutputList::disable(), Example::file, OutputGenerator::Html, OutputGenerator::Latex, OutputGenerator::Man, Example::name, OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), QCString, OutputGenerator::RTF, theTranslator, Translator::trWriteList(), OutputList::writeObjectLink(), and OutputList::writeString().
Referenced by ClassDef::writeDetailedDescription(), and MemberDef::writeDocumentation().
void writePageRef | ( | OutputDocInterface & | od, | |
const char * | cn, | |||
const char * | mn | |||
) |
Definition at line 222 of file util.cpp.
References Config_getBool, OutputDocInterface::disable(), BaseOutputDocInterface::docify(), BaseOutputDocInterface::endPageRef(), OutputGenerator::Html, OutputGenerator::Latex, OutputGenerator::Man, OutputDocInterface::popGeneratorState(), OutputDocInterface::pushGeneratorState(), OutputGenerator::RTF, BaseOutputDocInterface::startPageRef(), theTranslator, and Translator::trPageAbbreviation().
Referenced by generateLink(), generateRef(), and MemberDef::writeDocumentation().
void writeTypeConstraints | ( | OutputList & | ol, | |
Definition * | d, | |||
ArgumentList * | al | |||
) |
Definition at line 6575 of file util.cpp.
References Definition::docFile(), Definition::docLine(), Argument::docs, OutputList::endConstraintDocs(), OutputList::endConstraintList(), OutputList::endConstraintParam(), OutputList::endConstraintType(), linkifyText(), Argument::name, OutputList::parseDoc(), OutputList::parseText(), OutputList::startConstraintDocs(), OutputList::startConstraintList(), OutputList::startConstraintParam(), OutputList::startConstraintType(), theTranslator, Translator::trTypeConstraints(), and Argument::type.
Referenced by ClassDef::writeDetailedDescription(), and MemberDef::writeDocumentation().
QCString yearToString | ( | ) |
const int maxInheritanceDepth = 100000 |
Definition at line 117 of file util.cpp.
Referenced by getDefs(), ClassDef::getMemberByName(), and minClassDistance().