From a40a439a9ab0215ebd14ecdcad6755a60e156293 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 15 Sep 2015 17:30:24 +0800 Subject: [PATCH] JSDOC/TextStream.vala --- JSDOC/TextStream.vala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/JSDOC/TextStream.vala b/JSDOC/TextStream.vala index 7ebda98..a68d2a7 100644 --- a/JSDOC/TextStream.vala +++ b/JSDOC/TextStream.vala @@ -48,15 +48,17 @@ namespace JSDOC { return false }, - - public char next(int n = 1) + /** + * @param n - number of characters to return.. + */ + public string next(int n = 1) { if (n < 1) { //?? eof??? return '\0'; } - char pulled; + string pulled; var i = 0; while (i < n) { if (this.cursor+i < this.length) { @@ -64,7 +66,7 @@ namespace JSDOC { i += pulled.to_string.length(); } else { - return '\0'; + return ""; } -- 2.39.2