]> granicus.if.org Git - icu/commitdiff
ICU-9643 (C) Change "@internal ICU 50" display context API to "@draft ICU 51"
authorPeter Edberg <pedberg@unicode.org>
Wed, 28 Nov 2012 01:12:46 +0000 (01:12 +0000)
committerPeter Edberg <pedberg@unicode.org>
Wed, 28 Nov 2012 01:12:46 +0000 (01:12 +0000)
X-SVN-Rev: 32900

icu4c/source/i18n/unicode/locdspnm.h
icu4c/source/i18n/unicode/smpdtfmt.h
icu4c/source/i18n/unicode/udat.h
icu4c/source/i18n/unicode/udisplaycontext.h
icu4c/source/i18n/unicode/uldnames.h

index 65c4c8ea2f878123059f257edfc1ea30f4982102..114b0c7ccab84c5b1c0711585b03a4d40106553a 100644 (file)
@@ -61,7 +61,7 @@ public:
     static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale,
                             UDialectHandling dialectHandling);
 
-#ifndef U_HIDE_INTERNAL_API
+#ifndef U_HIDE_DRAFT_API
     /**
      * Returns an instance of LocaleDisplayNames that returns names formatted
      * for the provided locale, using the provided UDisplayContext settings.
@@ -71,11 +71,11 @@ public:
      *               handling, capitalization, etc.
      * @param length Number of items in the contexts list
      * @return a LocaleDisplayNames instance
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     static LocaleDisplayNames* U_EXPORT2 createInstance(const Locale& locale,
                             UDisplayContext *contexts, int32_t length);
-#endif  /* U_HIDE_INTERNAL_API */
+#endif  /* U_HIDE_DRAFT_API */
 
     // getters for state
     /**
@@ -97,7 +97,7 @@ public:
      * Returns the UDisplayContext value for the specified UDisplayContextType.
      * @param type the UDisplayContextType whose value to return
      * @return the UDisplayContext for the specified type.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     virtual UDisplayContext getContext(UDisplayContextType type) const = 0;
 
index aec9c041fa6d31db2392548907cd295efc830a0e..475c17d3598e2a818b8f709decdcaf330fca9cea 100644 (file)
@@ -775,7 +775,7 @@ public:
      */
     virtual void adoptCalendar(Calendar* calendarToAdopt);
 
-    /* Cannot use #ifndef U_HIDE_INTERNAL_API for the following draft method since it is virtual */
+    /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
     /**
      * Set a particular UDisplayContext value in the formatter, such as
      * UDISPCTX_CAPITALIZATION_FOR_STANDALONE.
@@ -783,11 +783,11 @@ public:
      * @param status Input/output status. If at entry this indicates a failure
      *               status, the function will do nothing; otherwise this will be
      *               updated with any new status from the function. 
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     virtual void setContext(UDisplayContext value, UErrorCode& status);
 
-    /* Cannot use #ifndef U_HIDE_INTERNAL_API for the following draft method since it is virtual */
+    /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
     /**
      * Get the formatter's UDisplayContext value for the specified UDisplayContextType,
      * such as UDISPCTX_TYPE_CAPITALIZATION.
@@ -796,7 +796,7 @@ public:
      *               status, the function will do nothing; otherwise this will be
      *               updated with any new status from the function. 
      * @return The UDisplayContextValue for the specified type.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     virtual UDisplayContext getContext(UDisplayContextType type, UErrorCode& status) const;
 
index ede0b1ece17d63e1da5996ef00975dcec7c5b39a..57df6736a7c28dc4bd514a9d09b3bd052b81437f 100644 (file)
@@ -1193,16 +1193,16 @@ udat_getLocaleByType(const UDateFormat *fmt,
                      ULocDataLocaleType type,
                      UErrorCode* status); 
 
-#ifndef U_HIDE_INTERNAL_API
+#ifndef U_HIDE_DRAFT_API
 /**
  * Set a particular UDisplayContext value in the formatter, such as
  * UDISPCTX_CAPITALIZATION_FOR_STANDALONE.
  * @param fmt The formatter for which to set a UDisplayContext value.
  * @param value The UDisplayContext value to set.
  * @param status A pointer to an UErrorCode to receive any errors
- * @internal ICU 50 technology preview
+ * @draft ICU 51
  */
-U_INTERNAL void U_EXPORT2
+U_DRAFT void U_EXPORT2
 udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status);
 
 /**
@@ -1212,12 +1212,12 @@ udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status);
  * @param type The UDisplayContextType whose value to return
  * @param status A pointer to an UErrorCode to receive any errors
  * @return The UDisplayContextValue for the specified type.
- * @internal ICU 50 technology preview
+ * @draft ICU 51
  */
-U_INTERNAL UDisplayContext U_EXPORT2
+U_DRAFT UDisplayContext U_EXPORT2
 udat_getContext(UDateFormat* fmt, UDisplayContextType type, UErrorCode* status);
 
