diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-07-21 09:42:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-07-21 15:38:03 +0200 |
commit | 99a1290b3f2c8584db0a33fe48adf93dccce3a92 (patch) | |
tree | 85695dc2f8988b195ee26e3caa1f09bb6c91e141 /include/rtl | |
parent | Avoid external processes picking up instdir/program/libnspr4.so (diff) | |
download | core-99a1290b3f2c8584db0a33fe48adf93dccce3a92.tar.gz core-99a1290b3f2c8584db0a33fe48adf93dccce3a92.zip |
Use existing rtl_math_stringToDouble
...like it is also already done in LineParser::readDouble 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_toDouble_WithLength in
b1df9c67349cf4cc5be4128d797aefb87f50e38f "[API CHANGE] reduce cost of numeric
conversion"
Change-Id: If7e3a15649f80093d3407157412fd3deb3a38b12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119318
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 | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/rtl/string.h b/include/rtl/string.h index 155c1d46126c..d29caf93a718 100644 --- a/include/rtl/string.h +++ b/include/rtl/string.h @@ -863,26 +863,6 @@ SAL_DLLPUBLIC float SAL_CALL rtl_str_toFloat( SAL_DLLPUBLIC double SAL_CALL rtl_str_toDouble( const char * str ) SAL_THROW_EXTERN_C(); -/** Interpret a string as a double. - - This function cannot be used for language-specific conversion. The string - must be null-terminated. - - @param str - a null-terminated string. - - @param nStrLength - number of chars to process - - @return - the double value represented by the string, or 0.0 if the string does not - represent a double. - - @since LibreOffice 7.3 - */ -SAL_DLLPUBLIC double SAL_CALL rtl_str_toDouble_WithLength( - const char * str, sal_Int32 nStrLength ) SAL_THROW_EXTERN_C(); - /* ======================================================================= */ #ifdef _WIN32 |