ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
upluralrules.h
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2010-2011, 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 
41 struct UPluralRules;
42 typedef struct UPluralRules UPluralRules;
52 U_DRAFT UPluralRules* U_EXPORT2
53 uplrules_open(const char *locale,
54  UErrorCode *status);
55 
61 U_DRAFT void U_EXPORT2
62 uplrules_close(UPluralRules *uplrules);
63 
64 
65 #if U_SHOW_CPLUSPLUS_API
66 
68 
78 U_DEFINE_LOCAL_OPEN_POINTER(LocalUPluralRulesPointer, UPluralRules, uplrules_close);
79 
81 
82 #endif
83 
84 
96 U_DRAFT int32_t U_EXPORT2
97 uplrules_select(const UPluralRules *uplrules,
98  double number,
99  UChar *keyword, int32_t capacity,
100  UErrorCode *status);
101 
102 #endif /* #if !UCONFIG_NO_FORMATTING */
103 
104 #endif
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:131
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_EXPORT2
Definition: platform.h:314
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
Definition: umachine.h:325
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:132
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:639
Basic definitions for ICU, for both C and C++ APIs.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
Definition: umachine.h:139