version 1.88, 2004/02/19 21:33:01
|
version 1.89, 2004/02/20 14:22:01
|
|
|
UnicodeString UniStr2((const UChar *)s2.getChar16Data(), (int32_t)s2.size()); | UnicodeString UniStr2((const UChar *)s2.getChar16Data(), (int32_t)s2.size()); |
UniStr1.toLower(); | UniStr1.toLower(); |
UniStr2.toLower(); | UniStr2.toLower(); |
return (UniStr2.compare(UniStr1)); |
|
|
// Note: the ICU 2.6.1 documentation for UnicodeString::compare( ) is |
|
// backwards! The API actually returns +1 if this is greater than text. |
|
// This is why the line below appears wrong based on the 2.6.1 docs. |
|
// (ref. bugzilla 1207) |
|
return (UniStr1.compare(UniStr2)); |
#else | #else |
const Char16* _s1 = s1.getChar16Data(); | const Char16* _s1 = s1.getChar16Data(); |
const Char16* _s2 = s2.getChar16Data(); | const Char16* _s2 = s2.getChar16Data(); |