ICU 76.1 76.1
|
C API: The purpose of this API is to compute the gender of a list as a whole given the gender of each element. More...
Go to the source code of this file.
Typedefs | |
typedef enum UGender | UGender |
typedef struct UGenderInfo | UGenderInfo |
Opaque UGenderInfo object for use in C programs. | |
Enumerations | |
enum | UGender { UGENDER_MALE , UGENDER_FEMALE , UGENDER_OTHER } |
Genders. More... | |
Functions | |
U_CAPI const UGenderInfo * | ugender_getInstance (const char *locale, UErrorCode *status) |
Opens a new UGenderInfo object given locale. | |
U_CAPI UGender | ugender_getListGender (const UGenderInfo *genderInfo, const UGender *genders, int32_t size, UErrorCode *status) |
Given a list, returns the gender of the list as a whole. | |
C API: The purpose of this API is to compute the gender of a list as a whole given the gender of each element.
Definition in file ugender.h.
typedef struct UGenderInfo UGenderInfo |
enum UGender |
U_CAPI const UGenderInfo * ugender_getInstance | ( | const char * | locale, |
UErrorCode * | status | ||
) |
Opens a new UGenderInfo object given locale.
locale | The locale for which the rules are desired. |
status | UErrorCode pointer |
U_CAPI UGender ugender_getListGender | ( | const UGenderInfo * | genderInfo, |
const UGender * | genders, | ||
int32_t | size, | ||
UErrorCode * | status | ||
) |
Given a list, returns the gender of the list as a whole.
genderInfo | pointer that ugender_getInstance returns. |
genders | the gender of each element in the list. |
size | the size of the list. |
status | A pointer to a UErrorCode to receive any errors. |