Modified nextChar method to return character under cursor before incrementing cursor.
This commit is contained in:
parent
01180021b4
commit
c70f135710
@ -561,9 +561,11 @@ namespace coreutils {
|
||||
return *this;
|
||||
}
|
||||
|
||||
void ZString::nextChar() {
|
||||
if(!eod())
|
||||
++cursor;
|
||||
char ZString::nextChar() {
|
||||
char temp = 0;
|
||||
if(!eod())
|
||||
temp = *cursor++;
|
||||
return temp;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user