ICU 4.8.1.1
4.8.1.1
|
00001 /* 00002 ***************************************************************************************** 00003 * Copyright (C) 2010-2011, International Business Machines 00004 * Corporation and others. All Rights Reserved. 00005 ***************************************************************************************** 00006 */ 00007 00008 #ifndef UPLURALRULES_H 00009 #define UPLURALRULES_H 00010 00011 #include "unicode/utypes.h" 00012 00013 #if !UCONFIG_NO_FORMATTING 00014 00015 #include "unicode/localpointer.h" 00016 00041 struct UPluralRules; 00042 typedef struct UPluralRules UPluralRules; 00052 U_DRAFT UPluralRules* U_EXPORT2 00053 uplrules_open(const char *locale, 00054 UErrorCode *status); 00055 00061 U_DRAFT void U_EXPORT2 00062 uplrules_close(UPluralRules *uplrules); 00063 00064 00065 #if U_SHOW_CPLUSPLUS_API 00066 00067 U_NAMESPACE_BEGIN 00068 00078 U_DEFINE_LOCAL_OPEN_POINTER(LocalUPluralRulesPointer, UPluralRules, uplrules_close); 00079 00080 U_NAMESPACE_END 00081 00082 #endif 00083 00084 00096 U_DRAFT int32_t U_EXPORT2 00097 uplrules_select(const UPluralRules *uplrules, 00098 double number, 00099 UChar *keyword, int32_t capacity, 00100 UErrorCode *status); 00101 00102 #endif /* #if !UCONFIG_NO_FORMATTING */ 00103 00104 #endif