Lines Matching refs:tp

564 	const timelib_lookup_table *tp;  in timelib_lookup_relative_text()  local
573 for (tp = timelib_reltext_lookup; tp->name; tp++) { in timelib_lookup_relative_text()
574 if (strcasecmp(word, tp->name) == 0) { in timelib_lookup_relative_text()
575 value = tp->value; in timelib_lookup_relative_text()
576 *behavior = tp->type; in timelib_lookup_relative_text()
597 const timelib_lookup_table *tp; in timelib_lookup_month() local
606 for (tp = timelib_month_lookup; tp->name; tp++) { in timelib_lookup_month()
607 if (strcasecmp(word, tp->name) == 0) { in timelib_lookup_month()
608 value = tp->value; in timelib_lookup_month()
643 const timelib_relunit *tp, *value = NULL; in timelib_lookup_relunit() local
653 for (tp = timelib_relunit_lookup; tp->name; tp++) { in timelib_lookup_relunit()
654 if (strcasecmp(word, tp->name) == 0) { in timelib_lookup_relunit()
655 value = tp; in timelib_lookup_relunit()
700 const timelib_tz_lookup_table *tp, *first_found_elem = NULL; in abbr_search() local
707 for (tp = timelib_timezone_lookup; tp->name; tp++) { in abbr_search()
708 if (strcasecmp(word, tp->name) == 0) { in abbr_search()
711 first_found_elem = tp; in abbr_search()
713 return tp; in abbr_search()
716 if (tp->gmtoffset == gmtoffset) { in abbr_search()
717 return tp; in abbr_search()
740 const timelib_tz_lookup_table *tp; in timelib_lookup_abbr() local
749 if ((tp = abbr_search(word, -1, 0))) { in timelib_lookup_abbr()
750 value = -tp->gmtoffset / 60; in timelib_lookup_abbr()
751 *dst = tp->type; in timelib_lookup_abbr()
752 value += tp->type * 60; in timelib_lookup_abbr()
25377 const timelib_tz_lookup_table *tp; in timelib_timezone_id_from_abbr() local
25379 tp = abbr_search(abbr, gmtoffset, isdst); in timelib_timezone_id_from_abbr()
25380 if (tp) { in timelib_timezone_id_from_abbr()
25381 return (tp->full_tz_name); in timelib_timezone_id_from_abbr()