public char next(int n = 1, out bool eof)
{
eof = false;
- if (n < 1) {
- return null;
+ if (n < 1) { //?? eof???
+ return '\0';
}
- var pulled = "";
+ char pulled;
for (var i = 0; i < n; i++) {
if (this.cursor+i < this.text.length) {
pulled += this.text.charAt(this.cursor+i);