mirror of
https://review.haiku-os.org/haiku
synced 2025-01-24 15:24:50 +01:00
44 lines
857 B
C
44 lines
857 B
C
|
/*
|
||
|
* Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*/
|
||
|
#ifndef _ICU_COLLATE_DATA_H
|
||
|
#define _ICU_COLLATE_DATA_H
|
||
|
|
||
|
|
||
|
#include "ICUCategoryData.h"
|
||
|
|
||
|
#include <unicode/coll.h>
|
||
|
|
||
|
|
||
|
namespace BPrivate {
|
||
|
|
||
|
|
||
|
class ICUCollateData : public ICUCategoryData {
|
||
|
typedef ICUCategoryData inherited;
|
||
|
|
||
|
public:
|
||
|
ICUCollateData();
|
||
|
virtual ~ICUCollateData();
|
||
|
|
||
|
virtual status_t SetTo(const Locale& locale,
|
||
|
const char* posixLocaleName);
|
||
|
virtual status_t SetToPosix();
|
||
|
|
||
|
status_t Strcoll(const char* a, const char* b, int& out);
|
||
|
status_t Strxfrm(char* out, const char* in, size_t size,
|
||
|
size_t& outSize);
|
||
|
|
||
|
private:
|
||
|
status_t _ToUnicodeString(const char* in,
|
||
|
UnicodeString& out);
|
||
|
|
||
|
Collator* fCollator;
|
||
|
};
|
||
|
|
||
|
|
||
|
} // namespace BPrivate
|
||
|
|
||
|
|
||
|
#endif // _ICU_COLLATE_DATA_H
|