73de58376a
"Renaming" means the icu namespace is suffixed with the version number, atm icu_55. Using "renaming" allows to use two different versions of ICU, thus easing upgrades. For instance haikuwebkit uses a current version of ICU, while the system uses a newer one after an upgrade. * Replace all uses of the icu namespace in our public headers, with a macro defaulting to icu. As the namespace is only used for private fields pointers, there should be no impact. * Locale kit *.cpp have to import the macro from <unicode/uversion.h> *before* including any locale headers. Ditto for a Time preferences cpp file. This way, the correct current icu namespace is referenced. * Fixes bug #12057.
56 lines
1.0 KiB
C++
56 lines
1.0 KiB
C++
/*
|
|
* Copyright 2003-2011, Haiku, Inc.
|
|
* Distributed under the terms of the MIT Licence.
|
|
*/
|
|
#ifndef _COUNTRY_H_
|
|
#define _COUNTRY_H_
|
|
|
|
|
|
#include <List.h>
|
|
#include <LocaleStrings.h>
|
|
#include <String.h>
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
class BBitmap;
|
|
class BLanguage;
|
|
class BMessage;
|
|
|
|
#ifndef U_ICU_NAMESPACE
|
|
#define U_ICU_NAMESPACE icu
|
|
#endif
|
|
namespace U_ICU_NAMESPACE {
|
|
class DateFormat;
|
|
class Locale;
|
|
}
|
|
|
|
|
|
class BCountry {
|
|
public:
|
|
BCountry(const char* countryCode = NULL);
|
|
BCountry(const BCountry& other);
|
|
BCountry& operator=(const BCountry& other);
|
|
~BCountry();
|
|
|
|
status_t GetNativeName(BString& name) const;
|
|
status_t GetName(BString& name,
|
|
const BLanguage* displayLanguage = NULL
|
|
) const;
|
|
|
|
const char* Code() const;
|
|
// ISO-3166
|
|
status_t GetIcon(BBitmap* result) const;
|
|
|
|
status_t GetAvailableTimeZones(
|
|
BMessage* timeZones) const;
|
|
|
|
class Private;
|
|
private:
|
|
friend class Private;
|
|
|
|
U_ICU_NAMESPACE::Locale* fICULocale;
|
|
};
|
|
|
|
|
|
#endif /* _COUNTRY_H_ */
|