aboutsummaryrefslogtreecommitdiff
path: root/src/xmlreader.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-07-31 20:51:28 +0000
committerMike Buland <eichlan@xagasoft.com>2009-07-31 20:51:28 +0000
commitfbb30d35cfa10bf36d4ecb2d0eb5971c24aab26a (patch)
tree4631e5b990624694b3576b037500603abce7ab8a /src/xmlreader.cpp
parent17ec138bb159df52fb07f2f3ba47816d58cc194e (diff)
downloadlibbu++-fbb30d35cfa10bf36d4ecb2d0eb5971c24aab26a.tar.gz
libbu++-fbb30d35cfa10bf36d4ecb2d0eb5971c24aab26a.tar.bz2
libbu++-fbb30d35cfa10bf36d4ecb2d0eb5971c24aab26a.tar.xz
libbu++-fbb30d35cfa10bf36d4ecb2d0eb5971c24aab26a.zip
I switched the Bu::Stream::isEOS function to be named Bu::Stream::isEos, and
also made sure the copyright is at the top of all the files, it's been too long. Anyway, this may effect some code, but not much, and it's an easy enough fix.
Diffstat (limited to 'src/xmlreader.cpp')
-rw-r--r--src/xmlreader.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/xmlreader.cpp b/src/xmlreader.cpp
index 12d8dba..c6bc3c9 100644
--- a/src/xmlreader.cpp
+++ b/src/xmlreader.cpp
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#include "bu/xmlreader.h" 8#include "bu/xmlreader.h"
2#include "bu/stream.h" 9#include "bu/stream.h"
3 10
@@ -19,7 +26,7 @@ Bu::XmlReader::~XmlReader()
19 26
20void Bu::XmlReader::fillBuffer() 27void Bu::XmlReader::fillBuffer()
21{ 28{
22 if( rInput.isEOS() ) 29 if( rInput.isEos() )
23 return; 30 return;
24 char buf[1024]; 31 char buf[1024];
25 int iSize = rInput.read( buf, 1024 ); 32 int iSize = rInput.read( buf, 1024 );
@@ -88,7 +95,7 @@ int Bu::XmlReader::nextToken()
88 { 95 {
89 if( j == sBuf.getSize() ) 96 if( j == sBuf.getSize() )
90 { 97 {
91 if( rInput.isEOS() ) 98 if( rInput.isEos() )
92 error("Reached end of input while waiting for whitespace to end."); 99 error("Reached end of input while waiting for whitespace to end.");
93 100
94 fillBuffer(); 101 fillBuffer();
@@ -116,7 +123,7 @@ int Bu::XmlReader::nextToken()
116 { 123 {
117 if( j == sBuf.getSize() ) 124 if( j == sBuf.getSize() )
118 { 125 {
119 if( rInput.isEOS() ) 126 if( rInput.isEos() )
120 error("Reached end of input while waiting for a string to end."); 127 error("Reached end of input while waiting for a string to end.");
121 128
122 fillBuffer(); 129 fillBuffer();