ICU 55.1
55.1
source
i18n
unicode
ugender.h
Go to the documentation of this file.
1
/*
2
*****************************************************************************************
3
* Copyright (C) 2010-2013, 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
{
33
UGENDER_MALE
,
38
UGENDER_FEMALE
,
43
UGENDER_OTHER
44
};
48
typedef
enum
UGender
UGender
;
49
54
struct
UGenderInfo;
55
typedef
struct
UGenderInfo UGenderInfo;
56
64
U_STABLE
const
UGenderInfo* U_EXPORT2
65
ugender_getInstance
(
const
char
*locale,
UErrorCode
*status);
66
67
77
U_STABLE
UGender
U_EXPORT2
78
ugender_getListGender
(
const
UGenderInfo* genderinfo,
const
UGender
*genders, int32_t size,
UErrorCode
*status);
79
80
#endif
/* #if !UCONFIG_NO_FORMATTING */
81
82
#endif
UGENDER_MALE
@ UGENDER_MALE
Male gender.
Definition:
ugender.h:33
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
ugender_getInstance
const UGenderInfo * ugender_getInstance(const char *locale, UErrorCode *status)
Opens a new UGenderInfo object given locale.
UGENDER_OTHER
@ UGENDER_OTHER
Neutral gender.
Definition:
ugender.h:43
UErrorCode
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Definition:
utypes.h:476
ugender_getListGender
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.
localpointer.h
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
U_STABLE
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition:
umachine.h:109
UGENDER_FEMALE
@ UGENDER_FEMALE
Female gender.
Definition:
ugender.h:38
UGender
UGender
Genders.
Definition:
ugender.h:28
Generated by
1.8.20