ICU 50.2 50.2
GenderInfo Class Reference

GenderInfo computes the gender of a list as a whole given the gender of each element. More...

#include <gender.h>

Inheritance diagram for GenderInfo:
UObject UMemory

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.
 
- Public Member Functions inherited from UObject
virtual ~UObject ()
 Destructor.
 

Static Public Member Functions

static const GenderInfogetInstance (const Locale &locale, UErrorCode &status)
 Provides access to the predefined GenderInfo object for a given locale.
 

Friends

class ::GenderInfoTest
 

Detailed Description

GenderInfo computes the gender of a list as a whole given the gender of each element.

Draft
This API may be changed in the future versions and was introduced in ICU 50

Definition at line 36 of file gender.h.

Constructor & Destructor Documentation

◆ ~GenderInfo()

virtual GenderInfo::~GenderInfo ( )
virtual

Destructor.

Draft
This API may be changed in the future versions and was introduced in ICU 50
Internal
Do not use. This API is for internal use only.

Member Function Documentation

◆ getInstance()

static const GenderInfo * GenderInfo::getInstance ( const Locale & locale,
UErrorCode & status )
static

Provides access to the predefined GenderInfo object for a given locale.

Parameters
localeThe locale for which a GenderInfo object is returned.
statusOutput param set to success/failure code on exit, which must not indicate a failure before the function call.
Returns
The predefined 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.
Draft
This API may be changed in the future versions and was introduced in ICU 50

◆ getListGender()

UGender 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.

Parameters
gendersthe gender of each element in the list.
lengththe length of gender array.
statusOutput param set to success/failure code on exit, which must not indicate a failure before the function call.
Returns
the gender of the whole list.
Draft
This API may be changed in the future versions and was introduced in ICU 50

Friends And Related Symbol Documentation

◆ ::GenderInfoTest

friend class ::GenderInfoTest
friend

Definition at line 105 of file gender.h.


The documentation for this class was generated from the following file: