2 *****************************************************************************************
3 * Copyright (C) 2010-2013, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *****************************************************************************************
11 #include "unicode/utypes.h"
13 #if !UCONFIG_NO_FORMATTING
15 #include "unicode/localpointer.h"
19 * \brief C API: The purpose of this API is to compute the gender of a list as a
20 * whole given the gender of each element.
48 typedef enum UGender UGender
;
51 * Opaque UGenderInfo object for use in C programs.
55 typedef struct UGenderInfo UGenderInfo
;
58 * Opens a new UGenderInfo object given locale.
59 * @param locale The locale for which the rules are desired.
60 * @param status UErrorCode pointer
61 * @return A UGenderInfo for the specified locale, or NULL if an error occurred.
64 U_STABLE
const UGenderInfo
* U_EXPORT2
65 ugender_getInstance(const char *locale
, UErrorCode
*status
);
69 * Given a list, returns the gender of the list as a whole.
70 * @param genderInfo pointer that ugender_getInstance returns.
71 * @param genders the gender of each element in the list.
72 * @param size the size of the list.
73 * @param status A pointer to a UErrorCode to receive any errors.
74 * @return The gender of the list.
77 U_STABLE UGender U_EXPORT2
78 ugender_getListGender(const UGenderInfo
* genderinfo
, const UGender
*genders
, int32_t size
, UErrorCode
*status
);
80 #endif /* #if !UCONFIG_NO_FORMATTING */