diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 11:05:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 11:06:48 +0000 |
commit | 6220ed4e6e04d555dc28ada02f46f88ed9ee3daf (patch) | |
tree | 1a189a81ca4e49011a79e97002383365edb52769 /vcl | |
parent | 9656a1549512ddc2b1a69d4e5bb6c791dede1534 (diff) |
callcatcher: update list
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/strhelper.hxx | 1 | ||||
-rw-r--r-- | vcl/source/helper/strhelper.cxx | 51 |
2 files changed, 0 insertions, 52 deletions
diff --git a/vcl/inc/vcl/strhelper.hxx b/vcl/inc/vcl/strhelper.hxx index fa8258d5042b..49b29ef43c82 100644 --- a/vcl/inc/vcl/strhelper.hxx +++ b/vcl/inc/vcl/strhelper.hxx @@ -44,7 +44,6 @@ namespace psp // contents VCL_DLLPUBLIC int GetCommandLineTokenCount(const rtl::OUString&); - VCL_DLLPUBLIC int GetCommandLineTokenCount(const rtl::OString&); // returns number of tokens (zero if empty or whitespace only) VCL_DLLPUBLIC String WhitespaceToSpace( const String&, sal_Bool bProtect = sal_True ); diff --git a/vcl/source/helper/strhelper.cxx b/vcl/source/helper/strhelper.cxx index 14b61a56e5e6..0515fab7b6b7 100644 --- a/vcl/source/helper/strhelper.cxx +++ b/vcl/source/helper/strhelper.cxx @@ -271,57 +271,6 @@ int GetCommandLineTokenCount(const rtl::OUString& rLine) return nTokenCount; } -int GetCommandLineTokenCount(const rtl::OString& rLine) -{ - if (rLine.isEmpty()) - return 0; - - int nTokenCount = 0; - const char *pRun = rLine.getStr(); - - - while( *pRun ) - { - while( *pRun && isSpace( *pRun ) ) - pRun++; - if( ! *pRun ) - break; - while( *pRun && ! isSpace( *pRun ) ) - { - if( *pRun == '\\' ) - { - // escapement - pRun++; - if( *pRun ) - pRun++; - } - else if( *pRun == '`' ) - { - do pRun++; while( *pRun && *pRun != '`' ); - if( *pRun ) - pRun++; - } - else if( *pRun == '\'' ) - { - do pRun++; while( *pRun && *pRun != '\'' ); - if( *pRun ) - pRun++; - } - else if( *pRun == '"' ) - { - do pRun++; while( *pRun && *pRun != '"' ); - if( *pRun ) - pRun++; - } - else - pRun++; - } - nTokenCount++; - } - - return nTokenCount; -} - String WhitespaceToSpace( const String& rLine, sal_Bool bProtect ) { int nLen = rLine.Len(); |