MCPcopy Index your code
hub / github.com/git/git / match_string

Function match_string

date.c:431–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429};
430
431static int match_string(const char *date, const char *str)
432{
433 int i = 0;
434
435 for (i = 0; *date; date++, str++, i++) {
436 if (*date == *str)
437 continue;
438 if (toupper(*date) == toupper(*str))
439 continue;
440 if (!isalnum(*date))
441 break;
442 return 0;
443 }
444 return i;
445}
446
447static int skip_alpha(const char *date)
448{

Callers 2

match_alphaFunction · 0.85
approxidate_alphaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected