vfs: check userland buffers before reading them.
[haiku.git] / headers / private / libroot / locale / ICUMessagesData.h
blob831939723a71d27a0151d72e8c929ac12f153840
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
9 #include "ICUCategoryData.h"
10 #include "LocaleBackend.h"
13 namespace BPrivate {
14 namespace Libroot {
17 class ICUMessagesData : public ICUCategoryData {
18 typedef ICUCategoryData inherited;
20 public:
21 ICUMessagesData(pthread_key_t tlsKey);
23 virtual status_t SetTo(const Locale& locale,
24 const char* posixLocaleName);
25 virtual status_t SetToPosix();
27 void Initialize(
28 LocaleMessagesDataBridge* dataBridge);
30 const char* GetLanginfo(int index);
32 private:
33 char fYesExpression[80];
34 char fNoExpression[80];
36 const char** fPosixLanginfo;
40 } // namespace Libroot
41 } // namespace BPrivate
44 #endif // _ICU_MESSAGES_DATA_H