JSDOC/TextStream.vala
authorAlan Knowles <alan@roojs.com>
Tue, 15 Sep 2015 09:30:24 +0000 (17:30 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 15 Sep 2015 09:30:24 +0000 (17:30 +0800)
JSDOC/TextStream.vala

index 7ebda98..a68d2a7 100644 (file)
@@ -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 "";
                     
                     
                 }