19 #ifndef __LISTFORMATTER_H__ 20 #define __LISTFORMATTER_H__ 29 class FieldPositionIterator;
30 class FieldPositionHandler;
36 struct ListFormatInternal;
43 struct ListFormatData :
public UMemory {
44 UnicodeString twoPattern;
45 UnicodeString startPattern;
46 UnicodeString middlePattern;
47 UnicodeString endPattern;
49 ListFormatData(
const UnicodeString& two,
const UnicodeString& start,
const UnicodeString& middle,
const UnicodeString& end) :
50 twoPattern(two), startPattern(start), middlePattern(middle), endPattern(end) {}
108 #ifndef U_HIDE_INTERNAL_API 143 #ifndef U_HIDE_DRAFT_API 164 #ifndef U_HIDE_INTERNAL_API 182 ListFormatter(
const ListFormatInternal* listFormatterInternal);
186 static void initializeHash(
UErrorCode& errorCode);
187 static const ListFormatInternal* getListFormatInternal(
const Locale& locale,
const char *style,
UErrorCode& errorCode);
188 struct ListPatternsSink;
189 static ListFormatInternal* loadListFormatInternal(
const Locale& locale,
const char* style,
UErrorCode& errorCode);
193 int32_t index, int32_t &offset, FieldPositionHandler* handler,
UErrorCode& errorCode)
const;
197 ListFormatInternal* owned;
198 const ListFormatInternal* data;
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
C++ API: Locale ID object.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.
A Locale object represents a specific geographical, political, or cultural region.