00001 // © 2016 and later: Unicode, Inc. and others. 00002 // License & terms of use: http://www.unicode.org/copyright.html 00003 /* 00004 ***************************************************************************************** 00005 * Copyright (C) 2015-2016, International Business Machines 00006 * Corporation and others. All Rights Reserved. 00007 ***************************************************************************************** 00008 */ 00009 00010 #ifndef ULISTFORMATTER_H 00011 #define ULISTFORMATTER_H 00012 00013 #include "unicode/utypes.h" 00014 00015 #if !UCONFIG_NO_FORMATTING 00016 00017 #include "unicode/localpointer.h" 00018 00033 struct UListFormatter; 00034 typedef struct UListFormatter UListFormatter; 00052 U_CAPI UListFormatter* U_EXPORT2 00053 ulistfmt_open(const char* locale, 00054 UErrorCode* status); 00055 00062 U_CAPI void U_EXPORT2 00063 ulistfmt_close(UListFormatter *listfmt); 00064 00065 00066 #if U_SHOW_CPLUSPLUS_API 00067 00068 U_NAMESPACE_BEGIN 00069 00079 U_DEFINE_LOCAL_OPEN_POINTER(LocalUListFormatterPointer, UListFormatter, ulistfmt_close); 00080 00081 U_NAMESPACE_END 00082 00083 #endif 00084 00119 U_CAPI int32_t U_EXPORT2 00120 ulistfmt_format(const UListFormatter* listfmt, 00121 const UChar* const strings[], 00122 const int32_t * stringLengths, 00123 int32_t stringCount, 00124 UChar* result, 00125 int32_t resultCapacity, 00126 UErrorCode* status); 00127 00128 #endif /* #if !UCONFIG_NO_FORMATTING */ 00129 00130 #endif
1.6.1