ICU 57.1 57.1
ulistformatter.h
Go to the documentation of this file.
1/*
2*****************************************************************************************
3* Copyright (C) 2015-2016, International Business Machines
4* Corporation and others. All Rights Reserved.
5*****************************************************************************************
6*/
7
8#ifndef ULISTFORMATTER_H
9#define ULISTFORMATTER_H
10
11#include "unicode/utypes.h"
12
13#if !UCONFIG_NO_FORMATTING
14
16
31struct UListFormatter;
50U_STABLE UListFormatter* U_EXPORT2
51ulistfmt_open(const char* locale,
52 UErrorCode* status);
53
60U_STABLE void U_EXPORT2
62
63
64#if U_SHOW_CPLUSPLUS_API
65
67
78
80
81#endif
82
117U_DRAFT int32_t U_EXPORT2
119 const UChar* const strings[],
120 const int32_t * stringLengths,
121 int32_t stringCount,
122 UChar* result,
123 int32_t resultCapacity,
124 UErrorCode* status);
125
126#endif /* #if !UCONFIG_NO_FORMATTING */
127
128#endif
"Smart pointer" class, closes a UListFormatter via ulistfmt_close().
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
Definition: localpointer.h:539
UListFormatter * ulistfmt_open(const char *locale, UErrorCode *status)
Open a new UListFormatter object using the rules for a given locale.
int32_t ulistfmt_format(const UListFormatter *listfmt, const UChar *const strings[], const int32_t *stringLengths, int32_t stringCount, UChar *result, int32_t resultCapacity, UErrorCode *status)
Formats a list of strings using the conventions established for the UListFormatter object.
struct UListFormatter UListFormatter
C typedef for struct UListFormatter.
void ulistfmt_close(UListFormatter *listfmt)
Close a UListFormatter object.
#define U_DRAFT
This is used to declare a function as a draft public ICU C API
Definition: umachine.h:111
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
Definition: umachine.h:312
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Definition: utypes.h:476
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129