diff --git a/Glob.cxx b/Glob.cxx index f3a952deb860e94227e45ac18a552ccd0e7b77ba..edf98dbf53b9c55fd5db83f200edeee0dc188f71 100644 --- a/Glob.cxx +++ b/Glob.cxx @@ -84,7 +84,8 @@ kwsys_stl::vector<kwsys_stl::string>& Glob::GetFiles() //---------------------------------------------------------------------------- kwsys_stl::string Glob::PatternToRegex(const kwsys_stl::string& pattern, - bool require_whole_string) + bool require_whole_string, + bool preserve_case) { // Incrementally build the regular expression from the pattern. kwsys_stl::string regex = require_whole_string? "^" : ""; @@ -195,10 +196,13 @@ kwsys_stl::string Glob::PatternToRegex(const kwsys_stl::string& pattern, { // On case-insensitive systems file names are converted to lower // case before matching. - ch = tolower(ch); + if(!preserve_case) + { + ch = tolower(ch); + } } #endif - + (void)preserve_case; // Store the character. regex.append(1, static_cast<char>(ch)); } diff --git a/Glob.hxx.in b/Glob.hxx.in index 690dad9789615128bc98246d329910885fb42580..1620dfe89fca962d7b63bb367e3c251aca2b8c52 100644 --- a/Glob.hxx.in +++ b/Glob.hxx.in @@ -79,7 +79,8 @@ public: whole strings, but may be disabled to support concatenating expressions more easily (regex1|regex2|etc). */ static kwsys_stl::string PatternToRegex(const kwsys_stl::string& pattern, - bool require_whole_string = true); + bool require_whole_string = true, + bool preserve_case = false); protected: //! Process directory diff --git a/kwsysDateStamp.cmake b/kwsysDateStamp.cmake index bb646927b8213a2310cf270cac09d747047e4f7a..8e64e4a5b71c0a5297212c5e5d233a14a8903a56 100644 --- a/kwsysDateStamp.cmake +++ b/kwsysDateStamp.cmake @@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2009) SET(KWSYS_DATE_STAMP_MONTH 09) # KWSys version date day component. Format is DD. -SET(KWSYS_DATE_STAMP_DAY 03) +SET(KWSYS_DATE_STAMP_DAY 14)