| 2901 | |
| 2902 | #if !defined(ANDROID) && !defined(__ANDROID__) |
| 2903 | static |
| 2904 | std::string |
| 2905 | get_version() |
| 2906 | { |
| 2907 | auto path = get_tz_dir() + std::string("/+VERSION"); |
| 2908 | std::ifstream in{path}; |
| 2909 | std::string version; |
| 2910 | if (in) |
| 2911 | { |
| 2912 | in >> version; |
| 2913 | return version; |
| 2914 | } |
| 2915 | in.clear(); |
| 2916 | in.open(get_tz_dir() + std::string(1, folder_delimiter) + "version"); |
| 2917 | if (in) |
| 2918 | { |
| 2919 | in >> version; |
| 2920 | return version; |
| 2921 | } |
| 2922 | version = "unknown"; |
| 2923 | return version; |
| 2924 | } |
| 2925 | |
| 2926 | static |
| 2927 | std::vector<leap_second> |
no test coverage detected