From: Peter Edberg Date: Fri, 5 Sep 2014 05:26:55 +0000 (+0000) Subject: ICU-10968 Add #ifndef U_HIDE_DRAFT_API for the new enum values X-Git-Tag: milestone-59-0-1~1623 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46ad07cddf591b945644c701ab21b826b7ad463d;p=icu ICU-10968 Add #ifndef U_HIDE_DRAFT_API for the new enum values X-SVN-Rev: 36353 --- diff --git a/icu4c/source/i18n/unicode/udisplaycontext.h b/icu4c/source/i18n/unicode/udisplaycontext.h index 70dd273af94..98414692a9e 100644 --- a/icu4c/source/i18n/unicode/udisplaycontext.h +++ b/icu4c/source/i18n/unicode/udisplaycontext.h @@ -36,12 +36,14 @@ enum UDisplayContextType { * @stable ICU 51 */ UDISPCTX_TYPE_CAPITALIZATION = 1, +#ifndef U_HIDE_DRAFT_API /** * Type to retrieve the display length setting, e.g. * UDISPCTX_LENGTH_FULL, UDISPCTX_LENGTH_SHORT. * @draft ICU 54 */ - UDISPCTX_TYPE_DISPLAY_LENGTH = 2 + UDISPCTX_TYPE_DISPLAY_LENGTH = 2, +#endif /* U_HIDE_DRAFT_API */ }; /** * @stable ICU 51 @@ -113,6 +115,7 @@ enum UDisplayContext { * @stable ICU 51 */ UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4, +#ifndef U_HIDE_DRAFT_API /** * ================================ * DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or @@ -132,7 +135,8 @@ enum UDisplayContext { * e.g. "U.S." for US. * @draft ICU 54 */ - UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1 + UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1, +#endif /* U_HIDE_DRAFT_API */ }; /** * @stable ICU 51