]>
Commit | Line | Data |
---|---|---|
729e4ab9 A |
1 | /* |
2 | ***************************************************************************************** | |
4388f060 | 3 | * Copyright (C) 2010-2011 Apple Inc. All Rights Reserved. |
729e4ab9 A |
4 | ***************************************************************************************** |
5 | */ | |
6 | ||
7 | #include "unicode/utypes.h" | |
8 | ||
9 | #if !UCONFIG_NO_FORMATTING | |
10 | ||
4388f060 | 11 | #include "unicode/upluralrules.h" |
729e4ab9 | 12 | #include "unicode/uplrule.h" |
729e4ab9 A |
13 | |
14 | U_NAMESPACE_USE | |
15 | ||
16 | U_CAPI UPluralRules* U_EXPORT2 | |
17 | uplrule_open(const char *locale, | |
18 | UErrorCode *status) | |
19 | { | |
4388f060 | 20 | return uplrules_open(locale, status); |
729e4ab9 A |
21 | } |
22 | ||
23 | U_CAPI void U_EXPORT2 | |
24 | uplrule_close(UPluralRules *plrules) | |
25 | { | |
4388f060 | 26 | uplrules_close(plrules); |
729e4ab9 A |
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 | { | |
4388f060 | 35 | return uplrules_select(plrules, number, keyword, capacity, status); |
729e4ab9 A |
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 | { | |
4388f060 | 44 | return uplrules_select(plrules, number, keyword, capacity, status); |
729e4ab9 A |
45 | } |
46 | ||
47 | #endif /* #if !UCONFIG_NO_FORMATTING */ |