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