MCPcopy Create free account
hub / github.com/RsyncProject/rsync / iwildmatch

Function iwildmatch

lib/wildmatch.c:298–309  ·  view source on GitHub ↗

Match the "pattern" against the forced-to-lower-case "text" string. */

Source from the content-addressed store, hash-verified

296
297/* Match the "pattern" against the forced-to-lower-case "text" string. */
298int iwildmatch(const char *pattern, const char *text)
299{
300 static const uchar *nomore[1]; /* A NULL pointer. */
301 int ret;
302#ifdef WILD_TEST_ITERATIONS
303 wildmatch_iteration_count = 0;
304#endif
305 force_lower_case = 1;
306 ret = dowild((const uchar*)pattern, (const uchar*)text, nomore) == TRUE;
307 force_lower_case = 0;
308 return ret;
309}
310
311/* Match pattern "p" against the a virtually-joined string consisting
312 * of all the pointers in array "texts" (which has a NULL pointer at the

Callers 2

set_compressionFunction · 0.85
match_hostnameFunction · 0.85

Calls 1

dowildFunction · 0.85

Tested by

no test coverage detected