Lines Matching refs:location
100 memcpy(tz->location.country_code, *tzf, 2); in read_php_preamble()
101 tz->location.country_code[2] = '\0'; in read_php_preamble()
132 tz->location.country_code[0] = '?'; in read_tzif_preamble()
133 tz->location.country_code[1] = '?'; in read_tzif_preamble()
134 tz->location.country_code[2] = '\0'; in read_tzif_preamble()
348 tz->location.latitude = timelib_conv_int_unsigned(buffer[0]); in read_location()
349 tz->location.latitude = (tz->location.latitude / 100000) - 90; in read_location()
350 tz->location.longitude = timelib_conv_int_unsigned(buffer[1]); in read_location()
351 tz->location.longitude = (tz->location.longitude / 100000) - 180; in read_location()
355 tz->location.comments = timelib_malloc(comments_len + 1); in read_location()
356 memcpy(tz->location.comments, *tzf, comments_len); in read_location()
357 tz->location.comments[comments_len] = '\0'; in read_location()
363 tz->location.latitude = 0; in set_default_location_and_comments()
364 tz->location.longitude = 0; in set_default_location_and_comments()
365 tz->location.comments = timelib_malloc(2); in set_default_location_and_comments()
366 tz->location.comments[0] = '?'; in set_default_location_and_comments()
367 tz->location.comments[1] = '\0'; in set_default_location_and_comments()
374 printf("Country Code: %s\n", tz->location.country_code); in timelib_dump_tzinfo()
375 printf("Geo Location: %f,%f\n", tz->location.latitude, tz->location.longitude); in timelib_dump_tzinfo()
376 printf("Comments:\n%s\n", tz->location.comments); in timelib_dump_tzinfo()
558 TIMELIB_TIME_FREE(tz->location.comments); in timelib_tzinfo_dtor()