X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/51004dcb01e06fef634b61be77ed73dd61cb6db9..HEAD:/icuSources/i18n/unicode/ugender.h?ds=sidebyside diff --git a/icuSources/i18n/unicode/ugender.h b/icuSources/i18n/unicode/ugender.h index 6d6cf3a1..903f3dd5 100644 --- a/icuSources/i18n/unicode/ugender.h +++ b/icuSources/i18n/unicode/ugender.h @@ -1,3 +1,5 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ***************************************************************************************** * Copyright (C) 2010-2013, International Business Machines @@ -11,7 +13,6 @@ #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING -#ifndef U_HIDE_DRAFT_API #include "unicode/localpointer.h" @@ -24,44 +25,45 @@ /** * Genders - * @draft ICU 50 + * @stable ICU 50 */ enum UGender { /** * Male gender. - * @draft ICU 50 + * @stable ICU 50 */ UGENDER_MALE, /** * Female gender. - * @draft ICU 50 + * @stable ICU 50 */ UGENDER_FEMALE, /** * Neutral gender. - * @draft ICU 50 + * @stable ICU 50 */ UGENDER_OTHER }; /** - * @draft ICU 50 + * @stable ICU 50 */ typedef enum UGender UGender; +struct UGenderInfo; /** * Opaque UGenderInfo object for use in C programs. - * @draft ICU 50 + * @stable ICU 50 */ -struct UGenderInfo; typedef struct UGenderInfo UGenderInfo; /** * Opens a new UGenderInfo object given locale. * @param locale The locale for which the rules are desired. + * @param status UErrorCode pointer * @return A UGenderInfo for the specified locale, or NULL if an error occurred. - * @draft ICU 50 + * @stable ICU 50 */ -U_DRAFT const UGenderInfo* U_EXPORT2 +U_STABLE const UGenderInfo* U_EXPORT2 ugender_getInstance(const char *locale, UErrorCode *status); @@ -72,12 +74,11 @@ ugender_getInstance(const char *locale, UErrorCode *status); * @param size the size of the list. * @param status A pointer to a UErrorCode to receive any errors. * @return The gender of the list. - * @draft ICU 50 + * @stable ICU 50 */ -U_DRAFT UGender U_EXPORT2 -ugender_getListGender(const UGenderInfo* genderinfo, const UGender *genders, int32_t size, UErrorCode *status); +U_STABLE UGender U_EXPORT2 +ugender_getListGender(const UGenderInfo* genderInfo, const UGender *genders, int32_t size, UErrorCode *status); -#endif /* U_HIDE_DRAFT_API */ #endif /* #if !UCONFIG_NO_FORMATTING */ #endif