]> granicus.if.org Git - icu/commitdiff
ICU-8571 @system APIs are *supposed* to also have a regular API label; add #ifndef...
authorMarkus Scherer <markus.icu@gmail.com>
Mon, 1 Aug 2011 02:38:58 +0000 (02:38 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Mon, 1 Aug 2011 02:38:58 +0000 (02:38 +0000)
X-SVN-Rev: 30448

icu4c/source/common/unicode/locid.h
icu4c/source/common/unicode/uclean.h
icu4c/source/common/unicode/ucnv.h
icu4c/source/common/unicode/uloc.h
icu4c/source/i18n/unicode/timezone.h

index 3fdbe704371212d7d2a0b62d8aeb67b5972af97f..60c530faf111dd4887999664cb7dc6307778f85c 100644 (file)
@@ -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
index cba8c781a9ef97ae7b6419d3ac3daa0da2629fd5..93600b970a69da85440b248f160eba39e8e50ebc 100644 (file)
@@ -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
index 4deed691dd6babc5e9bd6e31eb2cbdea44d1a877..4a23addf4b1460eae1c99cd1b96342bcde5254de 100644 (file)
@@ -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 
index 2fa0b8fdba1571ae08c5031c9148743bfafc3e81..6829e28e3420ab4de15c406252543508e0a9ecf6 100644 (file)
@@ -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.
index e314e1039d06018c63969a79a2b8a7c5fb9a0682..274df3c98853d979881a749b1058abefa2eed132 100644 (file)
@@ -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 */