From 1b6e0daaa70405d89fbc13b37286c96966eccbc2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 10 Sep 2015 18:35:11 +0800 Subject: [PATCH] JSDOC/TextStream.vala --- JSDOC/TextStream.vala | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/JSDOC/TextStream.vala b/JSDOC/TextStream.vala index bc26198..ff5f98c 100644 --- a/JSDOC/TextStream.vala +++ b/JSDOC/TextStream.vala @@ -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) { -- 2.39.2