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

Function wildmatch

lib/wildmatch.c:288–295  ·  view source on GitHub ↗

Match the "pattern" against the "text" string. */

Source from the content-addressed store, hash-verified

286
287/* Match the "pattern" against the "text" string. */
288int wildmatch(const char *pattern, const char *text)
289{
290 static const uchar *nomore[1]; /* A NULL pointer. */
291#ifdef WILD_TEST_ITERATIONS
292 wildmatch_iteration_count = 0;
293#endif
294 return dowild((const uchar*)pattern, (const uchar*)text, nomore) == TRUE;
295}
296
297/* Match the "pattern" against the forced-to-lower-case "text" string. */
298int iwildmatch(const char *pattern, const char *text)

Callers 6

parse_one_refuse_matchFunction · 0.85
run_testFunction · 0.85
recv_add_idFunction · 0.85
glob_matchFunction · 0.85
include_configFunction · 0.85
auth_serverFunction · 0.85

Calls 1

dowildFunction · 0.85

Tested by 1

run_testFunction · 0.68