diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-07-21 09:11:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-07-21 13:20:18 +0200 |
commit | 9230c189ebc5bcfd6303bfa7eebcd35488037d00 (patch) | |
tree | a6b63ef022535b20ed7747a26dbc95853d18faed /include/rtl | |
parent | Update git submodules (diff) | |
download | core-9230c189ebc5bcfd6303bfa7eebcd35488037d00.tar.gz core-9230c189ebc5bcfd6303bfa7eebcd35488037d00.zip |
Use existing rtl_str_toInt64_WithLength
...like it is also already done in LineParser::readInt32 in
sdext/source/pdfimport/wrapper/wrapper.cxx (esp. since the code should be
changed to use C++17 std::from_chars once that is available in all our
baselines), reverting again the introduction of rtl_str_toInt32_WithLength in
b1df9c67349cf4cc5be4128d797aefb87f50e38f "[API CHANGE] reduce cost of numeric
conversion"
Change-Id: I2789f8ec55c8d89150d1c68e6b353a1d2e1d1703
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119301
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'include/rtl')
-rw-r--r-- | include/rtl/string.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/rtl/string.h b/include/rtl/string.h index 62fc7ecfb2d0..155c1d46126c 100644 --- a/include/rtl/string.h +++ b/include/rtl/string.h @@ -747,31 +747,6 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL rtl_str_toBoolean( SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_toInt32( const char * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); -/** Interpret a string as a integer. - - This function cannot be used for language-specific conversion. The string - must be null-terminated. - - @param str - a null-terminated string. - - @param radix - the radix. Must be between RTL_STR_MIN_RADIX (2) and RTL_STR_MAX_RADIX - (36), inclusive. - - @param nStrLength - number of chars to process - - @return - the integer value represented by the string, or 0 if the string does - not represent a integer. - - @internal - @since LibreOffice 7.3 -*/ -SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_str_toInt32_WithLength( - const char * str, sal_Int16 radix, sal_Int32 nStrLength ) SAL_THROW_EXTERN_C(); - /** Interpret a string as an unsigned integer. This function cannot be used for language-specific conversion. The string |