Lines Matching refs:word
605 char *word; in timelib_lookup_relative_text() local
614 word = timelib_calloc(1, end - begin + 1); in timelib_lookup_relative_text()
615 memcpy(word, begin, end - begin); in timelib_lookup_relative_text()
618 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relative_text()
624 timelib_free(word); in timelib_lookup_relative_text()
638 char *word; in timelib_lookup_month() local
647 word = timelib_calloc(1, end - begin + 1); in timelib_lookup_month()
648 memcpy(word, begin, end - begin); in timelib_lookup_month()
651 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_month()
656 timelib_free(word); in timelib_lookup_month()
697 char *word; in timelib_lookup_relunit() local
706 word = timelib_calloc(1, end - begin + 1); in timelib_lookup_relunit()
707 memcpy(word, begin, end - begin); in timelib_lookup_relunit()
710 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relunit()
716 timelib_free(word); in timelib_lookup_relunit()
774 static const timelib_tz_lookup_table* abbr_search(const char *word, timelib_long gmtoffset, int isd… in abbr_search() argument
780 if (timelib_strcasecmp("utc", word) == 0 || timelib_strcasecmp("gmt", word) == 0) { in abbr_search()
785 if (timelib_strcasecmp(word, tp->name) == 0) { in abbr_search()
814 char *word; in timelib_lookup_abbr() local
829 word = timelib_calloc(1, end - begin + 1); in timelib_lookup_abbr()
830 memcpy(word, begin, end - begin); in timelib_lookup_abbr()
832 if (end - begin < MAX_ABBR_LEN && (tp = abbr_search(word, -1, 0))) { in timelib_lookup_abbr()
841 *tz_abbr = word; in timelib_lookup_abbr()