Lines Matching refs:tp
542 const timelib_lookup_table *tp; in timelib_lookup_relative_text() local
551 for (tp = timelib_reltext_lookup; tp->name; tp++) { in timelib_lookup_relative_text()
552 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relative_text()
553 value = tp->value; in timelib_lookup_relative_text()
554 *behavior = tp->type; in timelib_lookup_relative_text()
575 const timelib_lookup_table *tp; in timelib_lookup_month() local
584 for (tp = timelib_month_lookup; tp->name; tp++) { in timelib_lookup_month()
585 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_month()
586 value = tp->value; in timelib_lookup_month()
621 const timelib_relunit *tp, *value = NULL; in timelib_lookup_relunit() local
631 for (tp = timelib_relunit_lookup; tp->name; tp++) { in timelib_lookup_relunit()
632 if (timelib_strcasecmp(word, tp->name) == 0) { in timelib_lookup_relunit()
633 value = tp; in timelib_lookup_relunit()
678 const timelib_tz_lookup_table *tp, *first_found_elem = NULL; in abbr_search() local
685 for (tp = timelib_timezone_lookup; tp->name; tp++) { in abbr_search()
686 if (timelib_strcasecmp(word, tp->name) == 0) { in abbr_search()
689 first_found_elem = tp; in abbr_search()
691 return tp; in abbr_search()
694 if (tp->gmtoffset == gmtoffset) { in abbr_search()
695 return tp; in abbr_search()
718 const timelib_tz_lookup_table *tp; in timelib_lookup_abbr() local
727 if ((tp = abbr_search(word, -1, 0))) { in timelib_lookup_abbr()
728 value = tp->gmtoffset; in timelib_lookup_abbr()
729 *dst = tp->type; in timelib_lookup_abbr()
730 value -= tp->type * 3600; in timelib_lookup_abbr()
25393 const timelib_tz_lookup_table *tp; in timelib_timezone_id_from_abbr() local
25395 tp = abbr_search(abbr, gmtoffset, isdst); in timelib_timezone_id_from_abbr()
25396 if (tp) { in timelib_timezone_id_from_abbr()
25397 return (tp->full_tz_name); in timelib_timezone_id_from_abbr()