1 /* 2 * Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _ICU_NUMERIC_DATA_H 6 #define _ICU_NUMERIC_DATA_H 7 8 9 #include "ICULocaleconvData.h" 10 #include "LocaleBackend.h" 11 12 13 namespace BPrivate { 14 namespace Libroot { 15 16 17 class ICUNumericData : public ICULocaleconvData { 18 typedef ICULocaleconvData inherited; 19 20 public: 21 ICUNumericData(struct lconv& localeConv); 22 23 void Initialize(LocaleNumericDataBridge* dataBridge); 24 25 virtual status_t SetTo(const Locale& locale, 26 const char* posixLocaleName); 27 virtual status_t SetToPosix(); 28 29 virtual const char* GetLanginfo(int index); 30 31 private: 32 char fDecimalPoint[skLCBufSize]; 33 char fThousandsSep[skLCBufSize]; 34 char fGrouping[skLCBufSize]; 35 36 struct lconv& fLocaleConv; 37 LocaleNumericDataBridge* fDataBridge; 38 }; 39 40 41 } // namespace Libroot 42 } // namespace BPrivate 43 44 45 #endif // _ICU_NUMERIC_DATA_H 46