]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/i18n/uplrule.cpp
ICU-511.32.tar.gz
[apple/icu.git] / icuSources / i18n / uplrule.cpp
... / ...
CommitLineData
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
14U_NAMESPACE_USE
15
16U_CAPI UPluralRules* U_EXPORT2
17uplrule_open(const char *locale,
18 UErrorCode *status)
19{
20 return uplrules_open(locale, status);
21}
22
23U_CAPI void U_EXPORT2
24uplrule_close(UPluralRules *plrules)
25{
26 uplrules_close(plrules);
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{
35 return uplrules_select(plrules, number, keyword, capacity, status);
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{
44 return uplrules_select(plrules, number, keyword, capacity, status);
45}
46
47#endif /* #if !UCONFIG_NO_FORMATTING */