#include <gender.h>
Inheritance diagram for icu::GenderInfo:
Public Member Functions | |
UGender | getListGender (const UGender *genders, int32_t length, UErrorCode &status) const |
Determines the gender of a list as a whole given the gender of each of the elements. | |
virtual | ~GenderInfo () |
Destructor. | |
Static Public Member Functions | |
static const GenderInfo * | getInstance (const Locale &locale, UErrorCode &status) |
Provides access to the predefined GenderInfo object for a given locale. | |
Friends | |
class | ::GenderInfoTest |
Definition at line 36 of file gender.h.
virtual icu::GenderInfo::~GenderInfo | ( | ) | [virtual] |
static const GenderInfo* icu::GenderInfo::getInstance | ( | const Locale & | locale, | |
UErrorCode & | status | |||
) | [static] |
Provides access to the predefined GenderInfo object for a given locale.
locale | The locale for which a GenderInfo object is returned. | |
status | Output param set to success/failure code on exit, which must not indicate a failure before the function call. |
GenderInfo
object pointer for this locale. The returned object is immutable, so it is declared as const. Caller does not own the returned pointer, so it must not attempt to free it. UGender icu::GenderInfo::getListGender | ( | const UGender * | genders, | |
int32_t | length, | |||
UErrorCode & | status | |||
) | const |
Determines the gender of a list as a whole given the gender of each of the elements.
genders | the gender of each element in the list. | |
length | the length of gender array. | |
status | Output param set to success/failure code on exit, which must not indicate a failure before the function call. |