ICU 56.1
56.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
i18n
unicode
upluralrules.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 UPLURALRULES_H
9
#define UPLURALRULES_H
10
11
#include "
unicode/utypes.h
"
12
13
#if !UCONFIG_NO_FORMATTING
14
15
#include "
unicode/localpointer.h
"
16
44
enum
UPluralType
{
49
UPLURAL_TYPE_CARDINAL
,
54
UPLURAL_TYPE_ORDINAL
,
59
UPLURAL_TYPE_COUNT
60
};
64
typedef
enum
UPluralType
UPluralType
;
65
70
struct
UPluralRules
;
71
typedef
struct
UPluralRules
UPluralRules
;
82
U_STABLE
UPluralRules
* U_EXPORT2
83
uplrules_open
(
const
char
*locale,
UErrorCode
*status);
84
94
U_DRAFT
UPluralRules
* U_EXPORT2
95
uplrules_openForType
(
const
char
*locale,
UPluralType
type,
UErrorCode
*status);
96
102
U_STABLE
void
U_EXPORT2
103
uplrules_close
(
UPluralRules
*uplrules);
104
105
106
#if U_SHOW_CPLUSPLUS_API
107
108
U_NAMESPACE_BEGIN
109
119
U_DEFINE_LOCAL_OPEN_POINTER
(
LocalUPluralRulesPointer
,
UPluralRules
,
uplrules_close
);
120
121
U_NAMESPACE_END
122
123
#endif
124
125
137
U_STABLE
int32_t U_EXPORT2
138
uplrules_select
(
const
UPluralRules
*uplrules,
139
double
number,
140
UChar
*keyword, int32_t capacity,
141
UErrorCode
*status);
142
143
#endif
/* #if !UCONFIG_NO_FORMATTING */
144
145
#endif
Generated on Wed Oct 7 2015 21:17:57 for ICU 56.1 by
1.8.1.2