MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / isMatchMultipleExprs

Method isMatchMultipleExprs

Engine/source/core/strings/findMatch.cpp:144–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144bool 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}

Callers

nothing calls this directly

Calls 3

dStrcpyFunction · 0.85
dStrtokFunction · 0.85
dStrlenFunction · 0.70

Tested by

no test coverage detected