2 * Copyright 2010-2011, Oliver Tappe, zooey@hirschkaefer.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _ICU_COLLATE_DATA_H
6 #define _ICU_COLLATE_DATA_H
9 #include "ICUCategoryData.h"
11 #include <unicode/coll.h>
18 class ICUCollateData
: public ICUCategoryData
{
19 typedef ICUCategoryData inherited
;
22 ICUCollateData(pthread_key_t tlsKey
);
23 virtual ~ICUCollateData();
25 virtual status_t
SetTo(const Locale
& locale
,
26 const char* posixLocaleName
);
27 virtual status_t
SetToPosix();
29 status_t
Strcoll(const char* a
, const char* b
, int& out
);
30 status_t
Strxfrm(char* out
, const char* in
, size_t size
,
32 status_t
Wcscoll(const wchar_t* a
, const wchar_t* b
,
34 status_t
Wcsxfrm(wchar_t* out
, const wchar_t* in
,
35 size_t size
, size_t& outSize
);
38 status_t
_ToUnicodeString(const char* in
,
45 } // namespace Libroot
46 } // namespace BPrivate
49 #endif // _ICU_COLLATE_DATA_H