Kaydet (Commit) 2a3ce6ac authored tarafından Caolán McNamara's avatar Caolán McNamara

ByteString->rtl::OStringBuffer

üst 8712fbf2
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include "basrid.hxx" #include "basrid.hxx"
#include "runtime.hxx" #include "runtime.hxx"
#include <rtl/strbuf.hxx>
#include <svl/zforlist.hxx> #include <svl/zforlist.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
...@@ -112,13 +113,13 @@ SbxError ImpScan( const ::rtl::OUString& rWSrc, double& nVal, SbxDataType& rType ...@@ -112,13 +113,13 @@ SbxError ImpScan( const ::rtl::OUString& rWSrc, double& nVal, SbxDataType& rType
short comma = 0; short comma = 0;
short ndig = 0; short ndig = 0;
short ncdig = 0; // number of digits after decimal point short ncdig = 0; // number of digits after decimal point
ByteString aSearchStr( "0123456789DEde" ); rtl::OStringBuffer aSearchStr(RTL_CONSTASCII_STRINGPARAM("0123456789DEde"));
aSearchStr += cNonIntntlComma; aSearchStr.append(cNonIntntlComma);
if( cIntntlComma != cNonIntntlComma ) if( cIntntlComma != cNonIntntlComma )
aSearchStr += cIntntlComma; aSearchStr.append(cIntntlComma);
if( bOnlyIntntl ) if( bOnlyIntntl )
aSearchStr += cIntntl1000; aSearchStr.append(cIntntl1000);
const char* pSearchStr = aSearchStr.GetBuffer(); const char* pSearchStr = aSearchStr.getStr();
while( strchr( pSearchStr, *p ) && *p ) while( strchr( pSearchStr, *p ) && *p )
{ {
if( bOnlyIntntl && *p == cIntntl1000 ) if( bOnlyIntntl && *p == cIntntl1000 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment