/*
******************************************************************************
*
-* Copyright (C) 2001-2010, International Business Machines
+* Copyright (C) 2001-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
#define __UTRIE2_H__
#include "unicode/utypes.h"
+#include "putilimp.h"
#include "udataswp.h"
U_CDECL_BEGIN
* @see utrie2_openFromSerialized()
*/
U_CAPI int32_t U_EXPORT2
-utrie2_serialize(UTrie2 *trie,
+utrie2_serialize(const UTrie2 *trie,
void *data, int32_t capacity,
UErrorCode *pErrorCode);
/* C++ convenience wrappers ------------------------------------------------- */
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
+#include "unicode/utf.h"
#include "mutex.h"
U_NAMESPACE_BEGIN
const UChar *limit;
};
-class UTrie2Singleton {
-public:
- UTrie2Singleton(SimpleSingleton &s) : singleton(s) {}
- void deleteInstance() {
- utrie2_close((UTrie2 *)singleton.fInstance);
- singleton.reset();
- }
- UTrie2 *getInstance(InstantiatorFn *instantiator, const void *context,
- UErrorCode &errorCode);
-private:
- SimpleSingleton &singleton;
-};
-
U_NAMESPACE_END
#endif