Home » U++ Library support » U++ Core » PatternMatchMulti problem
PatternMatchMulti problem [message #26993] |
Fri, 18 June 2010 13:33  |
 |
koldo
Messages: 3443 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
Now PatternMatchMulti implementation is this:
bool PatternMatchMulti(const char *p, const char *s) {
String pt;
while(*p) {
if(*p == ';' || *p == ',' || *p == ' ') {
if(PatternMatch(pt, s)) return true;
p++;
while(*p == ';' || *p == ',' || *p == ' ') p++;
pt.Clear();
}
else
pt.Cat(*p++);
}
return pt.IsEmpty() ? false : PatternMatch(pt, s);
}
It separates patterns with ';', ',' and ' '. I thing to have patterns with spaces it would be better to remove the ' ' form the function.
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Wed Aug 27 11:06:42 CEST 2025
Total time taken to generate the page: 0.06220 seconds
|