diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/util.cpp b/src/util.cpp index 8e4c5a7..7a4bd65 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -4751,7 +4751,7 @@ bool resolveRef(/* in */ const char *scName, { return resolveRef(scName,name,inSeeBlock,resContext,resMember,FALSE,0,checkScope); } - if (bracePos!=-1) // Try without parameters as well, could be a contructor invocation + if (bracePos!=-1) // Try without parameters as well, could be a constructor invocation { *resContext=getClass(fullName.left(bracePos)); if (*resContext) @@ -7902,9 +7902,16 @@ QCString filterTitle(const QCString &title) bool patternMatch(const QFileInfo &fi,const QStrList *patList) { - bool found=FALSE; + static bool caseSenseNames = Config_getBool(CASE_SENSE_NAMES); + bool found = FALSE; + + // For Windows/Mac, always do the case insensitive match +#if defined(_WIN32) || defined(__MACOSX__) + caseSenseNames = FALSE; +#endif + if (patList) - { + { QStrListIterator it(*patList); QCString pattern; @@ -7919,11 +7926,8 @@ bool patternMatch(const QFileInfo &fi,const QStrList *patList) int i=pattern.find('='); if (i!=-1) pattern=pattern.left(i); // strip of the extension specific filter name -#if defined(_WIN32) || defined(__MACOSX__) // Windows or MacOSX - QRegExp re(pattern,FALSE,TRUE); // case insensitive match -#else // unix - QRegExp re(pattern,TRUE,TRUE); // case sensitive match -#endif + QRegExp re(pattern,caseSenseNames,TRUE); + found = re.match(fn)!=-1 || re.match(fp)!=-1 || re.match(afp)!=-1; |