Lines Matching refs:tp

608 	const timelib_lookup_table *tp;  in timelib_lookup_relative_text()  local
617 for (tp = timelib_reltext_lookup; tp->name; tp++) { in timelib_lookup_relative_text()
618 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relative_text()
619 value = tp->value; in timelib_lookup_relative_text()
620 *behavior = tp->type; in timelib_lookup_relative_text()
641 const timelib_lookup_table *tp; in timelib_lookup_month() local
650 for (tp = timelib_month_lookup; tp->name; tp++) { in timelib_lookup_month()
651 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_month()
652 value = tp->value; in timelib_lookup_month()
699 const timelib_relunit *tp, *value = NULL; in timelib_lookup_relunit() local
709 for (tp = timelib_relunit_lookup; tp->name; tp++) { in timelib_lookup_relunit()
710 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relunit()
711 value = tp; in timelib_lookup_relunit()
777 const timelib_tz_lookup_table *tp, *first_found_elem = NULL; in abbr_search() local
784 for (tp = timelib_timezone_lookup; tp->name; tp++) { in abbr_search()
785 if (timelib_strcasecmp(word, tp->name) == 0) { in abbr_search()
788 first_found_elem = tp; in abbr_search()
790 return tp; in abbr_search()
793 if (tp->gmtoffset == gmtoffset) { in abbr_search()
794 return tp; in abbr_search()
817 const timelib_tz_lookup_table *tp; in timelib_lookup_abbr() local
832 if (end - begin < MAX_ABBR_LEN && (tp = abbr_search(word, -1, 0))) { in timelib_lookup_abbr()
833 value = tp->gmtoffset; in timelib_lookup_abbr()
834 *dst = tp->type; in timelib_lookup_abbr()
835 value -= tp->type * 3600; in timelib_lookup_abbr()
25576 const timelib_tz_lookup_table *tp; in timelib_timezone_id_from_abbr() local
25578 tp = abbr_search(abbr, gmtoffset, isdst); in timelib_timezone_id_from_abbr()
25579 if (tp) { in timelib_timezone_id_from_abbr()
25580 return (tp->full_tz_name); in timelib_timezone_id_from_abbr()