Pman.SearchTokenizer.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 23 Sep 2011 04:06:43 +0000 (12:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 23 Sep 2011 04:06:43 +0000 (12:06 +0800)
Pman.SearchTokenizer.js

index 1a3686d..b438e6b 100644 (file)
@@ -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--;
     }