Modified nextChar method to return character under cursor before incrementing cursor.
This commit is contained in:
1 parent
01180021b4
commit
c70f135710
2 files changed
+7
-4
No files matched your search
+4
-2
@@ -561,9 +561,11 @@ namespace coreutils {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZString::nextChar() {
|
char ZString::nextChar() {
|
||||||
|
char temp = 0;
|
||||||
if(!eod())
|
if(!eod())
|
||||||
++cursor;
|
temp = *cursor++;
|
||||||
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user