include/rtl/string.h | 5 ++--- include/rtl/ustring.h | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-)
New commits: commit a4fafab70dccd4df47166428b6e05d52d9bbdf3f Author: Noel Grandin <[email protected]> AuthorDate: Wed Jul 21 15:52:59 2021 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Wed Jul 21 18:50:43 2021 +0200 improve the comments of the number conversion functions For the rtl_str_to<NumberType>_WithLength category of functions, the string does not need to be null-terminated Change-Id: I1971c8c10b760743633523e6f680366eafdfc685 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119325 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/include/rtl/string.h b/include/rtl/string.h index d29caf93a718..e0d751f18bd3 100644 --- a/include/rtl/string.h +++ b/include/rtl/string.h @@ -789,11 +789,10 @@ SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_str_toInt64( /** Interpret a string as a long integer. - This function cannot be used for language-specific conversion. The string - must be null-terminated. + This function cannot be used for language-specific conversion. @param str - a null-terminated string. + a string. @param radix the radix. Must be between RTL_STR_MIN_RADIX (2) and RTL_STR_MAX_RADIX diff --git a/include/rtl/ustring.h b/include/rtl/ustring.h index 3caca28d2f8a..b4990fec12eb 100644 --- a/include/rtl/ustring.h +++ b/include/rtl/ustring.h @@ -1119,11 +1119,10 @@ SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_ustr_toInt64( /** Interpret a string as a long integer. - This function cannot be used for language-specific conversion. The string - must be null-terminated. + This function cannot be used for language-specific conversion. @param str - a null-terminated string. + a string. @param radix the radix. Must be between RTL_USTR_MIN_RADIX (2) and RTL_USTR_MAX_RADIX _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
