projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea592d
)
Pman.SearchTokenizer.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 23 Sep 2011 04:06:43 +0000
(12:06 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 23 Sep 2011 04:06:43 +0000
(12:06 +0800)
Pman.SearchTokenizer.js
patch
|
blob
|
history
diff --git
a/Pman.SearchTokenizer.js
b/Pman.SearchTokenizer.js
index
1a3686d
..
b438e6b
100644
(file)
--- 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--;
}