c894d1868e
* update copyrights of locale backend files Multibyte-support has been rewritten to use ICU as backend. While this does not necessarily work properly in every aspect (e.g. the shell still has [different] problems with multibyte- characters now), it does fix #6263 and #7700.
47 lines
969 B
C++
47 lines
969 B
C++
/*
|
|
* Copyright 2010-2011, Oliver Tappe, zooey@hirschkaefer.de.
|
|
* 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 {
|
|
namespace Libroot {
|
|
|
|
|
|
class ICUNumericData : public ICULocaleconvData {
|
|
typedef ICULocaleconvData inherited;
|
|
|
|
public:
|
|
ICUNumericData(pthread_key_t tlsKey,
|
|
struct lconv& localeConv);
|
|
|
|
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;
|
|
};
|
|
|
|
|
|
} // namespace Libroot
|
|
} // namespace BPrivate
|
|
|
|
|
|
#endif // _ICU_NUMERIC_DATA_H
|