ICU 56.1: gender.h Source File

ICU 56.1 56.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

gender.h
1 /*
2 *******************************************************************************
3 * Copyright (C) 2008-2013, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 *******************************************************************************
6 *
7 *
8 * File GENDER.H
9 *
10 * Modification History:*
11 * Date Name Description
12 *
13 ********************************************************************************
14 */
15
16 #ifndef _GENDER
17 #define _GENDER
18
19 #include "unicode/utypes.h"
20
21 #if !UCONFIG_NO_FORMATTING
22
23 #include "unicode/locid.h"
24 #include "unicode/ugender.h"
25 #include "unicode/uobject.h"
26
27 class GenderInfoTest;
28
29 U_NAMESPACE_BEGIN
30
31 // Forward Declaration
32 void U_CALLCONV GenderInfo_initCache(UErrorCode &status);
33
39 class U_I18N_API GenderInfo : public UObject {
40 public:
41
56 static const GenderInfo* U_EXPORT2 getInstance(const Locale& locale, UErrorCode& status);
57
69 UGender getListGender(const UGender* genders, int32_t length, UErrorCode& status) const;
70
76 virtual ~GenderInfo();
77
78 private:
79 int32_t _style;
80
85 GenderInfo(const GenderInfo& other);
86
90 GenderInfo& operator=(const GenderInfo&);
91
92 GenderInfo();
93
94 static const GenderInfo* getNeutralInstance();
95
96 static const GenderInfo* getMixedNeutralInstance();
97
98 static const GenderInfo* getMaleTaintsInstance();
99
100 static const GenderInfo* loadInstance(const Locale& locale, UErrorCode& status);
101
102 friend class ::GenderInfoTest;
103 friend void U_CALLCONV GenderInfo_initCache(UErrorCode &status);
104 };
105
106 U_NAMESPACE_END
107
108 #endif /* #if !UCONFIG_NO_FORMATTING */
109
110 #endif // _GENDER
111 //eof
ugender.h
C API: The purpose of this API is to compute the gender of a list as a whole given the gender of each...
UGender
UGender
Genders.
Definition: ugender.h:28
icu::GenderInfo
GenderInfo computes the gender of a list as a whole given the gender of each element.
Definition: gender.h:39
U_CALLCONV
#define U_CALLCONV
Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...
Definition: platform.h:823
U_I18N_API
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Definition: utypes.h:358
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
uobject.h
C++ API: Common ICU base class UObject.
U_NAMESPACE_END
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
UErrorCode
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
locid.h
C++ API: Locale ID object.
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
icu::UObject
UObject is the common ICU "boilerplate" class.
Definition: uobject.h:221
icu::Locale
A Locale object represents a specific geographical, political, or cultural region.
Definition: locid.h:185