diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-05 16:24:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-12 11:56:41 +0200 |
commit | ff7ac85d4b657da2cd28b878325fd7c290b5c63b (patch) | |
tree | 1f7ecb1e8d7ba03b1add65df83b6ab4be4a36812 /vcl/source/helper | |
parent | 298772b637b8dc8d2a1582e3ef9e6bfa4ce61997 (diff) |
convert vcl/strhelper.hxx from String to OUString
Change-Id: I1d54431dbd8c562703879a81540f62b3513e9dc9
Diffstat (limited to 'vcl/source/helper')
-rw-r--r-- | vcl/source/helper/strhelper.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/helper/strhelper.cxx b/vcl/source/helper/strhelper.cxx index 156aa00c35b9..41e82929d24a 100644 --- a/vcl/source/helper/strhelper.cxx +++ b/vcl/source/helper/strhelper.cxx @@ -111,15 +111,15 @@ inline void CopyUntil( sal_Unicode*& pTo, const sal_Unicode*& pFrom, sal_Unicode pFrom++; } -String GetCommandLineToken( int nToken, const String& rLine ) +OUString GetCommandLineToken( int nToken, const OUString& rLine ) { - int nLen = rLine.Len(); + sal_Int32 nLen = rLine.getLength(); if( ! nLen ) - return String(); + return OUString(); int nActualToken = 0; sal_Unicode* pBuffer = (sal_Unicode*)alloca( sizeof(sal_Unicode)*( nLen + 1 ) ); - const sal_Unicode* pRun = rLine.GetBuffer(); + const sal_Unicode* pRun = rLine.getStr(); sal_Unicode* pLeap = NULL; while( *pRun && nActualToken <= nToken ) @@ -261,14 +261,14 @@ int GetCommandLineTokenCount(const OUString& rLine) return nTokenCount; } -String WhitespaceToSpace( const String& rLine, bool bProtect ) +OUString WhitespaceToSpace( const OUString& rLine, bool bProtect ) { - int nLen = rLine.Len(); + sal_Int32 nLen = rLine.getLength(); if( ! nLen ) - return String(); + return OUString(); sal_Unicode *pBuffer = (sal_Unicode*)alloca( sizeof(sal_Unicode)*(nLen + 1) ); - const sal_Unicode *pRun = rLine.GetBuffer(); + const sal_Unicode *pRun = rLine.getStr(); sal_Unicode *pLeap = pBuffer; while( *pRun ) |