OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 1997-2014, International Business Machines | 4 * Copyright (C) 1997-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ****************************************************************************** | 7 ****************************************************************************** |
8 * | 8 * |
9 * FILE NAME : putil.c (previously putil.cpp and ptypes.cpp) | 9 * FILE NAME : putil.c (previously putil.cpp and ptypes.cpp) |
10 * | 10 * |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 /* Get out after the first one found. */ | 963 /* Get out after the first one found. */ |
964 break; | 964 break; |
965 } | 965 } |
966 } | 966 } |
967 } | 967 } |
968 } | 968 } |
969 closedir(dirp); | 969 closedir(dirp); |
970 return result; | 970 return result; |
971 } | 971 } |
972 #endif | 972 #endif |
| 973 |
| 974 U_CAPI void U_EXPORT2 |
| 975 uprv_tzname_clear_cache() |
| 976 { |
| 977 #if defined(CHECK_LOCALTIME_LINK) && !defined(DEBUG_SKIP_LOCALTIME_LINK) |
| 978 gTimeZoneBufferPtr = NULL; |
| 979 #endif |
| 980 } |
| 981 |
973 U_CAPI const char* U_EXPORT2 | 982 U_CAPI const char* U_EXPORT2 |
974 uprv_tzname(int n) | 983 uprv_tzname(int n) |
975 { | 984 { |
976 const char *tzid = NULL; | 985 const char *tzid = NULL; |
977 #if U_PLATFORM_USES_ONLY_WIN32_API | 986 #if U_PLATFORM_USES_ONLY_WIN32_API |
978 tzid = uprv_detectWindowsTimeZone(); | 987 tzid = uprv_detectWindowsTimeZone(); |
979 | 988 |
980 if (tzid != NULL) { | 989 if (tzid != NULL) { |
981 return tzid; | 990 return tzid; |
982 } | 991 } |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2212 #endif /* U_ENABLE_DYLOAD */ | 2221 #endif /* U_ENABLE_DYLOAD */ |
2213 | 2222 |
2214 /* | 2223 /* |
2215 * Hey, Emacs, please set the following: | 2224 * Hey, Emacs, please set the following: |
2216 * | 2225 * |
2217 * Local Variables: | 2226 * Local Variables: |
2218 * indent-tabs-mode: nil | 2227 * indent-tabs-mode: nil |
2219 * End: | 2228 * End: |
2220 * | 2229 * |
2221 */ | 2230 */ |
OLD | NEW |