MCPcopy Create free account
hub / github.com/eggert/tz / ciprefix

Function ciprefix

zic.c:3955–3965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3953
3954ATTRIBUTE_PURE_114833
3955static bool
3956itsabbr(register const char *abbr, register const char *word)
3957{
3958 if (lowerit(*abbr) != lowerit(*word))
3959 return false;
3960 ++word;
3961 while (*++abbr != '\0')
3962 do {
3963 if (*word == '\0')
3964 return false;
3965 } while (lowerit(*word++) != lowerit(*abbr));
3966 return true;
3967}
3968

Callers 1

bywordFunction · 0.85

Calls 1

loweritFunction · 0.85

Tested by

no test coverage detected