ICU 49.1.1  49.1.1
upluralrules.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2010-2012, 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 struct UPluralRules;
45 typedef struct UPluralRules UPluralRules;
55 U_DRAFT UPluralRules* U_EXPORT2
56 uplrules_open(const char *locale,
57  UErrorCode *status);
58 
64 U_DRAFT void U_EXPORT2
65 uplrules_close(UPluralRules *uplrules);
66 
67 
68 #if U_SHOW_CPLUSPLUS_API
69 
71 
81 U_DEFINE_LOCAL_OPEN_POINTER(LocalUPluralRulesPointer, UPluralRules, uplrules_close);
82 
84 
85 #endif
86 
87 
99 U_DRAFT int32_t U_EXPORT2
100 uplrules_select(const UPluralRules *uplrules,
101  double number,
102  UChar *keyword, int32_t capacity,
103  UErrorCode *status);
104 
105 #endif /* #if !UCONFIG_NO_FORMATTING */
106 
107 #endif