- Timestamp:
- 03/12/2011 23:07:41 (6 months ago)
- File:
-
- 1 edited
-
box/trunk/lib/common/ExcludeList.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/common/ExcludeList.cpp
r1859 r3047 100 100 { 101 101 output.replace(pos, 1, "\\" DIRECTORY_SEPARATOR); 102 }103 104 for (std::string::iterator i = output.begin(); i != output.end(); i++)105 {106 *i = tolower(*i);107 102 } 108 103 … … 186 181 { 187 182 std::string entry = *i; 183 int flags = REG_EXTENDED | REG_NOSUB; 188 184 189 185 // Convert any forward slashes in the string … … 192 188 #ifdef WIN32 193 189 entry = ReplaceSlashesRegex(entry); 190 flags |= REG_ICASE; // Windows convention 194 191 #endif 195 192 196 193 // Compile 197 int errcode = ::regcomp(pregex, entry.c_str(), 198 REG_EXTENDED | REG_NOSUB);194 int errcode = ::regcomp(pregex, entry.c_str(), 195 flags); 199 196 200 197 if (errcode != 0) … … 239 236 240 237 #ifdef WIN32 238 // converts to lower case as well 241 239 test = ReplaceSlashesDefinite(test); 242 240 #endif
Note: See TracChangeset
for help on using the changeset viewer.
