diff options
Diffstat (limited to 'sal/inc/rtl/ustring.hxx')
-rw-r--r-- | sal/inc/rtl/ustring.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx index aeb2b798bd67..4fc1360027f9 100644 --- a/sal/inc/rtl/ustring.hxx +++ b/sal/inc/rtl/ustring.hxx @@ -527,8 +527,8 @@ public: /** Perform a ASCII lowercase comparison of two strings. - Compare teh two string with uppercase ASCII - character values between 65 and 90 (ASCII A-Z) are interpreted as + Compare the two strings with uppercase ASCII + character values between 65 and 90 (ASCII A-Z) interpreted as values between 97 and 122 (ASCII a-z). This function can't be used for language specific comparison. @@ -536,13 +536,11 @@ public: @return 0 - if both strings are equal < 0 - if this string is less than the string argument > 0 - if this string is greater than the string argument + + @since LibreOffice 4.0 */ sal_Int32 compareToIgnoreAsciiCase( const OUString & str ) const SAL_THROW(()) { - if ( pData->length != str.pData->length ) - return sal_False; - if ( pData == str.pData ) - return sal_True; return rtl_ustr_compareIgnoreAsciiCase_WithLength( pData->buffer, pData->length, str.pData->buffer, str.pData->length ); } |