69 virtual void writeString(
const char *,
bool)
const = 0;
72 const char *anchor,
const char *text
85 const char *anchor,
const char *text
113 return (
int)l1->letter()-(
int)l2->letter();
129 bool autoBreak=
FALSE,
131 bool keepSpaces=
FALSE,
149 bool forceEmptyScope=
FALSE,
152 const char *forceTagFile=0
162 bool lookForSpecializations =
TRUE,
164 bool checkScope =
FALSE 178 const char *,
bool inSeeBlock,
const char *);
181 const char *linkTxt=0);
211 bool mayBeUnlinkable=
FALSE,
212 bool mayBeHidden=
FALSE,
226 return c==
'_' || c>=128 || c<0 || isalnum(c);
250 const char *projName,
const char *projNum,
const char *projBrief);
272 bool allowEmptyClass=
FALSE);
310 bool parentOnly=
TRUE,
340 bool insideTabbing=
FALSE,
342 bool insideItem=
FALSE,
343 bool keepSpaces=
FALSE);
void filterLatexString(FTextStream &t, const char *str, bool insideTabbing=FALSE, bool insidePre=FALSE, bool insideItem=FALSE, bool keepSpaces=FALSE)
Traverses directory structures and contents in a platform-independent way.
void writeTypeConstraints(OutputList &ol, Definition *d, ArgumentList *al)
QCString escapeCharsInString(const char *name, bool allowDots, bool allowUnderscore=FALSE)
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
QCString stripScope(const char *name)
void addDocCrossReference(MemberDef *src, MemberDef *dst)
bool protectionLevelVisible(Protection prot)
void addRefItem(const QList< ListItemInfo > *sli, const char *prefix, const char *key, const char *name, const char *title, const char *args, Definition *scope)
QCString argListToString(ArgumentList *al, bool useCanonicalType=FALSE, bool showDefVals=TRUE)
void writeColoredImgData(const char *dir, ColoredImgDataItem data[])
This class represents an function or template argument list.
void setAnchors(MemberList *ml)
This file contains a number of basic enums and types.
static QCString aliasName
const char * writeUtf8Char(FTextStream &t, const char *s)
bool leftScopeMatch(const QCString &scope, const QCString &name)
MemberDef * getMemberFromSymbol(Definition *scope, FileDef *fileScope, const char *n)
bool classHasVisibleChildren(ClassDef *cd)
QCString convertToLaTeX(const QCString &s, bool insideTabbing=FALSE, bool keepSpaces=FALSE)
ClassDef * getClass(const char *key)
void createSubDirs(QDir &d)
OutputDocInterface & m_od
virtual void writeBreak(int indent) const =0
void extractNamespaceName(const QCString &scopeName, QCString &className, QCString &namespaceName, bool allowEmptyClass=FALSE)
QCString latexEscapeLabelName(const char *s, bool insideTabbing)
FileDef * findFileDef(const FileNameDict *fnDict, const char *n, bool &ambig)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
bool checkIfTypedef(Definition *scope, FileDef *fileScope, const char *n)
QCString stripLeadingAndTrailingEmptyLines(const QCString &s, int &docLine)
bool getDefs(const QCString &scopeName, const QCString &memberName, const char *, MemberDef *&md, ClassDef *&cd, FileDef *&fd, NamespaceDef *&nd, GroupDef *&gd, bool forceEmptyScope=FALSE, FileDef *currentFile=0, bool checkCV=FALSE, const char *forceTagFile=0)
QCString convertToJSString(const char *s)
void setAutoDelete(bool val)
void addGroupListToTitle(OutputList &ol, Definition *d)
void generateFileRef(OutputDocInterface &od, const char *, const char *linkTxt=0)
QCString stripTemplateSpecifiersFromScope(const QCString &fullName, bool parentOnly=TRUE, QCString *lastScopeStripped=0)
void mergeArguments(ArgumentList *, ArgumentList *, bool forceNameOverwrite=FALSE)
void replaceNamespaceAliases(QCString &scope, int i)
static constexpr double fs
QCString langToString(SrcLangExt lang)
QCString transcodeCharacterStringToUTF8(const QCString &input)
QCString stripIndentation(const QCString &s)
QCString convertNameToFile(const char *name, bool allowDots=FALSE, bool allowUnderscore=FALSE)
static QCString className
QCString normalizeNonTemplateArgumentsInString(const QCString &name, Definition *context, const ArgumentList *formalArgs)
Simplified and optimized version of QTextStream.
QCString stripExtension(const char *fName)
bool generateLink(OutputDocInterface &od, const char *, const char *, bool inSeeBlock, const char *)
int isAccessibleFromWithExpScope(Definition *scope, FileDef *fileScope, Definition *item, const QCString &explicitScopePart)
QCString removeRedundantWhiteSpace(const QCString &s)
QCString selectBlock(const QCString &s, const QCString &name, bool which)
QCString dateToString(bool)
int guessSection(const char *name)
int compareValues(const T *l1, const T *l2) const
QCString stripPath(const char *s)
void writePageRef(OutputDocInterface &od, const char *cn, const char *mn)
int filterCRLF(char *buf, int len)
virtual void writeString(const char *, bool) const =0
QCString stripFromPath(const QCString &path)
virtual ~TextGeneratorOLImpl()
QCString resolveTypeDef(Definition *d, const QCString &name, Definition **typedefContext=0)
bool checkExtension(const char *fName, const char *ext)
QCString generateMarker(int id)
ClassDef * newResolveTypedef(FileDef *fileScope, MemberDef *md, MemberDef **pMemType=0, QCString *pTemplSpec=0, QCString *pResolvedType=0, ArgumentList *actTemplParams=0)
QCString showFileDefMatches(const FileNameDict *fnDict, const char *n)
QCString mergeScopes(const QCString &leftScope, const QCString &rightScope)
bool namespaceHasVisibleChild(NamespaceDef *nd, bool includeClasses)
QCString extractAliasArgs(const QCString &args, int pos)
QCString stripFromIncludePath(const QCString &path)
void inSort(int key, const T *d)
void addCodeOnlyMappings()
QCString expandAlias(const QCString &aliasName, const QCString &aliasValue)
bool fileVisibleInIndex(FileDef *fd, bool &genSourceFile)
QCString resolveAliasCmd(const QCString aliasCmd)
QCString stripAnonymousNamespaceScope(const QCString &s)
bool copyFile(const QCString &src, const QCString &dest)
bool matchArguments2(Definition *srcScope, FileDef *srcFileScope, ArgumentList *srcAl, Definition *dstScope, FileDef *dstFileScope, ArgumentList *dstAl, bool checkCV)
QCString removeAnonymousScopes(const QCString &s)
QCString substituteKeywords(const QCString &s, const char *title, const char *projName, const char *projNum, const char *projBrief)
QCString recodeString(const QCString &str, const char *fromEncoding, const char *toEncoding)
bool hasVisibleRoot(BaseClassList *bcl)
SrcLangExt getLanguageFromFileName(const QCString fileName)
QCString stripExtensionGeneral(const char *fName, const char *ext)
int getPrefixIndex(const QCString &name)
void addMembersToMemberGroup(MemberList *ml, MemberGroupSDict **ppMemberGroupSDict, Definition *context)
NamespaceDef * getResolvedNamespace(const char *key)
QCString convertToId(const char *s)
int extractClassNameFromType(const QCString &type, int &pos, QCString &name, QCString &templSpec, SrcLangExt=SrcLangExt_Unknown)
QCString getOverloadDocs()
QCString substituteTemplateArgumentsInString(const QCString &name, ArgumentList *formalArgs, ArgumentList *actualArgs)
maps a unicode character code to a list of T::ElementType's
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
void addDirPrefix(QCString &fileName)
QCString replaceColorMarkers(const char *str)
bool resolveRef(const char *scName, const char *name, bool inSeeBlock, Definition **resContext, MemberDef **resMember, bool lookForSpecializations=TRUE, FileDef *currentFile=0, bool checkScope=FALSE)
bool rightScopeMatch(const QCString &scope, const QCString &name)
void initClassHierarchy(ClassSDict *cl)
QCString getFileFilter(const char *name, bool isSourceCode)
QCString extractDirection(QCString &docs)
QCString convertToXML(const char *s)
Buffer used to store strings.
QCString latexEscapeIndexChars(const char *s, bool insideTabbing)
QCString externalLinkTarget()
void writeExample(OutputList &ol, ExampleSDict *el)
The QFile class is an I/O device that operates on files.
bool openOutputFile(const char *outFile, QFile &f)
bool updateLanguageMapping(const QCString &extension, const QCString &parser)
bool patternMatch(const QFileInfo &fi, const QStrList *patList)
QCString parseCommentAsText(const Definition *scope, const MemberDef *member, const QCString &doc, const QCString &fileName, int lineNr)
QCString replaceAnonymousScopes(const QCString &s, const char *replacement=0)
QList< ArgumentList > * copyArgumentLists(const QList< ArgumentList > *srcLists)
void linkifyText(const TextGeneratorIntf &ol, Definition *scope, FileDef *fileScope, Definition *self, const char *text, bool autoBreak=FALSE, bool external=TRUE, bool keepSpaces=FALSE, int indentLevel=0)
QCString getDotImageExtension(void)
QCString correctURL(const QCString &url, const QCString &relPath)
void initDefaultExtensionMapping()
uint getUtf8Code(const QCString &s, int idx)
Get one unicode character as an unsigned integer from utf-8 string.
A model of a page symbol.
QCString processMarkup(const QCString &s)
void append(uint letter, typename T::ElementType *elem)
uint getUtf8CodeToLower(const QCString &s, int idx)
Returns one unicode character as an unsigned integer from utf-8 string, making the character lower ca...
virtual void writeLink(const char *extRef, const char *file, const char *anchor, const char *text) const =0
QCString resolveDefines(const char *n)
ClassDef * getResolvedClass(Definition *scope, FileDef *fileScope, const char *key, MemberDef **pTypeDef=0, QCString *pTemplSpec=0, bool mayBeUnlinkable=FALSE, bool mayBeHidden=FALSE, QCString *pResolvedType=0)
Protection classInheritedProtectionLevel(ClassDef *cd, ClassDef *bcd, Protection prot=Public, int level=0)
QCString substituteClassNames(const QCString &s)
bool classVisibleInIndex(ClassDef *cd)
int countAliasArguments(const QCString argList)
QCString tempArgListToString(ArgumentList *al, SrcLangExt lang)
QCString filterTitle(const QCString &title)
bool readInputFile(const char *fileName, BufStr &inBuf, bool filter=TRUE, bool isSourceCode=FALSE)
read a file name fileName and optionally filter and transcode it
bool containsWord(const QCString &s, const QCString &word)
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
void convertProtectionLevel(MemberListType inListType, Protection inProt, int *outListType1, int *outListType2)
QCString getCanonicalTemplateSpec(Definition *d, FileDef *fs, const QCString &spec)
int nextUtf8CharPosition(const QCString &utf8Str, int len, int startPos)
QCString rtfFormatBmkStr(const char *name)
bool findAndRemoveWord(QCString &s, const QCString &word)
uint getUtf8CodeToUpper(const QCString &s, int idx)
Returns one unicode character as ian unsigned interger from utf-8 string, making the character upper ...
The QFileInfo class provides system-independent file information.
QCString fileToString(const char *name, bool filter=FALSE, bool isSourceCode=FALSE)
QCString linkToText(SrcLangExt lang, const char *link, bool isFileName)
int minClassDistance(const ClassDef *cd, const ClassDef *bcd, int level=0)
QCString convertCharEntitiesToUTF8(const QCString &s)
int getScopeFragment(const QCString &s, int p, int *l)
QCString clearBlock(const char *s, const char *begin, const char *end)
Clear a text block s from begin to end markers.
union ptb::content::word::word word
QCString relativePathToRoot(const char *name)
QCString extractBlock(const QCString text, const QCString marker)
QCString getLanguageSpecificSeparator(SrcLangExt lang, bool classScope=FALSE)
void initFilePattern(void)
QCString latexEscapePDFString(const char *s)
virtual ~TextGeneratorIntf()
int isAccessibleFrom(Definition *scope, FileDef *fileScope, Definition *item)
int computeQualifiedIndex(const QCString &name)
QCString insertTemplateSpecifierInScope(const QCString &scope, const QCString &templ)
PageDef * addRelatedPage(const char *name, const QCString &ptitle, const QCString &doc, QList< SectionInfo > *anchors, const char *fileName, int startLine, const QList< ListItemInfo > *sli, GroupDef *gd=0, TagInfo *tagInfo=0, SrcLangExt lang=SrcLangExt_Unknown)
QCString convertToHtml(const char *s, bool keepEntities=TRUE)
bool resolveLink(const char *scName, const char *lr, bool inSeeBlock, Definition **resContext, QCString &resAnchor)