From 2c29b14fb936246cefe81a85d33e70d36af382d6 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Mon, 1 Aug 2011 02:38:58 +0000 Subject: [PATCH] ICU-8571 @system APIs are *supposed* to also have a regular API label; add #ifndef U_HIDE_SYSTEM_API X-SVN-Rev: 30448 --- icu4c/source/common/unicode/locid.h | 2 ++ icu4c/source/common/unicode/uclean.h | 2 ++ icu4c/source/common/unicode/ucnv.h | 2 ++ icu4c/source/common/unicode/uloc.h | 2 ++ icu4c/source/i18n/unicode/timezone.h | 1 + 5 files changed, 9 insertions(+) diff --git a/icu4c/source/common/unicode/locid.h b/icu4c/source/common/unicode/locid.h index 3fdbe704371..60c530faf11 100644 --- a/icu4c/source/common/unicode/locid.h +++ b/icu4c/source/common/unicode/locid.h @@ -321,6 +321,7 @@ public: */ Locale *clone() const; +#ifndef U_HIDE_SYSTEM_API /** * Common methods of getting the current default Locale. Used for the * presentation: menus, dialogs, etc. Generally set once when your applet or @@ -352,6 +353,7 @@ public: */ static void U_EXPORT2 setDefault(const Locale& newLocale, UErrorCode& success); +#endif /* U_HIDE_SYSTEM_API */ /** * Creates a locale which has had minimal canonicalization diff --git a/icu4c/source/common/unicode/uclean.h b/icu4c/source/common/unicode/uclean.h index cba8c781a9e..93600b970a6 100644 --- a/icu4c/source/common/unicode/uclean.h +++ b/icu4c/source/common/unicode/uclean.h @@ -50,6 +50,7 @@ U_STABLE void U_EXPORT2 u_init(UErrorCode *status); +#ifndef U_HIDE_SYSTEM_API /** * Clean up the system resources, such as allocated memory or open files, * used in all ICU libraries. This will free/delete all memory owned by the @@ -245,5 +246,6 @@ typedef void U_CALLCONV UMemFreeFn (const void *context, void *mem); U_STABLE void U_EXPORT2 u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f, UErrorCode *status); +#endif /* U_HIDE_SYSTEM_API */ #endif diff --git a/icu4c/source/common/unicode/ucnv.h b/icu4c/source/common/unicode/ucnv.h index 4deed691dd6..4a23addf4b1 100644 --- a/icu4c/source/common/unicode/ucnv.h +++ b/icu4c/source/common/unicode/ucnv.h @@ -1857,6 +1857,7 @@ ucnv_getCanonicalName(const char *alias, const char *standard, UErrorCode *pErro U_STABLE const char * U_EXPORT2 ucnv_getDefaultName(void); +#ifndef U_HIDE_SYSTEM_API /** * This function is not thread safe. DO NOT call this function when ANY ICU * function is being used from more than one thread! This function sets the @@ -1875,6 +1876,7 @@ ucnv_getDefaultName(void); */ U_STABLE void U_EXPORT2 ucnv_setDefaultName(const char *name); +#endif /* U_HIDE_SYSTEM_API */ /** * Fixes the backslash character mismapping. For example, in SJIS, the backslash diff --git a/icu4c/source/common/unicode/uloc.h b/icu4c/source/common/unicode/uloc.h index 2fa0b8fdba1..6829e28e342 100644 --- a/icu4c/source/common/unicode/uloc.h +++ b/icu4c/source/common/unicode/uloc.h @@ -359,6 +359,7 @@ typedef enum { ULOC_DATA_LOCALE_TYPE_LIMIT = 3 } ULocDataLocaleType ; +#ifndef U_HIDE_SYSTEM_API /** * Gets ICU's default locale. * The returned string is a snapshot in time, and will remain valid @@ -393,6 +394,7 @@ uloc_getDefault(void); U_STABLE void U_EXPORT2 uloc_setDefault(const char* localeID, UErrorCode* status); +#endif /* U_HIDE_SYSTEM_API */ /** * Gets the language code for the specified locale. diff --git a/icu4c/source/i18n/unicode/timezone.h b/icu4c/source/i18n/unicode/timezone.h index e314e1039d0..274df3c9885 100644 --- a/icu4c/source/i18n/unicode/timezone.h +++ b/icu4c/source/i18n/unicode/timezone.h @@ -280,6 +280,7 @@ public: * * @param zone The given timezone. * @system + * @stable ICU 2.0 */ static void U_EXPORT2 setDefault(const TimeZone& zone); #endif /* U_HIDE_SYSTEM_API */ -- 2.50.1