| 142 | |
| 143 | |
| 144 | bool FindMatch::isMatchMultipleExprs( const char *exps, const char *str, bool caseSensitive ) |
| 145 | { |
| 146 | char *tok = 0; |
| 147 | S32 len = dStrlen(exps); |
| 148 | |
| 149 | char *e = new char[len+1]; |
| 150 | dStrcpy(e,exps,len+1); |
| 151 | |
| 152 | // [tom, 12/18/2006] This no longer supports space separated expressions as |
| 153 | // they don't work when the paths have spaces in. |
| 154 | |
| 155 | // search for each expression. return true soon as we see one. |
| 156 | for( tok = dStrtok(e,"\t"); tok != NULL; tok = dStrtok(NULL,"\t")) |
| 157 | { |
| 158 | if( isMatch( tok, str, caseSensitive) ) |
| 159 | { |
| 160 | delete []e; |
| 161 | return true; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | delete []e; |
| 166 | return false; |
| 167 | } |