summaryrefslogtreecommitdiff
path: root/sal/inc/rtl/math.h
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-10-28 15:50:12 +0200
committersb <sb@openoffice.org>2010-10-28 15:50:12 +0200
commita8fcfe71a0c236d31444922984b577c600bfd120 (patch)
tree66a3ab241e32873ea83a82472f72e08fa604b4ce /sal/inc/rtl/math.h
parenta30ca9cb0a7fb85e7fd9d9b24701e99c608be82d (diff)
sb132: #i114840# fix inadvertent deviation of stringToDouble from C99 strtod
Diffstat (limited to 'sal/inc/rtl/math.h')
-rw-r--r--sal/inc/rtl/math.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sal/inc/rtl/math.h b/sal/inc/rtl/math.h
index 985ce700b049..fa81108df29f 100644
--- a/sal/inc/rtl/math.h
+++ b/sal/inc/rtl/math.h
@@ -319,7 +319,9 @@ void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult,
@param pParsedEnd
If non-null, returns one past the position of the last character parsed
away. Thus if [pBegin..pEnd) only contains the numerical string to be
- parsed, *pParsedEnd == pEnd on return.
+ parsed, *pParsedEnd == pEnd on return. If no numerical (sub-)string is
+ found, *pParsedEnd == pBegin on return, even if there was leading
+ whitespace.
*/
double SAL_CALL rtl_math_stringToDouble(
sal_Char const * pBegin, sal_Char const * pEnd, sal_Char cDecSeparator,
@@ -357,7 +359,9 @@ double SAL_CALL rtl_math_stringToDouble(
@param pParsedEnd
If non-null, returns one past the position of the last character parsed
away. Thus if [pBegin..pEnd) only contains the numerical string to be
- parsed, *pParsedEnd == pEnd on return.
+ parsed, *pParsedEnd == pEnd on return. If no numerical (sub-)string is
+ found, *pParsedEnd == pBegin on return, even if there was leading
+ whitespace.
*/
double SAL_CALL rtl_math_uStringToDouble(
sal_Unicode const * pBegin, sal_Unicode const * pEnd,