include/rtl/string.h  |    4 ++--
 include/rtl/ustring.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 8067c37e4197f8f07be87f4516a89b07b7462632
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Apr 3 11:28:23 2023 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Apr 3 15:04:03 2023 +0200

    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.kagan...@collabora.com>

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

Reply via email to