Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 547352 Details for
Bug 666542
dev-libs/beecrypt-4.2.1-r4 - include/beecrypt/c++/lang/String.h:76:17: error: ‘UnicodeString’ does not name a type
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for ICU 61 'using namespace' change
beecrypt-4.2.1-icu-61.patch (text/plain), 6.96 KB, created by
John Bowler
on 2018-09-19 22:55:49 UTC
(
hide
)
Description:
Patch for ICU 61 'using namespace' change
Filename:
MIME Type:
Creator:
John Bowler
Created:
2018-09-19 22:55:49 UTC
Size:
6.96 KB
patch
obsolete
>--- beecrypt-4.2.1-r4/c++/beeyond/DHIESParameterSpec.cxx 2018-09-19 15:01:15.234193035 -0700 >+++ beecrypt-4.2.1/c++/beeyond/DHIESParameterSpec.cxx 2018-09-19 15:29:01.665880810 -0700 >@@ -68,16 +68,16 @@ > > DHIESParameterSpec::DHIESParameterSpec(const String& descriptor) throw (IllegalArgumentException) > { >- UnicodeString match(descriptor.toUnicodeString()); >+ icu::UnicodeString match(descriptor.toUnicodeString()); > > UErrorCode status = U_ZERO_ERROR; > UParseError error; > >- auto_ptr<RegexPattern> p(RegexPattern::compile("DHIES\\((\\w(?:\\w|\\d)*(?:-(?:\\w|\\d)*)*),(\\w(?:\\w|\\d)*(?:-(?:\\w|\\d)*)*),(\\w(?:\\w|\\d)*(?:-(?:\\w|\\d)*)*)(?:,(\\d+))?(?:,(\\d+))?\\)", error, status)); >+ auto_ptr<icu::RegexPattern> p(icu::RegexPattern::compile("DHIES\\((\\w(?:\\w|\\d)*(?:-(?:\\w|\\d)*)*),(\\w(?:\\w|\\d)*(?:-(?:\\w|\\d)*)*),(\\w(?:\\w|\\d)*(?:-(?:\\w|\\d)*)*)(?:,(\\d+))?(?:,(\\d+))?\\)", error, status)); > if (U_FAILURE(status)) >- throw RuntimeException("RegexPattern doesn't compile"); >+ throw RuntimeException("ICU RegexPattern doesn't compile"); > >- auto_ptr<RegexMatcher> m(p->matcher(match, status)); >+ auto_ptr<icu::RegexMatcher> m(p->matcher(match, status)); > if (!m->matches(status)) > throw IllegalArgumentException("couldn't parse descriptor into DHIES(<digest>,<cipher>,<mac>[,<cipherkeylen>[,<mackeylen>]])"); > >--- beecrypt-4.2.1-r4/c++/crypto/Cipher.cxx 2018-09-19 15:01:15.237192994 -0700 >+++ beecrypt-4.2.1/c++/crypto/Cipher.cxx 2018-09-19 15:29:18.331656082 -0700 >@@ -32,7 +32,7 @@ > using namespace beecrypt::crypto; > > namespace { >- RegexPattern* _amppat = 0; >+ icu::RegexPattern* _amppat = 0; > } > > const int Cipher::ENCRYPT_MODE = 1; >@@ -55,7 +55,7 @@ > > Cipher* Cipher::getInstance(const String& transformation) throw (NoSuchAlgorithmException, NoSuchPaddingException) > { >- UnicodeString match(transformation.toUnicodeString()); >+ icu::UnicodeString match(transformation.toUnicodeString()); > > UErrorCode status = U_ZERO_ERROR; > >@@ -63,14 +63,14 @@ > { > UParseError error; > >- _amppat = RegexPattern::compile("(\\w+)(?:/(\\w*))?(?:/(\\w+))?", error, status); >+ _amppat = icu::RegexPattern::compile("(\\w+)(?:/(\\w*))?(?:/(\\w+))?", error, status); > // shouldn't happen > if (U_FAILURE(status)) > throw RuntimeException("ICU regex compilation problem"); > } > > status = U_ZERO_ERROR; >- RegexMatcher *m = _amppat->matcher(match, status); >+ icu::RegexMatcher *m = _amppat->matcher(match, status); > > status = U_ZERO_ERROR; > if (m->matches(status)) >@@ -225,13 +225,13 @@ > { > UParseError error; > >- _amppat = RegexPattern::compile("(\\w+)(?:/(\\w*))?(?:/(\\w+))?", error, status); >+ _amppat = icu::RegexPattern::compile("(\\w+)(?:/(\\w*))?(?:/(\\w+))?", error, status); > // shouldn't happen > if (U_FAILURE(status)) > throw RuntimeException("ICU regex compilation problem"); > } > >- RegexMatcher *m = _amppat->matcher(transformation.toUnicodeString(), status); >+ icu::RegexMatcher *m = _amppat->matcher(transformation.toUnicodeString(), status); > > if (m->matches(status)) > { >@@ -382,13 +382,13 @@ > { > UParseError error; > >- _amppat = RegexPattern::compile("(\\w+)(?:/(\\w*))?(?:/(\\w+))?", error, status); >+ _amppat = icu::RegexPattern::compile("(\\w+)(?:/(\\w*))?(?:/(\\w+))?", error, status); > // shouldn't happen > if (U_FAILURE(status)) > throw RuntimeException("ICU regex compilation problem"); > } > >- RegexMatcher *m = _amppat->matcher(transformation.toUnicodeString(), status); >+ icu::RegexMatcher *m = _amppat->matcher(transformation.toUnicodeString(), status); > > if (m->matches(status)) > { >--- beecrypt-4.2.1-r4/c++/lang/Integer.cxx 2018-09-19 15:01:15.226193144 -0700 >+++ beecrypt-4.2.1/c++/lang/Integer.cxx 2018-09-19 15:23:41.334191603 -0700 >@@ -76,11 +76,11 @@ > { > UErrorCode status = U_ZERO_ERROR; > >- NumberFormat* nf = NumberFormat::createInstance(status); >+ icu::NumberFormat* nf = icu::NumberFormat::createInstance(status); > > if (nf) > { >- Formattable fmt((int32_t) 0); >+ icu::Formattable fmt((int32_t) 0); > > nf->parse(s.toUnicodeString(), fmt, status); > >--- beecrypt-4.2.1-r4/c++/lang/Long.cxx 2018-09-19 15:01:15.228193117 -0700 >+++ beecrypt-4.2.1/c++/lang/Long.cxx 2018-09-19 15:22:52.446847844 -0700 >@@ -88,11 +88,11 @@ > { > UErrorCode status = U_ZERO_ERROR; > >- NumberFormat* nf = NumberFormat::createInstance(status); >+ icu::NumberFormat* nf = icu::NumberFormat::createInstance(status); > > if (nf) > { >- Formattable fmt((int64_t) 0); >+ icu::Formattable fmt((int64_t) 0); > > nf->parse(s.toUnicodeString(), fmt, status); > >--- beecrypt-4.2.1-r4/c++/lang/String.cxx 2018-09-19 15:01:15.230193090 -0700 >+++ beecrypt-4.2.1/c++/lang/String.cxx 2018-09-19 15:02:53.427853050 -0700 >@@ -87,7 +87,7 @@ > assert(_value.size() <= Integer::MAX_VALUE); > } > >-String::String(const UnicodeString& copy) : _value((int) copy.length()) >+String::String(const icu::UnicodeString& copy) : _value((int) copy.length()) > { > assert(_value.size() <= Integer::MAX_VALUE); > >@@ -103,7 +103,7 @@ > return *this; > } > >-String& String::operator=(const UnicodeString& copy) >+String& String::operator=(const icu::UnicodeString& copy) > { > assert(copy.length() <= Integer::MAX_VALUE); > >@@ -397,9 +397,9 @@ > return *this; > } > >-UnicodeString String::toUnicodeString() const throw () >+icu::UnicodeString String::toUnicodeString() const throw () > { >- return UnicodeString(_value.data(), (int32_t) _value.size()); >+ return icu::UnicodeString(_value.data(), (int32_t) _value.size()); > } > > String String::valueOf(bool b) >--- beecrypt-4.2.1-r4/c++/util/Date.cxx 2018-09-19 15:01:15.232193062 -0700 >+++ beecrypt-4.2.1/c++/util/Date.cxx 2018-09-19 15:25:55.389389748 -0700 >@@ -29,9 +29,9 @@ > > namespace { > #if WIN32 >- __declspec(thread) DateFormat* format = 0; >+ __declspec(thread) icu::DateFormat* format = 0; > #else >- __thread DateFormat* format = 0; >+ __thread icu::DateFormat* format = 0; > #endif > } > >@@ -112,9 +112,9 @@ > String result; > > if (!format) >- format = DateFormat::createDateTimeInstance(); >+ format = icu::DateFormat::createDateTimeInstance(); > >- UnicodeString tmp; >+ icu::UnicodeString tmp; > > result = format->format((UDate) _time, tmp); > >--- beecrypt-4.2.1-r4/include/beecrypt/c++/lang/String.h 2018-09-19 15:01:15.239192967 -0700 >+++ beecrypt-4.2.1/include/beecrypt/c++/lang/String.h 2018-09-19 15:03:57.316981046 -0700 >@@ -73,11 +73,11 @@ > String(const bytearray&); > String(const array<jchar>&); > String(const String& copy); >- String(const UnicodeString& copy); >+ String(const icu::UnicodeString& copy); > virtual ~String() {} > > String& operator=(const String& copy); >- String& operator=(const UnicodeString& copy); >+ String& operator=(const icu::UnicodeString& copy); > > virtual jchar charAt(jint index) const throw (IndexOutOfBoundsException); > virtual jint compareTo(const String& str) const throw (); >@@ -101,7 +101,7 @@ > String toUpperCase() const throw (); > const array<jchar>& toCharArray() const throw (); > virtual String toString() const throw (); >- UnicodeString toUnicodeString() const throw (); >+ icu::UnicodeString toUnicodeString() const throw (); > }; > > BEECRYPTCXXAPI
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 666542
:
547280
| 547352