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