00001 /* 00002 ***************************************************************************************** 00003 * Copyright (C) 2015-2016, International Business Machines 00004 * Corporation and others. All Rights Reserved. 00005 ***************************************************************************************** 00006 */ 00007 00008 #ifndef ULISTFORMATTER_H 00009 #define ULISTFORMATTER_H 00010 00011 #include "unicode/utypes.h" 00012 00013 #if !UCONFIG_NO_FORMATTING 00014 00015 #include "unicode/localpointer.h" 00016 00031 struct UListFormatter; 00032 typedef struct UListFormatter UListFormatter; 00050 U_STABLE UListFormatter* U_EXPORT2 00051 ulistfmt_open(const char* locale, 00052 UErrorCode* status); 00053 00060 U_STABLE void U_EXPORT2 00061 ulistfmt_close(UListFormatter *listfmt); 00062 00063 00064 #if U_SHOW_CPLUSPLUS_API 00065 00066 U_NAMESPACE_BEGIN 00067 00077 U_DEFINE_LOCAL_OPEN_POINTER(LocalUListFormatterPointer, UListFormatter, ulistfmt_close); 00078 00079 U_NAMESPACE_END 00080 00081 #endif 00082 00117 U_DRAFT int32_t U_EXPORT2 00118 ulistfmt_format(const UListFormatter* listfmt, 00119 const UChar* const strings[], 00120 const int32_t * stringLengths, 00121 int32_t stringCount, 00122 UChar* result, 00123 int32_t resultCapacity, 00124 UErrorCode* status); 00125 00126 #endif /* #if !UCONFIG_NO_FORMATTING */ 00127 00128 #endif
1.6.1