ICU 51.2  51.2
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 
40 #ifndef U_HIDE_DRAFT_API
41 
61 };
65 typedef enum UPluralType UPluralType;
66 #endif /* U_HIDE_DRAFT_API */
67 
72 struct UPluralRules;
73 typedef struct UPluralRules UPluralRules;
84 U_STABLE UPluralRules* U_EXPORT2
85 uplrules_open(const char *locale, UErrorCode *status);
86 
87 #ifndef U_HIDE_DRAFT_API
88 
97 U_DRAFT UPluralRules* U_EXPORT2
98 uplrules_openForType(const char *locale, UPluralType type, UErrorCode *status);
99 #endif /* U_HIDE_DRAFT_API */
100 
106 U_STABLE void U_EXPORT2
107 uplrules_close(UPluralRules *uplrules);
108 
109 
110 #if U_SHOW_CPLUSPLUS_API
111 
113 
124 
126 
127 #endif
128 
129 
141 U_STABLE int32_t U_EXPORT2
142 uplrules_select(const UPluralRules *uplrules,
143  double number,
144  UChar *keyword, int32_t capacity,
145  UErrorCode *status);
146 
147 #endif /* #if !UCONFIG_NO_FORMATTING */
148 
149 #endif