diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-04-14 10:48:34 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-04-14 10:48:34 +0000 |
commit | e2f0849b20c938858e0fe38a1d48eaea51c6f7f4 (patch) | |
tree | bb56f4452fc16a3620cb1860995cb06f50126166 /sal/inc/rtl/ustring.h | |
parent | 8a8295f7b663a3ffd76600623c07fdf882f8d353 (diff) |
INTEGRATION: CWS unopkg1 (1.9.26); FILE MERGED
2004/02/09 17:18:35 sb 1.9.26.1: #i25176# Added rtl::OUString::endsWithIgnoreAsciiCaseAsciiL and support.
Diffstat (limited to 'sal/inc/rtl/ustring.h')
-rw-r--r-- | sal/inc/rtl/ustring.h | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/sal/inc/rtl/ustring.h b/sal/inc/rtl/ustring.h index 1eaee0c0a741..63f3cfdb456d 100644 --- a/sal/inc/rtl/ustring.h +++ b/sal/inc/rtl/ustring.h @@ -2,9 +2,9 @@ * * $RCSfile: ustring.h,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: rt $ $Date: 2004-03-30 16:28:19 $ + * last change: $Author: hr $ $Date: 2004-04-14 11:48:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -453,6 +453,41 @@ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase( const sal_Unicode * fi */ sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLength( const sal_Unicode * first, sal_Int32 firstLen, const sal_Char * second ) SAL_THROW_EXTERN_C(); +/** Compare two strings, ignoring the case of ASCII characters. + + The comparison is based on the numeric value of each character in the + strings and returns a value indicating their relationship. Character + values between 65 and 90 (ASCII A--Z) are interpreted as values between 97 + and 122 (ASCII a--z). This function cannot be used for language-specific + sorting. + + Since this function is optimized for performance, the ASCII character + values are not converted in any way. The caller has to make sure that + all ASCII characters are in the allowed range of 0 and 127, inclusive. + + @param first + the first string to be compared. Need not be null-terminated, but must be + at least as long as the specified firstLen. + + @param firstLen + the length of the first string. + + @param second + the second string which is compared with the first one. Need not be + null-terminated, but must be at least as long as the specified secondLen. + + @param secondLen + the length of the second string. + + @return + 0 if both strings are equal, a value less than 0 if the first string is + less than the second string, and a value greater than 0 if the first + string is greater than the second string. + */ +sal_Int32 SAL_CALL rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths( + sal_Unicode const * first, sal_Int32 firstLen, + char const * second, sal_Int32 secondLen) SAL_THROW_EXTERN_C(); + /** Compare two strings with a maximum count of characters, ignoring the case of ASCII characters. |