Orb/Doxygen/src/util.h
changeset 4 468f4c8d3d5b
parent 0 42188c7ea2d9
equal deleted inserted replaced
3:d8fccb2cd802 4:468f4c8d3d5b
     1 /******************************************************************************
     1 /******************************************************************************
     2  *
     2  *
     3  * 
     3  * 
     4  *
     4  *
     5  * Copyright (C) 1997-2008 by Dimitri van Heesch.
     5  * Copyright (C) 1997-2010 by Dimitri van Heesch.
     6  *
     6  *
     7  * Permission to use, copy, modify, and distribute this software and its
     7  * Permission to use, copy, modify, and distribute this software and its
     8  * documentation under the terms of the GNU General Public License is hereby 
     8  * documentation under the terms of the GNU General Public License is hereby 
     9  * granted. No representations are made about the suitability of this software 
     9  * granted. No representations are made about the suitability of this software 
    10  * for any purpose. It is provided "as is" without express or implied warranty.
    10  * for any purpose. It is provided "as is" without express or implied warranty.
    52 class PageDef;
    52 class PageDef;
    53 struct SectionInfo;
    53 struct SectionInfo;
    54 class QDir;
    54 class QDir;
    55 class Definition;
    55 class Definition;
    56 class BufStr;
    56 class BufStr;
       
    57 class QFileInfo;
       
    58 class QStrList;
    57 
    59 
    58 //--------------------------------------------------------------------
    60 //--------------------------------------------------------------------
    59 
    61 
    60 class TextGeneratorIntf
    62 class TextGeneratorIntf
    61 {
    63 {
   195 
   197 
   196 int guessSection(const char *name);
   198 int guessSection(const char *name);
   197 
   199 
   198 inline bool isId(int c)
   200 inline bool isId(int c)
   199 {
   201 {
   200   // PaulRo: This was return c=='_' || isalnum(c) || c>=128 || c<0;
       
   201   // but with negative numbers isalnum was called and this gave an
       
   202   // assertion error from istype.c
       
   203   return c=='_' || c>=128 || c<0 || isalnum(c);
   202   return c=='_' || c>=128 || c<0 || isalnum(c);
   204 }
   203 }
   205 
   204 
   206 QCString removeRedundantWhiteSpace(const QCString &s);
   205 QCString removeRedundantWhiteSpace(const QCString &s);
   207 
   206 
   235 
   234 
   236 bool hasVisibleRoot(BaseClassList *bcl);
   235 bool hasVisibleRoot(BaseClassList *bcl);
   237 
   236 
   238 int minClassDistance(const ClassDef *cd,const ClassDef *bcd,int level=0);
   237 int minClassDistance(const ClassDef *cd,const ClassDef *bcd,int level=0);
   239 
   238 
   240 QCString convertNameToFile(const char *name,bool allowDots=FALSE);
   239 QCString convertNameToFile(const char *name,bool allowDots=FALSE,bool allowUnderscore=FALSE);
   241 
   240 
   242 void extractNamespaceName(const QCString &scopeName,
   241 void extractNamespaceName(const QCString &scopeName,
   243                           QCString &className,QCString &namespaceName,
   242                           QCString &className,QCString &namespaceName,
   244                           bool allowEmptyClass=FALSE);
   243                           bool allowEmptyClass=FALSE);
   245 
   244 
   292                            const QList<ListItemInfo> *sli,
   291                            const QList<ListItemInfo> *sli,
   293                            GroupDef *gd=0,
   292                            GroupDef *gd=0,
   294                            TagInfo *tagInfo=0
   293                            TagInfo *tagInfo=0
   295                           );
   294                           );
   296 
   295 
   297 QCString escapeCharsInString(const char *name,bool allowDots);
   296 QCString escapeCharsInString(const char *name,bool allowDots,bool allowUnderscore=FALSE);
   298 
   297 
   299 void addGroupListToTitle(OutputList &ol,Definition *d);
   298 void addGroupListToTitle(OutputList &ol,Definition *d);
   300 
   299 
   301 void filterLatexString(QTextStream &t,const char *str,
   300 void filterLatexString(QTextStream &t,const char *str,
   302                        bool insideTabbing=FALSE,bool insidePre=FALSE,
   301                        bool insideTabbing=FALSE,bool insidePre=FALSE,
   369 void stackTrace();
   368 void stackTrace();
   370 
   369 
   371 bool readInputFile(const char *fileName,BufStr &inBuf);
   370 bool readInputFile(const char *fileName,BufStr &inBuf);
   372 QCString filterTitle(const QCString &title);
   371 QCString filterTitle(const QCString &title);
   373 
   372 
       
   373 bool patternMatch(const QFileInfo &fi,const QStrList *patList);
       
   374 
       
   375 void writeSummaryLink(OutputList &ol,const char *label,const char *title,
       
   376                       bool &first);
   374 
   377 
   375 #endif
   378 #endif
   376 
   379