]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | ***************************************************************************************** | |
3 | * Copyright (C) 2010-2011 Apple Inc. All Rights Reserved. | |
4 | ***************************************************************************************** | |
5 | */ | |
6 | ||
7 | #include "unicode/utypes.h" | |
8 | ||
9 | #if !UCONFIG_NO_FORMATTING | |
10 | ||
11 | #include "unicode/upluralrules.h" | |
12 | #include "unicode/uplrule.h" | |
13 | ||
14 | U_NAMESPACE_USE | |
15 | ||
16 | U_CAPI UPluralRules* U_EXPORT2 | |
17 | uplrule_open(const char *locale, | |
18 | UErrorCode *status) | |
19 | { | |
20 | return uplrules_open(locale, status); | |
21 | } | |
22 | ||
23 | U_CAPI void U_EXPORT2 | |
24 | uplrule_close(UPluralRules *plrules) | |
25 | { | |
26 | uplrules_close(plrules); | |
27 | } | |
28 | ||
29 | U_CAPI int32_t U_EXPORT2 | |
30 | uplrule_select(const UPluralRules *plrules, | |
31 | int32_t number, | |
32 | UChar *keyword, int32_t capacity, | |
33 | UErrorCode *status) | |
34 | { | |
35 | return uplrules_select(plrules, number, keyword, capacity, status); | |
36 | } | |
37 | ||
38 | U_CAPI int32_t U_EXPORT2 | |
39 | uplrule_selectDouble(const UPluralRules *plrules, | |
40 | double number, | |
41 | UChar *keyword, int32_t capacity, | |
42 | UErrorCode *status) | |
43 | { | |
44 | return uplrules_select(plrules, number, keyword, capacity, status); | |
45 | } | |
46 | ||
47 | #endif /* #if !UCONFIG_NO_FORMATTING */ |