ICU 75.1 75.1
Loading...
Searching...
No Matches
ugender.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4*****************************************************************************************
5* Copyright (C) 2010-2013, International Business Machines
6* Corporation and others. All Rights Reserved.
7*****************************************************************************************
8*/
9
10#ifndef UGENDER_H
11#define UGENDER_H
12
13#include "unicode/utypes.h"
14
15#if !UCONFIG_NO_FORMATTING
16
17#if U_SHOW_CPLUSPLUS_API
19#endif // U_SHOW_CPLUSPLUS_API
20
52typedef enum UGender UGender;
53
54struct UGenderInfo;
59typedef struct UGenderInfo UGenderInfo;
60
68U_CAPI const UGenderInfo* U_EXPORT2
69ugender_getInstance(const char *locale, UErrorCode *status);
70
71
81U_CAPI UGender U_EXPORT2
82ugender_getListGender(const UGenderInfo* genderInfo, const UGender *genders, int32_t size, UErrorCode *status);
83
84#endif /* #if !UCONFIG_NO_FORMATTING */
85
86#endif
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
struct UGenderInfo UGenderInfo
Opaque UGenderInfo object for use in C programs.
Definition ugender.h:59
UGender
Genders.
Definition ugender.h:32
@ UGENDER_FEMALE
Female gender.
Definition ugender.h:42
@ UGENDER_MALE
Male gender.
Definition ugender.h:37
@ UGENDER_OTHER
Neutral gender.
Definition ugender.h:47
U_CAPI const UGenderInfo * ugender_getInstance(const char *locale, UErrorCode *status)
Opens a new UGenderInfo object given locale.
U_CAPI 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_CAPI
This is used to declare a function as a public ICU C API.
Definition umachine.h:110
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition utypes.h:415