Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 21 22 package nu.xom; 23 24 import java.io.Writer ; 25 26 35 class Latin2Writer extends TextWriter { 36 37 Latin2Writer(Writer out, String encoding) { 38 super(out, encoding); 39 } 40 41 44 boolean needsEscaping(char c) { 45 if (c <= 0xA0) return false; 46 switch (c) { 47 case 0x00A1: return true; case 0x00A2: return true; case 0x00A3: return true; case 0x00A4: return false; case 0x00A5: return true; case 0x00A6: return true; case 0x00A7: return false; case 0x00A8: return false; case 0x00A9: return true; case 0x00AA: return true; case 0x00AB: return true; case 0x00AC: return true; case 0x00AD: return false; case 0x00AE: return true; case 0x00AF: return true; case 0x00B0: return false; case 0x00B1: return true; case 0x00B2: return true; case 0x00B3: return true; case 0x00B4: return false; case 0x00B5: return true; case 0x00B6: return true; case 0x00B7: return true; case 0x00B8: return false; case 0x00C0: return true; case 0x00C1: return false; case 0x00C2: return false; case 0x00C3: return true; case 0x00C4: return false; case 0x00C5: return true; case 0x00C6: return true; case 0x00C7: return false; case 0x00C8: return true; case 0x00C9: return false; case 0x00CA: return true; case 0x00CB: return false; case 0x00CC: return true; case 0x00CD: return false; case 0x00CE: return false; case 0x00CF: return true; case 0x00D0: return true; case 0x00D1: return true; case 0x00D2: return true; case 0x00D3: return false; case 0x00D4: return false; case 0x00D5: return true; case 0x00D6: return false; case 0x00D7: return false; case 0x00D8: return true; case 0x00D9: return true; case 0x00DA: return false; case 0x00DB: return true; case 0x00DC: return false; case 0x00DD: return false; case 0x00DE: return true; case 0x00DF: return false; case 0x00E0: return true; case 0x00E1: return false; case 0x00E2: return false; case 0x00E3: return true; case 0x00E4: return false; case 0x00E5: return true; case 0x00E6: return true; case 0x00E7: return false; case 0x00E8: return true; case 0x00E9: return false; case 0x00EA: return true; case 0x00EB: return false; case 0x00EC: return true; case 0x00ED: return false; case 0x00EE: return false; case 0x00EF: return true; case 0x00F0: return true; case 0x00F1: return true; case 0x00F2: return true; case 0x00F3: return false; case 0x00F4: return false; case 0x00F5: return true; case 0x00F6: return false; case 0x00F7: return false; case 0x00F8: return true; case 0x00F9: return true; case 0x00FA: return false; case 0x00FB: return true; case 0x00FC: return false; case 0x00FD: return false; case 0x00FE: return true; case 0x00FF: return true; case 0x0100: return true; case 0x0101: return true; case 0x0102: return false; case 0x0103: return false; case 0x0104: return false; case 0x0105: return false; case 0x0106: return false; case 0x0107: return false; case 0x0108: return true; case 0x0109: return true; case 0x010A: return true; case 0x010B: return true; case 0x010C: return false; case 0x010D: return false; case 0x010E: return false; case 0x010F: return false; case 0x0110: return false; case 0x0111: return false; case 0x0112: return true; case 0x0113: return true; case 0x0114: return true; case 0x0115: return true; case 0x0116: return true; case 0x0117: return true; case 0x0118: return false; case 0x0119: return false; case 0x011A: return false; case 0x011B: return false; case 0x011C: return true; case 0x011D: return true; case 0x011E: return true; case 0x011F: return true; case 0x0120: return true; case 0x0121: return true; case 0x0122: return true; case 0x0123: return true; case 0x0124: return true; case 0x0125: return true; case 0x0126: return true; case 0x0127: return true; case 0x0128: return true; case 0x0129: return true; case 0x012A: return true; case 0x012B: return true; case 0x012C: return true; case 0x012D: return true; case 0x012E: return true; case 0x012F: return true; case 0x0130: return true; case 0x0131: return true; case 0x0132: return true; case 0x0133: return true; case 0x0134: return true; case 0x0135: return true; case 0x0136: return true; case 0x0137: return true; case 0x0138: return true; case 0x0139: return false; case 0x013A: return false; case 0x013B: return true; case 0x013C: return true; case 0x013D: return false; case 0x013E: return false; case 0x013F: return true; case 0x0140: return true; case 0x0141: return false; case 0x0142: return false; case 0x0143: return false; case 0x0144: return false; case 0x0145: return true; case 0x0146: return true; case 0x0147: return false; case 0x0148: return false; case 0x0149: return true; case 0x014A: return true; case 0x014B: return true; case 0x014C: return true; case 0x014D: return true; case 0x014E: return true; case 0x014F: return true; case 0x0150: return false; case 0x0151: return false; case 0x0152: return true; case 0x0153: return true; case 0x0154: return false; case 0x0155: return false; case 0x0156: return true; case 0x0157: return true; case 0x0158: return false; case 0x0159: return false; case 0x015A: return false; case 0x015B: return false; case 0x015C: return true; case 0x015D: return true; case 0x015E: return false; case 0x015F: return false; case 0x0160: return false; case 0x0161: return false; case 0x0162: return false; case 0x0163: return false; case 0x0164: return false; case 0x0165: return false; case 0x0166: return true; case 0x0167: return true; case 0x0168: return true; case 0x0169: return true; case 0x016A: return true; case 0x016B: return true; case 0x016C: return true; case 0x016D: return true; case 0x016E: return false; case 0x016F: return false; case 0x0170: return false; case 0x0171: return false; case 0x0172: return true; case 0x0173: return true; case 0x0174: return true; case 0x0175: return true; case 0x0176: return true; case 0x0177: return true; case 0x0178: return true; case 0x0179: return false; case 0x017A: return false; case 0x017B: return false; case 0x017C: return false; case 0x017D: return false; case 0x017E: return false; } 263 switch (c) { 264 case 0x02C7: return false; case 0x02C8: return true; case 0x02C9: return true; case 0x02CA: return true; case 0x02CB: return true; case 0x02CC: return true; case 0x02CD: return true; case 0x02CE: return true; case 0x02CF: return true; case 0x02D0: return true; case 0x02D1: return true; case 0x02D2: return true; case 0x02D3: return true; case 0x02D4: return true; case 0x02D5: return true; case 0x02D6: return true; case 0x02D7: return true; case 0x02D8: return false; case 0x02D9: return false; case 0x02DA: return true; case 0x02DB: return false; case 0x02DC: return true; case 0x02DD: return false; } 288 289 return true; 290 291 } 292 293 }
| Popular Tags
|