2 * Copyright 2003-2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
9 #include <LocaleStrings.h>
11 #include <SupportDefs.h>
16 // We must not include the icu headers in there as it could mess up binary
18 #ifndef U_ICU_NAMESPACE
19 #define U_ICU_NAMESPACE icu
21 namespace U_ICU_NAMESPACE
{
26 enum script_direction
{
29 B_TOP_TO_BOTTOM
, // seems not to be supported anywhere else?
36 BLanguage(const char* language
);
37 BLanguage(const BLanguage
& other
);
40 status_t
SetTo(const char* language
);
42 status_t
GetNativeName(BString
& name
) const;
43 status_t
GetName(BString
& name
,
44 const BLanguage
* displayLanguage
= NULL
46 const char* GetString(uint32 id
) const;
47 status_t
GetIcon(BBitmap
* result
) const;
49 const char* Code() const;
51 const char* CountryCode() const;
53 const char* ScriptCode() const;
55 const char* Variant() const;
56 const char* ID() const;
58 bool IsCountrySpecific() const;
59 bool IsVariant() const;
61 uint8
Direction() const;
63 BLanguage
& operator=(const BLanguage
& source
);
70 U_ICU_NAMESPACE::Locale
* fICULocale
;
74 #endif // _LANGUAGE_H_