Fix FreeBSD build.
[haiku.git] / headers / os / locale / MessageFormat.h
blob38fb2054adb0b3f50e4f9d824a2f19b29ef45b75
1 /*
2 * Copyright 2014-2015 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Adrien Destugues, pulkomandy@pulkomandy.tk
7 * John Scipione, jscipione@gmail.com
8 */
9 #ifndef _B_MESSAGE_FORMAT_H_
10 #define _B_MESSAGE_FORMAT_H_
13 #include <Format.h>
16 #ifndef U_ICU_NAMESPACE
17 #define U_ICU_NAMESPACE icu
18 #endif
19 namespace U_ICU_NAMESPACE {
20 class MessageFormat;
21 class UnicodeString;
25 class BMessageFormat: public BFormat {
26 public:
27 BMessageFormat(const BLanguage& language,
28 const BString pattern);
29 BMessageFormat(const BString pattern);
30 ~BMessageFormat();
32 status_t InitCheck();
34 status_t Format(BString& buffer, const int64 arg) const;
36 private:
37 status_t _Initialize(const U_ICU_NAMESPACE::UnicodeString&);
39 private:
40 U_ICU_NAMESPACE::MessageFormat* fFormatter;
44 #endif // _B_MESSAGE_FORMAT_H_