From: Alan Knowles Date: Fri, 23 Sep 2011 04:06:43 +0000 (+0800) Subject: Pman.SearchTokenizer.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=4dafc35a4ebe2e8b94e464fafa13e16db4b5e710 Pman.SearchTokenizer.js --- diff --git a/Pman.SearchTokenizer.js b/Pman.SearchTokenizer.js index 1a3686d5..b438e6be 100644 --- a/Pman.SearchTokenizer.js +++ b/Pman.SearchTokenizer.js @@ -117,18 +117,19 @@ Pman.SearchTokenizer.prototype = { } } this.tokens.push( { type : 's' , v : s }); - } + }, - function getChar() + getChar : function () { + if (this.i >= this.strlen) { return false; } c = this.str[this.i]; this.i++; return c; - } - function ungetChar() + }, + ungetChar : function () { this.i--; }