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 
15 #include "unicode/localpointer.h"
16 
31 struct UListFormatter;
50 U_STABLE UListFormatter* U_EXPORT2
51 ulistfmt_open(const char* locale,
52  UErrorCode* status);
53 
60 U_STABLE void U_EXPORT2
62 
63 
64 #if U_SHOW_CPLUSPLUS_API
65 
67 
78 
80 
81 #endif
82 
117 U_DRAFT int32_t U_EXPORT2
118 ulistfmt_format(const UListFormatter* listfmt,
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
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Definition: utypes.h:476
ulistfmt_format
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.
UListFormatter
struct UListFormatter UListFormatter
C typedef for struct UListFormatter.
Definition: ulistformatter.h:32
U_DEFINE_LOCAL_OPEN_POINTER
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
Definition: localpointer.h:539
ulistfmt_close
void ulistfmt_close(UListFormatter *listfmt)
Close a UListFormatter object.
ulistfmt_open
UListFormatter * ulistfmt_open(const char *locale, UErrorCode *status)
Open a new UListFormatter object using the rules for a given locale.
localpointer.h
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
U_DRAFT
#define U_DRAFT
This is used to declare a function as a draft public ICU C API
Definition: umachine.h:111
U_STABLE
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109
LocalUListFormatterPointer
UChar
uint16_t UChar
Definition: umachine.h:312
U_NAMESPACE_END
#define U_NAMESPACE_END
Definition: uversion.h:130
U_NAMESPACE_BEGIN
#define U_NAMESPACE_BEGIN
Definition: uversion.h:129