Movatterモバイル変換


[0]ホーム

URL:


ICU 78.2  78.2
Public Member Functions |Static Public Member Functions |Friends
icu::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 icu::GenderInfo:

Public Member Functions

UGender getListGender (constUGender *genders, int32_t length,UErrorCode &status) const
 Determines the gender of a list as a whole given the gender of each of the elements.More...
 
virtual ~GenderInfo ()
 Destructor.More...
 
- Public Member Functions inherited fromicu::UObject
virtual ~UObject ()
 Destructor.More...
 
virtualUClassID getDynamicClassID () const
 ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.More...
 

Static Public Member Functions

static constGenderInfogetInstance (constLocale &locale,UErrorCode &status)
 Provides access to the predefinedGenderInfo object for a given locale.More...
 

Friends

class ::GenderInfoTest
 
void GenderInfo_initCache (UErrorCode &status)
 

Detailed Description

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

Stable:
ICU 50

Definition at line48 of filegender.h.

Constructor & Destructor Documentation

◆ ~GenderInfo()

virtual icu::GenderInfo::~GenderInfo()
virtual

Destructor.

Stable:
ICU 50

Member Function Documentation

◆ getInstance()

static constGenderInfo* icu::GenderInfo::getInstance(constLocalelocale,
UErrorCodestatus 
)
static

Provides access to the predefinedGenderInfo object for a given locale.

Parameters
localeThe locale for which aGenderInfo object is returned.
statusOutput param set to success/failure code on exit, which must not indicate a failure before the function call.
Returns
The predefinedGenderInfo 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.
Stable:
ICU 50

◆ getListGender()

UGender icu::GenderInfo::getListGender(constUGendergenders,
int32_t length,
UErrorCodestatus 
) 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.
Stable:
ICU 50

Friends And Related Function Documentation

◆ GenderInfo_initCache

void GenderInfo_initCache(UErrorCodestatus)
friend
Internal:
Do not use.

This API is for internal use only. Forward Declaration


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

Generated by doxygen 1.9.1
[8]ページ先頭

©2009-2026 Movatter.jp