Home | History | Annotate | Download | only in xml

Lines Matching refs:ch

76     for (char ch = 0; ch < 0x20; ch++) {
77 if (ch == '\t' || ch == '\n' || ch == '\r') {
80 assertEscaping(xmlEscaper, "&#x" + Integer.toHexString(ch).toUpperCase() + ";", ch);
82 assertUnescaped(xmlEscaper, ch);
86 assertEscaping(xmlEscaper, "\uFFFD", ch);
91 for (char ch = 0x20; ch <= 0xFFFD; ch++) {
93 if (ch == '&') {
94 assertEscaping(xmlEscaper, "&amp;", ch);
95 } else if (ch == '<') {
96 assertEscaping(xmlEscaper, "&lt;", ch);
97 } else if (ch == '>') {
98 assertEscaping(xmlEscaper, "&gt;", ch);
99 } else if (shouldEscapeQuotes && ch == '\'') {
100 assertEscaping(xmlEscaper, "&apos;", ch);
101 } else if (shouldEscapeQuotes && ch == '"') {
102 assertEscaping(xmlEscaper, "&quot;", ch);
104 String input = String.valueOf(ch);
107 "char 0x" + Integer.toString(ch, 16) + " should not be escaped",