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/source | |
parent | 9656a1549512ddc2b1a69d4e5bb6c791dede1534 (diff) |
callcatcher: update list
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/helper/strhelper.cxx | 51 |
1 files changed, 0 insertions, 51 deletions
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(); |