diff options
Diffstat (limited to 'src/xmlreader.cpp')
| -rw-r--r-- | src/xmlreader.cpp | 13 |
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 | ||
| 20 | void Bu::XmlReader::fillBuffer() | 27 | void 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(); |
