ICU 49.1.1
49.1.1
|
00001 /* 00002 ***************************************************************************************** 00003 * Copyright (C) 2010-2012, 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 00044 struct UPluralRules; 00045 typedef struct UPluralRules UPluralRules; 00055 U_DRAFT UPluralRules* U_EXPORT2 00056 uplrules_open(const char *locale, 00057 UErrorCode *status); 00058 00064 U_DRAFT void U_EXPORT2 00065 uplrules_close(UPluralRules *uplrules); 00066 00067 00068 #if U_SHOW_CPLUSPLUS_API 00069 00070 U_NAMESPACE_BEGIN 00071 00081 U_DEFINE_LOCAL_OPEN_POINTER(LocalUPluralRulesPointer, UPluralRules, uplrules_close); 00082 00083 U_NAMESPACE_END 00084 00085 #endif 00086 00087 00099 U_DRAFT int32_t U_EXPORT2 00100 uplrules_select(const UPluralRules *uplrules, 00101 double number, 00102 UChar *keyword, int32_t capacity, 00103 UErrorCode *status); 00104 00105 #endif /* #if !UCONFIG_NO_FORMATTING */ 00106 00107 #endif