diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-08-22 10:19:15 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-08-22 10:40:37 +0200 |
commit | 2b06b5caeaa336de52746869fa91adfa6895f811 (patch) | |
tree | 141e4f2954a6b1acf0603102e23ef6ed893ad014 /include/rtl/ustring.hxx | |
parent | 5b9fd9222a10ce9fcf632e940ed720f990e183da (diff) |
Remove NULL-terminated requirement where not applicable
These functions take the string length instead, so may take
non-NULL-terminated strings.
Change-Id: I21dbfd97adec197ba52ae5f9e01340b44689805b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138658
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'include/rtl/ustring.hxx')
-rw-r--r-- | include/rtl/ustring.hxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx index 79ad75d8304d..8e29742b588d 100644 --- a/include/rtl/ustring.hxx +++ b/include/rtl/ustring.hxx @@ -1205,8 +1205,7 @@ public: Since this method 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 between 0 and 127. - The ASCII string must be NULL-terminated and must be greater than - or equal to asciiStrLength. + The ASCII string must be greater than or equal to asciiStrLength. This function can't be used for language specific sorting. @param asciiStr the 8-Bit ASCII character string to be compared. @@ -1250,8 +1249,7 @@ public: Since this method 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 between 0 and 127. - The ASCII string must be NULL-terminated and must be greater than - or equal to asciiStrLength. + The ASCII string must be greater than or equal to asciiStrLength. This function can't be used for language specific comparison. @param asciiStr the 8-Bit ASCII character string to be compared. @@ -1325,8 +1323,7 @@ public: Since this method 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 between 0 and 127. - The ASCII string must be NULL-terminated and must be greater than - or equal to asciiStrLength. + The ASCII string must be greater than or equal to asciiStrLength. This function can't be used for language specific comparison. @param asciiStr the 8-Bit ASCII character string to be compared. @@ -1350,8 +1347,7 @@ public: Since this method 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 between 0 and 127. - The ASCII string must be NULL-terminated and must be greater than or - equal to asciiStrLength. + The ASCII string must be greater than or equal to asciiStrLength. This function can't be used for language specific comparison. @param asciiStr the object (substring) to be compared. @@ -1388,8 +1384,7 @@ public: Since this method 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 between 0 and 127. - The ASCII string must be NULL-terminated and must be greater than or - equal to asciiStrLength. + The ASCII string must be greater than or equal to asciiStrLength. This function can't be used for language specific comparison. @param asciiStr the 8-Bit ASCII character string to be compared. |