]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/uplrule.cpp
2 *****************************************************************************************
3 * Copyright (C) 2010-2011 Apple Inc. All Rights Reserved.
4 *****************************************************************************************
7 #include "unicode/utypes.h"
9 #if !UCONFIG_NO_FORMATTING
11 #include "unicode/upluralrules.h"
12 #include "unicode/uplrule.h"
16 U_CAPI UPluralRules
* U_EXPORT2
17 uplrule_open(const char *locale
,
20 return uplrules_open(locale
, status
);
24 uplrule_close(UPluralRules
*plrules
)
26 uplrules_close(plrules
);
29 U_CAPI
int32_t U_EXPORT2
30 uplrule_select(const UPluralRules
*plrules
,
32 UChar
*keyword
, int32_t capacity
,
35 return uplrules_select(plrules
, number
, keyword
, capacity
, status
);
38 U_CAPI
int32_t U_EXPORT2
39 uplrule_selectDouble(const UPluralRules
*plrules
,
41 UChar
*keyword
, int32_t capacity
,
44 return uplrules_select(plrules
, number
, keyword
, capacity
, status
);
47 #endif /* #if !UCONFIG_NO_FORMATTING */