ugender.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*****************************************************************************************
* Copyright (C) 2010-2013, International Business Machines
* Corporation and others. All Rights Reserved.
*****************************************************************************************
*/
#ifndef UGENDER_H
#define UGENDER_H
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#if U_SHOW_CPLUSPLUS_API
#include "unicode/localpointer.h"
#endif // U_SHOW_CPLUSPLUS_API
enum UGender {
UGENDER_MALE,
UGENDER_FEMALE,
UGENDER_OTHER
};
typedef enum UGender UGender;
struct UGenderInfo;
typedef struct UGenderInfo UGenderInfo;
U_CAPI const UGenderInfo* U_EXPORT2
ugender_getInstance(const char *locale, UErrorCode *status);
U_CAPI UGender U_EXPORT2
ugender_getListGender(const UGenderInfo* genderInfo, const UGender *genders, int32_t size, UErrorCode *status);
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif
localpointer.h
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
UGenderInfo
struct UGenderInfo UGenderInfo
Opaque UGenderInfo object for use in C programs.
Definition: ugender.h:59
ugender_getInstance
U_CAPI const UGenderInfo * ugender_getInstance(const char *locale, UErrorCode *status)
Opens a new UGenderInfo object given locale.
UGender
UGender
Genders.
Definition: ugender.h:32
UGENDER_FEMALE
@ UGENDER_FEMALE
Female gender.
Definition: ugender.h:42
UGENDER_MALE
@ UGENDER_MALE
Male gender.
Definition: ugender.h:37
UGENDER_OTHER
@ UGENDER_OTHER
Neutral gender.
Definition: ugender.h:47
ugender_getListGender
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.
U_CAPI
#define U_CAPI
This is used to declare a function as a public ICU C API.
Definition: umachine.h:110
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition: utypes.h:415