Lines Matching refs:tp

604 	const timelib_lookup_table *tp;  in timelib_lookup_relative_text()  local
613 for (tp = timelib_reltext_lookup; tp->name; tp++) { in timelib_lookup_relative_text()
614 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relative_text()
615 value = tp->value; in timelib_lookup_relative_text()
616 *behavior = tp->type; in timelib_lookup_relative_text()
637 const timelib_lookup_table *tp; in timelib_lookup_month() local
646 for (tp = timelib_month_lookup; tp->name; tp++) { in timelib_lookup_month()
647 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_month()
648 value = tp->value; in timelib_lookup_month()
695 const timelib_relunit *tp, *value = NULL; in timelib_lookup_relunit() local
705 for (tp = timelib_relunit_lookup; tp->name; tp++) { in timelib_lookup_relunit()
706 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relunit()
707 value = tp; in timelib_lookup_relunit()
773 const timelib_tz_lookup_table *tp, *first_found_elem = NULL; in abbr_search() local
780 for (tp = timelib_timezone_lookup; tp->name; tp++) { in abbr_search()
781 if (timelib_strcasecmp(word, tp->name) == 0) { in abbr_search()
784 first_found_elem = tp; in abbr_search()
786 return tp; in abbr_search()
789 if (tp->gmtoffset == gmtoffset) { in abbr_search()
790 return tp; in abbr_search()
813 const timelib_tz_lookup_table *tp; in timelib_lookup_abbr() local
828 if (end - begin < MAX_ABBR_LEN && (tp = abbr_search(word, -1, 0))) { in timelib_lookup_abbr()
829 value = tp->gmtoffset; in timelib_lookup_abbr()
830 *dst = tp->type; in timelib_lookup_abbr()
831 value -= tp->type * 3600; in timelib_lookup_abbr()
25572 const timelib_tz_lookup_table *tp; in timelib_timezone_id_from_abbr() local
25574 tp = abbr_search(abbr, gmtoffset, isdst); in timelib_timezone_id_from_abbr()
25575 if (tp) { in timelib_timezone_id_from_abbr()
25576 return (tp->full_tz_name); in timelib_timezone_id_from_abbr()