19#ifndef INCLUDED_VCL_STRHELPER_HXX
20#define INCLUDED_VCL_STRHELPER_HXX
23#include <rtl/math.hxx>
24#include <rtl/ustring.hxx>
49 return rtl::math::stringToDouble(rStr,
u'.',
u'\0');
54 return rtl::math::stringToDouble(rStr,
'.',
static_cast<char>(0));
62 OString
aStr( rtl::math::doubleToString( f, rtl_math_StringFormat_G, nPrecision,
'.',
true ) );
63 int nLen =
aStr.getLength();
64 std::strncpy( pBuffer,
aStr.getStr(), nLen+1 );
OUString GetCommandLineToken(int nToken, const OUString &rLine)
int getValueOfDouble(char *pBuffer, double f, int nPrecision=0)
double StringToDouble(std::u16string_view rStr)
int GetCommandLineTokenCount(const OUString &rLine)
OUString WhitespaceToSpace(std::u16string_view rLine, bool bProtect)