Better prettyprinting. Untested.

This commit is contained in:
dchandler 2003-11-11 03:43:26 +00:00
parent 4e6a9c299f
commit 4023be9612

View file

@ -319,7 +319,6 @@ public class UnicodeUtils implements UnicodeConstants {
|| cp == '^' || cp == '^'
|| cp == '&' || cp == '&'
|| cp == '*' || cp == '*'
|| cp == '\t'
|| cp == ':' || cp == ':'
|| cp == '[' || cp == '['
|| cp == ']' || cp == ']'
@ -329,6 +328,13 @@ public class UnicodeUtils implements UnicodeConstants {
|| cp == '}') || cp == '}')
return new String(new char[] { cp }); return new String(new char[] { cp });
} }
if ('\t' == cp)
return "\\t";
if ('\n' == cp)
return "\\n";
if ('\r' == cp)
return "\\r";
if (cp < '\u0010') if (cp < '\u0010')
return "\\u000" + Integer.toHexString((int)cp); return "\\u000" + Integer.toHexString((int)cp);
else if (cp < '\u0100') else if (cp < '\u0100')