},
strParse : function ()
{
-
- str = '';
+ var c;
+ var str = '';
while(true) {
- if (false === (c = this.getChar())) {
+ c = this.getChar();
+ if (false === c) {
this.addStr(str);
return;
}
case '(':
case ')': this.addStr(str); this.ungetChar(); return;
case '"':
- if (strlen(str)) {
+ if (str.length) {
this.addStr(str);
str = '';
}
break;
default :
- str .= c;
+ str += c;
continue;
}
}
- }
- function strParseQuoted(end)
+ },
+
+ strParseQuoted: function (end)
{
- str = ''; /// ignore \" slashed ???
+ var str = ''; /// ignore \" slashed ???
+ var c;
while(true) {
- if (false === (c = this.getChar())) {
+ c = this.getChar();
+ if (false === c) {
this.addStr(str,true);
return;
}
this.addStr(str,true);
return;
}
- str .= c;
+ str += c;
}
}