diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-22 17:17:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 10:10:08 +0000 |
commit | 20153742d2dee2df022275a07cc958b1759b9b72 (patch) | |
tree | a91d3d42faa559783d407bb1fe08f4070d945762 /svtools | |
parent | a22ce3e4483f6fe462eaba8826a91355957e3676 (diff) |
add a stripStart, can replace EraseLeadingChars
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/bmpmaker/bmpcore.cxx | 4 | ||||
-rw-r--r-- | svtools/source/misc/imap2.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svtools/bmpmaker/bmpcore.cxx b/svtools/bmpmaker/bmpcore.cxx index d1e0964210d9..159d6e4701c1 100644 --- a/svtools/bmpmaker/bmpcore.cxx +++ b/svtools/bmpmaker/bmpcore.cxx @@ -130,8 +130,8 @@ void BmpCreator::ImplCreate( const ::std::vector< DirEntry >& rInDirs, if( !pSRS->ReadLine( aLine ) ) break; - aLine.EraseLeadingChars( ' ' ); - aLine.EraseLeadingChars( '\t' ); + aLine = comphelper::string::stripStart(aLine, ' '); + aLine = comphelper::string::stripStart(aLine, '\t'); aLine = comphelper::string::remove(aLine, ';'); if (comphelper::string::isdigitAsciiString(aLine)) diff --git a/svtools/source/misc/imap2.cxx b/svtools/source/misc/imap2.cxx index 5b1d23d8cc53..1d3b7ab9f1ab 100644 --- a/svtools/source/misc/imap2.cxx +++ b/svtools/source/misc/imap2.cxx @@ -265,8 +265,8 @@ void ImageMap::ImpReadCERNLine( const rtl::OString& rLine, const String& rBaseUR { ByteString aStr( rLine ); - aStr.EraseLeadingChars( ' ' ); - aStr.EraseLeadingChars( '\t' ); + aStr = comphelper::string::stripStart(aStr, ' '); + aStr = comphelper::string::stripStart(aStr, '\t'); aStr = comphelper::string::remove(aStr, ';'); aStr.ToLowerAscii(); @@ -408,8 +408,8 @@ void ImageMap::ImpReadNCSALine( const rtl::OString& rLine, const String& rBaseUR { ByteString aStr( rLine ); - aStr.EraseLeadingChars( ' ' ); - aStr.EraseLeadingChars( '\t' ); + aStr = comphelper::string::stripStart(aStr, ' '); + aStr = comphelper::string::stripStart(aStr, '\t'); aStr = comphelper::string::remove(aStr, ';'); aStr.ToLowerAscii(); |