-#endif  /* U_HIDE_INTERNAL_API */
+#endif  /* U_HIDE_DRAFT_API */
 
 #ifndef U_HIDE_INTERNAL_API
 /**
index f41cd635ad276f388c5b42dc24e8cc47000feefc..8dc9f625c621e8e0edee55ba70a3a8c49dd3b989 100644 (file)
 
 #if !UCONFIG_NO_FORMATTING
 
-/* Dont hide with #ifndef U_HIDE_INTERNAL_API, needed by virtual methods */
+/* Dont hide with #ifndef U_HIDE_DRAFT_API, needed by virtual methods */
 /**
  * Display context types, for getting values of a particular setting.
  * Note, the specific numeric values are internal and may change.
- * @internal ICU 50 technology preview
+ * @draft ICU 51
  */
 enum UDisplayContextType {
     /**
      * Type to retrieve the dialect handling setting, e.g.
      * UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_TYPE_DIALECT_HANDLING = 0,
     /**
      * Type to retrieve the capitalization context setting, e.g.
      * UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE,
      * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_TYPE_CAPITALIZATION = 1
 };
 /**
-*  @internal ICU 50 technology preview
+*  @draft ICU 51
 */
 typedef enum UDisplayContextType UDisplayContextType;
 
-/* Dont hide with #ifndef U_HIDE_INTERNAL_API, needed by virtual methods */
+/* Dont hide with #ifndef U_HIDE_DRAFT_API, needed by virtual methods */
 /**
  * Display context settings.
  * Note, the specific numeric values are internal and may change.
- * @internal ICU 50 technology preview
+ * @draft ICU 51
  */
 enum UDisplayContext {
     /**
@@ -55,14 +55,14 @@ enum UDisplayContext {
      * A possible setting for DIALECT_HANDLING:
      * use standard names when generating a locale name,
      * e.g. en_GB displays as 'English (United Kingdom)'.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0,
     /**
      * A possible setting for DIALECT_HANDLING:
      * use dialect names, when generating a locale name,
      * e.g. en_GB displays as 'British English'.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1,
     /**
@@ -76,37 +76,37 @@ enum UDisplayContext {
      */
     /**
      * The capitalization context to be used is unknown (this is the default value).
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0,
     /**
      * The capitalization context if a date, date symbol or display name is to be
      * formatted with capitalization appropriate for the middle of a sentence.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1,
     /**
      * The capitalization context if a date, date symbol or display name is to be
      * formatted with capitalization appropriate for the beginning of a sentence.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2,
     /**
      * The capitalization context if a date, date symbol or display name is to be
      * formatted with capitalization appropriate for a user-interface list or menu item.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3,
     /**
      * The capitalization context if a date, date symbol or display name is to be
      * formatted with capitalization appropriate for stand-alone usage such as an
      * isolated name on a calendar page.
-     * @internal ICU 50 technology preview
+     * @draft ICU 51
      */
     UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4
 };
 /**
-*  @internal ICU 50 technology preview
+*  @draft ICU 51
 */
 typedef enum UDisplayContext UDisplayContext;
 
index 36e74f783084078e83096199d85d3ba7cf912182..6b2b905e33a046fde8dcd68ba5e076041d38560a 100644 (file)
@@ -266,7 +266,7 @@ uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn,
                          int32_t maxResultSize,
                          UErrorCode *pErrorCode);
 
-#ifndef U_HIDE_INTERNAL_API
+#ifndef U_HIDE_DRAFT_API
 /**
 * Returns an instance of LocaleDisplayNames that returns names formatted
 * for the provided locale, using the provided UDisplayContext settings.
@@ -279,9 +279,9 @@ uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn,
 *               a failure status, the function will do nothing; otherwise this will be
 *               updated with any new status from the function. 
 * @return a ULocaleDisplayNames instance 
-* @internal ICU 50 technology preview
+* @draft ICU 51
 */
-U_INTERNAL ULocaleDisplayNames * U_EXPORT2
+U_DRAFT ULocaleDisplayNames * U_EXPORT2
 uldn_openForContext(const char * locale, UDisplayContext *contexts,
                     int32_t length, UErrorCode *pErrorCode);
 
@@ -293,13 +293,13 @@ uldn_openForContext(const char * locale, UDisplayContext *contexts,
 *               a failure status, the function will do nothing; otherwise this will be
 *               updated with any new status from the function. 
 * @return the UDisplayContextValue for the specified type.
-* @internal ICU 50 technology preview
+* @draft ICU 51
 */
-U_INTERNAL UDisplayContext U_EXPORT2
+U_DRAFT UDisplayContext U_EXPORT2
 uldn_getContext(const ULocaleDisplayNames *ldn, UDisplayContextType type,
                 UErrorCode *pErrorCode);
 
-#endif  /* U_HIDE_INTERNAL_API */
+#endif  /* U_HIDE_DRAFT_API */
 
 #endif  /* !UCONFIG_NO_FORMATTING */
 #endif  /* __ULDNAMES_H__ */