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