00001
00002
00003
00004
00005
00006
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;
00036 #ifndef U_HIDE_DRAFT_API
00037
00042 typedef enum UListFormatterField {
00047 ULISTFMT_LITERAL_FIELD,
00052 ULISTFMT_ELEMENT_FIELD
00053 } UListFormatterField;
00054 #endif // U_HIDE_DRAFT_API
00055
00072 U_CAPI UListFormatter* U_EXPORT2
00073 ulistfmt_open(const char* locale,
00074 UErrorCode* status);
00075
00082 U_CAPI void U_EXPORT2
00083 ulistfmt_close(UListFormatter *listfmt);
00084
00085
00086 #if U_SHOW_CPLUSPLUS_API
00087
00088 U_NAMESPACE_BEGIN
00089
00099 U_DEFINE_LOCAL_OPEN_POINTER(LocalUListFormatterPointer, UListFormatter, ulistfmt_close);
00100
00101 U_NAMESPACE_END
00102
00103 #endif
00104
00139 U_CAPI int32_t U_EXPORT2
00140 ulistfmt_format(const UListFormatter* listfmt,
00141 const UChar* const strings[],
00142 const int32_t * stringLengths,
00143 int32_t stringCount,
00144 UChar* result,
00145 int32_t resultCapacity,
00146 UErrorCode* status);
00147
00148 #endif
00149
00150 #endif