summaryrefslogtreecommitdiff
path: root/io/source/TextInputStream/TextInputStream.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-22 12:52:39 +0200
committerNoel Grandin <noel@peralex.com>2014-04-23 11:11:49 +0200
commit1f2a47a6d39be654847c2bdde7605e08ad2fb78a (patch)
tree92ea9da2d9147091594302fe86128b36221a9ce4 /io/source/TextInputStream/TextInputStream.cxx
parente4f690b0389263c35f83fa8b58382c6518d00f62 (diff)
io: sal_Bool->bool
Change-Id: I136c98cbe15d1c6629028392a9573066320b3a04
Diffstat (limited to 'io/source/TextInputStream/TextInputStream.cxx')
-rw-r--r--io/source/TextInputStream/TextInputStream.cxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx
index 845d61ab4597..876d3a2807b1 100644
--- a/io/source/TextInputStream/TextInputStream.cxx
+++ b/io/source/TextInputStream/TextInputStream.cxx
@@ -62,7 +62,7 @@ class OTextInputStream : public TextInputStreamHelper
// Encoding
OUString mEncoding;
- sal_Bool mbEncodingInitialized;
+ bool mbEncodingInitialized;
rtl_TextToUnicodeConverter mConvText2Unicode;
rtl_TextToUnicodeContext mContextText2Unicode;
Sequence<sal_Int8> mSeqSource;
@@ -71,11 +71,11 @@ class OTextInputStream : public TextInputStreamHelper
sal_Unicode* mpBuffer;
sal_Int32 mnBufferSize;
sal_Int32 mnCharsInBuffer;
- sal_Bool mbReachedEOF;
+ bool mbReachedEOF;
void implResizeBuffer( void );
OUString implReadString( const Sequence< sal_Unicode >& Delimiters,
- sal_Bool bRemoveDelimiter, sal_Bool bFindLineEnd )
+ bool bRemoveDelimiter, bool bFindLineEnd )
throw(IOException, RuntimeException);
sal_Int32 implReadNext() throw(IOException, RuntimeException);
@@ -124,7 +124,7 @@ OTextInputStream::OTextInputStream()
, mpBuffer(NULL)
, mnBufferSize(0)
, mnCharsInBuffer(0)
- , mbReachedEOF(sal_False)
+ , mbReachedEOF(false)
{
}
@@ -157,27 +157,27 @@ OUString OTextInputStream::readLine( )
throw(IOException, RuntimeException, std::exception)
{
static Sequence< sal_Unicode > aDummySeq;
- return implReadString( aDummySeq, sal_True, sal_True );
+ return implReadString( aDummySeq, true, true );
}
OUString OTextInputStream::readString( const Sequence< sal_Unicode >& Delimiters, sal_Bool bRemoveDelimiter )
throw(IOException, RuntimeException, std::exception)
{
- return implReadString( Delimiters, bRemoveDelimiter, sal_False );
+ return implReadString( Delimiters, bRemoveDelimiter, false );
}
sal_Bool OTextInputStream::isEOF()
throw(IOException, RuntimeException, std::exception)
{
- sal_Bool bRet = sal_False;
+ bool bRet = false;
if( mnCharsInBuffer == 0 && mbReachedEOF )
- bRet = sal_True;
+ bRet = true;
return bRet;
}
OUString OTextInputStream::implReadString( const Sequence< sal_Unicode >& Delimiters,
- sal_Bool bRemoveDelimiter, sal_Bool bFindLineEnd )
+ bool bRemoveDelimiter, bool bFindLineEnd )
throw(IOException, RuntimeException)
{
OUString aRetStr;
@@ -201,8 +201,8 @@ OUString OTextInputStream::implReadString( const Sequence< sal_Unicode >& Delimi
sal_Int32 nBufferReadPos = 0;
sal_Int32 nCopyLen = 0;
- sal_Bool bFound = sal_False;
- sal_Bool bFoundFirstLineEndChar = sal_False;
+ bool bFound = false;
+ bool bFoundFirstLineEndChar = false;
sal_Unicode cFirstLineEndChar = 0;
const sal_Unicode* pDelims = Delimiters.getConstArray();
const sal_Int32 nDelimCount = Delimiters.getLength();
@@ -228,7 +228,7 @@ OUString OTextInputStream::implReadString( const Sequence< sal_Unicode >& Delimi
{
if( bFoundFirstLineEndChar )
{
- bFound = sal_True;
+ bFound = true;
nCopyLen = nBufferReadPos - 2;
if( c == cLineEndChar1 || c == cLineEndChar2 )
{
@@ -246,7 +246,7 @@ OUString OTextInputStream::implReadString( const Sequence< sal_Unicode >& Delimi
}
else if( c == cLineEndChar1 || c == cLineEndChar2 )
{
- bFoundFirstLineEndChar = sal_True;
+ bFoundFirstLineEndChar = true;
cFirstLineEndChar = c;
}
}
@@ -256,7 +256,7 @@ OUString OTextInputStream::implReadString( const Sequence< sal_Unicode >& Delimi
{
if( c == pDelims[ i ] )
{
- bFound = sal_True;
+ bFound = true;
nCopyLen = nBufferReadPos;
if( bRemoveDelimiter )
nCopyLen--;
@@ -296,7 +296,7 @@ sal_Int32 OTextInputStream::implReadNext()
sal_Int32 nRead = mxStream->readSomeBytes( mSeqSource, nBytesToRead );
sal_Int32 nTotalRead = nRead;
if( nRead < nBytesToRead )
- mbReachedEOF = sal_True;
+ mbReachedEOF = true;
// Try to convert
sal_uInt32 uiInfo;
@@ -322,11 +322,11 @@ sal_Int32 OTextInputStream::implReadNext()
&nSrcCvtBytes );
nSourceCount += nSrcCvtBytes;
- sal_Bool bCont = sal_False;
+ bool bCont = false;
if( uiInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL )
{
implResizeBuffer();
- bCont = sal_True;
+ bCont = true;
}
if( uiInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL )
@@ -336,7 +336,7 @@ sal_Int32 OTextInputStream::implReadNext()
nRead = mxStream->readSomeBytes( aOneByteSeq, 1 );
if( nRead == 0 )
{
- mbReachedEOF = sal_True;
+ mbReachedEOF = true;
break;
}
@@ -348,7 +348,7 @@ sal_Int32 OTextInputStream::implReadNext()
}
mSeqSource.getArray()[ nOldLen ] = aOneByteSeq.getConstArray()[ 0 ];
pbSource = mSeqSource.getConstArray();
- bCont = sal_True;
+ bCont = true;
}
if( bCont )