2010-07-24 03:13:00 +04:00
|
|
|
/*
|
2011-11-23 22:55:34 +04:00
|
|
|
* Copyright 2010-2011, Oliver Tappe, zooey@hirschkaefer.de.
|
2010-07-24 03:13:00 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _ICU_NUMERIC_DATA_H
|
|
|
|
#define _ICU_NUMERIC_DATA_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "ICULocaleconvData.h"
|
|
|
|
#include "LocaleBackend.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPrivate {
|
2010-11-22 16:06:36 +03:00
|
|
|
namespace Libroot {
|
2010-07-24 03:13:00 +04:00
|
|
|
|
|
|
|
|
|
|
|
class ICUNumericData : public ICULocaleconvData {
|
|
|
|
typedef ICULocaleconvData inherited;
|
|
|
|
|
|
|
|
public:
|
2011-11-22 20:17:18 +04:00
|
|
|
ICUNumericData(pthread_key_t tlsKey,
|
|
|
|
struct lconv& localeConv);
|
2010-07-24 03:13:00 +04:00
|
|
|
|
|
|
|
void Initialize(LocaleNumericDataBridge* dataBridge);
|
|
|
|
|
|
|
|
virtual status_t SetTo(const Locale& locale,
|
|
|
|
const char* posixLocaleName);
|
|
|
|
virtual status_t SetToPosix();
|
|
|
|
|
|
|
|
virtual const char* GetLanginfo(int index);
|
|
|
|
|
|
|
|
private:
|
|
|
|
char fDecimalPoint[skLCBufSize];
|
|
|
|
char fThousandsSep[skLCBufSize];
|
|
|
|
char fGrouping[skLCBufSize];
|
|
|
|
|
|
|
|
struct lconv& fLocaleConv;
|
|
|
|
LocaleNumericDataBridge* fDataBridge;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-11-22 16:06:36 +03:00
|
|
|
} // namespace Libroot
|
2010-07-24 03:13:00 +04:00
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _ICU_NUMERIC_DATA_H
|