projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6ddc58
)
Text/SearchParser.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 26 Apr 2012 02:37:51 +0000
(10:37 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 26 Apr 2012 02:37:51 +0000
(10:37 +0800)
Text/SearchParser.php
patch
|
blob
|
history
diff --git
a/Text/SearchParser.php
b/Text/SearchParser.php
index
84712d6
..
17ba796
100644
(file)
--- a/
Text/SearchParser.php
+++ b/
Text/SearchParser.php
@@
-186,8
+186,16
@@
class Text_SearchParser_Tokenizer {
}
}
- function addStr($s, $q=false) { //$q == quoted..
- $s = $q ? $s : trim($s);
+ /**
+ * add a string to the tokens list..
+ * @param string $str The string to add
+ * @param boolean $q is the string quoted.
+ */
+
+ function addStr($s, $q=false)
+ {
+ //$s = $q ? $s : trim($s);
+ $s = trim($s);
if (!strlen($s)) {
return;
}