ICU 50.1.2  50.1.2
ugender.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2010-2012, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *****************************************************************************************
6 */
7 
8 #ifndef UGENDER_H
9 #define UGENDER_H
10 
11 #include "unicode/utypes.h"
12 
13 #if !UCONFIG_NO_FORMATTING
14 
15 #include "unicode/localpointer.h"
16 
28 enum UGender {
44 };
48 typedef enum UGender UGender;
49 
54 struct UGenderInfo;
55 typedef struct UGenderInfo UGenderInfo;
56 
63 U_STABLE const UGenderInfo* U_EXPORT2
64 ugender_getInstance(const char *locale, UErrorCode *status);
65 
66 
76 U_DRAFT UGender U_EXPORT2
77 ugender_getListGender(const UGenderInfo* genderinfo, const UGender *genders, int32_t size, UErrorCode *status);
78 
79 #endif /* #if !UCONFIG_NO_FORMATTING */
80 
81 #endif
Neutral gender.
Definition: ugender.h:43
UGender
Genders.
Definition: ugender.h:28
const UGenderInfo * ugender_getInstance(const char *locale, UErrorCode *status)
Opens a new UGenderInfo object given locale.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
Female gender.
Definition: ugender.h:38
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
Male gender.
Definition: ugender.h:33
Basic definitions for ICU, for both C and C++ APIs.
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.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
Definition: umachine.h:111
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109