]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/uplrule.cpp
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / uplrule.cpp
CommitLineData
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
14U_NAMESPACE_USE
15
16U_CAPI UPluralRules* U_EXPORT2
17uplrule_open(const char *locale,
18 UErrorCode *status)
19{
4388f060 20 return uplrules_open(locale, status);
729e4ab9
A
21}
22
23U_CAPI void U_EXPORT2
24uplrule_close(UPluralRules *plrules)
25{
4388f060 26 uplrules_close(plrules);
729e4ab9
A
27}
28
29U_CAPI int32_t U_EXPORT2
30uplrule_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
38U_CAPI int32_t U_EXPORT2
39uplrule_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 */