"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "regex/StringMatcher.cpp" between
muscle8.20.zip and muscle8.30.zip

About: MUSCLE (Multi User Server Client Linking Environment) is a messaging server and networking API. The included server program ("muscled") lets its clients message each other, and/or store information in its serverside hierarchical database.

StringMatcher.cpp  (muscle8.20):StringMatcher.cpp  (muscle8.30)
skipping to change at line 121 skipping to change at line 121
{ {
char c = *ptr; char c = *ptr;
if (escapeMode) escapeMode = false; if (escapeMode) escapeMode = false;
else else
{ {
switch(c) switch(c)
{ {
case ',': c = '|'; break; // commas are trea ted as union-bars case ',': c = '|'; break; // commas are trea ted as union-bars
case '.': regexPattern += '\\'; break; // dots are consid ered literals, so escape those case '.': regexPattern += '\\'; break; // dots are consid ered literals, so escape those
case '+': regexPattern += '\\'; break; // pluses are cons idered literals, so escape those
case '*': regexPattern += '.'; break; // hmmm. case '*': regexPattern += '.'; break; // hmmm.
case '?': c = '.'; break; // question marks mean any-single-char case '?': c = '.'; break; // question marks mean any-single-char
case '\\': escapeMode = true; break; // don't transform the next character! case '\\': escapeMode = true; break; // don't transform the next character!
} }
} }
regexPattern += c; regexPattern += c;
} }
if (escapeMode) regexPattern += '\\'; // just in case the user left a trailing backslash if (escapeMode) regexPattern += '\\'; // just in case the user left a trailing backslash
regexPattern += ")$"; regexPattern += ")$";
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)