* update (not-so-)optional package ICU to 4.8.1, which contains interesting stuff

for message formatting
* adjust LocaleKit to use namespace 'icu', as ICU has been configured to no longer
  use a version specific namespace
* adjust LocaleKit to general API changes in ICU 4.8
Note: all software using ICU (like WebPositive) needs to be rebuilt!
Note: the ICU package for PPC needs to be updated before it can be used!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42638 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2011-08-18 22:13:06 +00:00
parent fcb8a5cb4e
commit 45f2f22b52
18 changed files with 72 additions and 76 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2010, Haiku, Inc.
* Copyright 2003-2011, Haiku, Inc.
* Distributed under the terms of the MIT Licence.
*/
#ifndef _COLLATOR_H_
@@ -10,7 +10,7 @@
#include <SupportDefs.h>
namespace icu_44 {
namespace icu {
class Collator;
class RuleBasedCollator;
};
@@ -75,7 +75,7 @@ public:
private:
status_t _SetStrength(int8 strength) const;
mutable icu_44::Collator* fICUCollator;
mutable icu::Collator* fICUCollator;
int8 fDefaultStrength;
bool fIgnorePunctuation;
};
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2010, Haiku, Inc.
* Copyright 2003-2011, Haiku, Inc.
* Distributed under the terms of the MIT Licence.
*/
#ifndef _COUNTRY_H_
@@ -16,7 +16,7 @@ class BBitmap;
class BLanguage;
class BMessage;
namespace icu_44 {
namespace icu {
class DateFormat;
class Locale;
}
@@ -45,7 +45,7 @@ public:
private:
friend class Private;
icu_44::Locale* fICULocale;
icu::Locale* fICULocale;
};
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2010, Haiku, Inc.
* Copyright 2010-2011, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _B_DURATION_FORMAT_H_
@@ -13,7 +13,7 @@
class BTimeZone;
namespace icu_44 {
namespace icu {
class GregorianCalendar;
}
@@ -42,7 +42,7 @@ public:
private:
BString fSeparator;
BTimeUnitFormat fTimeUnitFormat;
icu_44::GregorianCalendar* fCalendar;
icu::GregorianCalendar* fCalendar;
};
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2010, Haiku, Inc.
* Copyright 2003-2011, Haiku, Inc.
* Distributed under the terms of the MIT Licence.
*/
#ifndef _FORMATTING_CONVENTIONS_H_
@@ -17,7 +17,7 @@ class BBitmap;
class BLanguage;
class BMessage;
namespace icu_44 {
namespace icu {
class DateFormat;
class Locale;
}
@@ -122,7 +122,7 @@ private:
bool fUseStringsFromPreferredLanguage;
icu_44::Locale* fICULocale;
icu::Locale* fICULocale;
};
+2 -2
View File
@@ -15,7 +15,7 @@ class BBitmap;
// We must not include the icu headers in there as it could mess up binary
// compatibility.
namespace icu_44 {
namespace icu {
class Locale;
}
@@ -64,7 +64,7 @@ private:
friend class Private;
uint8 fDirection;
icu_44::Locale* fICULocale;
icu::Locale* fICULocale;
};
+4 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2010, Haiku, Inc.
* Copyright 2003-2011, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _B_LOCALE_H_
@@ -12,7 +12,7 @@
#include <Locker.h>
namespace icu_44 {
namespace icu {
class DateFormat;
}
@@ -145,9 +145,9 @@ public:
BString* sortKey) const;
private:
icu_44::DateFormat* _CreateDateFormatter(
icu::DateFormat* _CreateDateFormatter(
const BString& format) const;
icu_44::DateFormat* _CreateTimeFormatter(
icu::DateFormat* _CreateTimeFormatter(
const BString& format) const;
mutable BLocker fLock;
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2010, Haiku, Inc.
* Copyright 2010-2011, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _B_TIME_UNIT_FORMAT_H_
@@ -12,7 +12,7 @@
class BString;
namespace icu_44 {
namespace icu {
class TimeUnitFormat;
}
@@ -53,7 +53,7 @@ public:
) const;
private:
icu_44::TimeUnitFormat* fFormatter;
icu::TimeUnitFormat* fFormatter;
};
+4 -4
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2010, Haiku, Inc. All rights reserved.
* Copyright 2010-2011, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _TIME_ZONE_H
@@ -9,7 +9,7 @@
#include <String.h>
namespace icu_44 {
namespace icu {
class Locale;
class TimeZone;
}
@@ -46,8 +46,8 @@ public:
private:
friend class Private;
icu_44::TimeZone* fICUTimeZone;
icu_44::Locale* fICULocale;
icu::TimeZone* fICUTimeZone;
icu::Locale* fICULocale;
status_t fInitStatus;
mutable uint32 fInitializedFields;