diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-14 12:07:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-14 15:19:49 +0100 |
commit | 7843cfd879d4d06e441e4b3ae2f5336149c3570c (patch) | |
tree | 80dcec93d796c91f3d08fb2f58d6eeb39db67391 /tools/bootstrp | |
parent | can shrink these buffers to minimum required (diff) | |
download | core-7843cfd879d4d06e441e4b3ae2f5336149c3570c.tar.gz core-7843cfd879d4d06e441e4b3ae2f5336149c3570c.zip |
remove GetCleanedNextLine
Diffstat (limited to 'tools/bootstrp')
-rw-r--r-- | tools/bootstrp/prj.cxx | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx index 04c391edca14..97a8c84a63cf 100644 --- a/tools/bootstrp/prj.cxx +++ b/tools/bootstrp/prj.cxx @@ -117,48 +117,4 @@ ByteString SimpleConfig::GetNextLine() return aTmpStr; } -/*****************************************************************************/ -ByteString SimpleConfig::GetCleanedNextLine( sal_Bool bReadComments ) -/*****************************************************************************/ -{ - - aFileStream.ReadLine ( aTmpStr ); - if ( aTmpStr.Search( "#" ) == 0 ) - { - if (bReadComments ) - return aTmpStr; - else - while ( aTmpStr.Search( "#" ) == 0 ) - { - aFileStream.ReadLine ( aTmpStr ); - } - } - - aTmpStr = aTmpStr.EraseLeadingChars(); - aTmpStr = aTmpStr.EraseTrailingChars(); - int nLength = aTmpStr.Len(); - ByteString aEraseString; - sal_Bool bFirstTab = sal_True; - for ( sal_uInt16 i = 0; i<= nLength; i++) - { - if ( aTmpStr.GetChar( i ) == 0x20 ) - aTmpStr.SetChar( i, 0x09 ); - - if ( aTmpStr.GetChar( i ) == 0x09 ) - { - if ( bFirstTab ) - bFirstTab = sal_False; - else - { - aTmpStr.SetChar( i, 0x20 ); - } - } - else - bFirstTab = sal_True; - - } - aTmpStr.EraseAllChars(' '); - return aTmpStr; - -} - +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |