JSDOC/TextStream.vala
[gnome.introspection-doc-generator] / JSDOC / TextStream.vala
index 5f021e4..ff5f98c 100644 (file)
@@ -39,12 +39,21 @@ namespace JSDOC {
             }
             return  this.text[this.cursor+n];
         },
+        
+        public bool lookEOF(int n = 0)
+        {
+            if (this.cursor+n < 0 || this.cursor+n >= this.text.length) {
+                return true;
+            }
+            return  false
+        },
+        
     
         public char next(int n = 1,  out bool eof)
         {
             eof = false;
-            if (n < 1) {
-                return null;
+            if (n < 1) { //?? eof???
+                return '\0';
             }
                 
             char pulled;