diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-03 11:28:23 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-03 15:04:03 +0200 |
commit | 8067c37e4197f8f07be87f4516a89b07b7462632 (patch) | |
tree | bd5462db837e4d62eb6cd7baa38718e5d74923be | |
parent | 8fc316fb65e0d4b78ec881aa79f4184602b96f54 (diff) |
Fix rtl_(u)str_valueOfBoolean return value documentation
The reported numbers are factually wrong. See rtl::str::valueOfBoolean,
and back to commit cb6ab44fbef0a71984a15766d5ad7dcbe0a82a10 (template
implementation for String/UString, 2001-03-16) that introduced the
actual return values.
Change-Id: Ib692ee7164be31bde3d884823a77e6452dbf9cb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149890
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | include/rtl/string.h | 4 | ||||
-rw-r--r-- | include/rtl/ustring.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/rtl/string.h b/include/rtl/string.h index f80bef02ca91..854a83832c99 100644 --- a/include/rtl/string.h +++ b/include/rtl/string.h @@ -568,9 +568,9 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_trim_WithLength( /** Create the string representation of a boolean. - If b is true, the buffer is filled with the string "true" and 5 is + If b is true, the buffer is filled with the string "true" and 4 is returned. If b is false, the buffer is filled with the string "false" and - 6 is returned. This function cannot be used for language-specific + 5 is returned. This function cannot be used for language-specific operations. @param str diff --git a/include/rtl/ustring.h b/include/rtl/ustring.h index e8d1283791ab..da4278e5a683 100644 --- a/include/rtl/ustring.h +++ b/include/rtl/ustring.h @@ -898,9 +898,9 @@ SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_ustr_trim_WithLength( /** Create the string representation of a boolean. - If b is true, the buffer is filled with the string "true" and 5 is + If b is true, the buffer is filled with the string "true" and 4 is returned. If b is false, the buffer is filled with the string "false" and - 6 is returned. This function cannot be used for language-specific + 5 is returned. This function cannot be used for language-specific operations. @param str |