ICU 64.2
64.2
|
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. More... | |
Enumerations | |
enum | UGender { UGENDER_MALE, UGENDER_FEMALE, UGENDER_OTHER } |
Genders. More... | |
Functions | |
const UGenderInfo * | ugender_getInstance (const char *locale, UErrorCode *status) |
Opens a new UGenderInfo object given locale. More... | |
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. More... | |
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 |
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 |
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. |