JSDOC/TextStream.vala
authorAlan Knowles <alan@roojs.com>
Thu, 10 Sep 2015 10:35:11 +0000 (18:35 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Sep 2015 10:35:11 +0000 (18:35 +0800)
JSDOC/TextStream.vala

index bc26198..ff5f98c 100644 (file)
@@ -39,6 +39,15 @@ 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)
         {