+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
-* Copyright (C) 2012-2014, International Business Machines
+* Copyright (C) 2012-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
* file name: listformatter.h
-* encoding: US-ASCII
+* encoding: UTF-8
* tab size: 8 (not used)
* indentation:4
*
#include "unicode/unistr.h"
#include "unicode/locid.h"
+#if U_SHOW_CPLUSPLUS_API
U_NAMESPACE_BEGIN
/** @internal */
/**
* Copy constructor.
- * @draft ICU 52
+ * @stable ICU 52
*/
ListFormatter(const ListFormatter&);
/**
* Assignment operator.
- * @draft ICU 52
+ * @stable ICU 52
*/
ListFormatter& operator=(const ListFormatter& other);
/**
* @internal constructor made public for testing.
*/
- ListFormatter(const ListFormatData &data);
+ ListFormatter(const ListFormatData &data, UErrorCode &errorCode);
/**
* @internal constructor made public for testing.
*/
private:
static void initializeHash(UErrorCode& errorCode);
static const ListFormatInternal* getListFormatInternal(const Locale& locale, const char *style, UErrorCode& errorCode);
+ struct ListPatternsSink;
+ static ListFormatInternal* loadListFormatInternal(const Locale& locale, const char* style, UErrorCode& errorCode);
ListFormatter();
};
U_NAMESPACE_END
+#endif // U_SHOW_CPLUSPLUS_API
#endif