Hi,
Am 15.07.2008 um 11:34 schrieb Helder Magalhães:
>> Is there anybody that knows a good solution for this? I am not
>> happy with
>> my
>> 'special check' that handles just my special issue.
>>
>
> I haven't confirmed this but... Are you experiencing this using the
> SVN code
> or a specific release? As Andreas has said it worked for him, you
> might be
> suffering from an issue which may already be fixed in trunk.
I was talking about the Java backend (since Peter mentioned that other
backends should also be checked for the problem).
Regarding the PHP code, maybe the Java backend could serve as
inspiration for a fix? The code that deals with string parsing looks
like this:
public String nextString(char quote) throws ParseException {
char c;
StringBuffer sb = new StringBuffer();
while (true) {
c = next();
switch (c) {
case 0:
case '\n':
case '\r':
throw syntaxError("Unterminated string");
case '\\':
c = next();
switch (c) {
case 'b':
sb.append('\b');
break;
case 't':
sb.append('\t');
break;
case 'n':
sb.append('\n');
break;
case 'f':
sb.append('\f');
break;
case 'r':
sb.append('\r');
break;
case 'u':
sb.append((char)Integer.parseInt(next(4), 16));
break;
case 'x' :
sb.append((char) Integer.parseInt(next(2), 16));
break;
default:
sb.append(c);
}
break;
default:
if (c == quote) {
return sb.toString();
}
sb.append(c);
}
}
}
The code originally comes from json.org, and it looks simple and clean
to me. However, I haven't looked at the PHP backend code (and I don't
know PHP very well), so something like the above might not be
applicable.
Regards,
Andreas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel