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 37 class Latin9Writer extends TextWriter { 38 39 48 Latin9Writer(Writer out, String encoding) { 49 super(out, encoding); 50 } 51 52 62 boolean needsEscaping(char c) { 63 if (c <= 0xA3 ) return false; 64 if (c == 0x20AC) return false; 66 switch (c) { case 0x00A5: return false; case 0x00A6: return true; case 0x00A7: return false; case 0x00A8: return true; case 0x00A9: return false; case 0x00AA: return false; case 0x00AB: return false; case 0x00AC: return false; case 0x00AD: return false; case 0x00AE: return false; case 0x00AF: return false; case 0x00B0: return false; case 0x00B1: return false; case 0x00B2: return false; case 0x00B3: return false; case 0x00B4: return true; case 0x00B5: return false; case 0x00B6: return false; case 0x00B7: return false; case 0x00B8: return true; case 0x00B9: return false; case 0x00BA: return false; case 0x00BB: return false; case 0x00BC: return true; case 0x00BD: return true; case 0x00BE: return true; case 0x00BF: return false; case 0x00C0: return false; case 0x00C1: return false; case 0x00C2: return false; case 0x00C3: return false; case 0x00C4: return false; case 0x00C5: return false; case 0x00C6: return false; case 0x00C7: return false; case 0x00C8: return false; case 0x00C9: return false; case 0x00CA: return false; case 0x00CB: return false; case 0x00CC: return false; case 0x00CD: return false; case 0x00CE: return false; case 0x00CF: return false; case 0x00D0: return false; case 0x00D1: return false; case 0x00D2: return false; case 0x00D3: return false; case 0x00D4: return false; case 0x00D5: return false; case 0x00D6: return false; case 0x00D7: return false; case 0x00D8: return false; case 0x00D9: return false; case 0x00DA: return false; case 0x00DB: return false; case 0x00DC: return false; case 0x00DD: return false; case 0x00DE: return false; case 0x00DF: return false; case 0x00E0: return false; case 0x00E1: return false; case 0x00E2: return false; case 0x00E3: return false; case 0x00E4: return false; case 0x00E5: return false; case 0x00E6: return false; case 0x00E7: return false; case 0x00E8: return false; case 0x00E9: return false; case 0x00EA: return false; case 0x00EB: return false; case 0x00EC: return false; case 0x00ED: return false; case 0x00EE: return false; case 0x00EF: return false; case 0x00F0: return false; case 0x00F1: return false; case 0x00F2: return false; case 0x00F3: return false; case 0x00F4: return false; case 0x00F5: return false; case 0x00F6: return false; case 0x00F7: return false; case 0x00F8: return false; case 0x00F9: return false; case 0x00FA: return false; case 0x00FB: return false; case 0x00FC: return false; case 0x00FD: return false; case 0x00FE: return false; case 0x00FF: return false; } 159 switch (c) { case 0x0152: return false; case 0x0153: return false; case 0x0154: return true; case 0x0155: return true; case 0x0156: return true; case 0x0157: return true; case 0x0158: return true; case 0x0159: return true; case 0x015A: return true; case 0x015B: return true; case 0x015C: return true; case 0x015D: return true; case 0x015E: return true; case 0x015F: return true; case 0x0160: return false; case 0x0161: return false; case 0x0162: return true; case 0x0163: return true; case 0x0164: return true; case 0x0165: return true; 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 true; case 0x016F: return true; case 0x0170: return true; case 0x0171: return true; 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 false; case 0x017D: return false; case 0x017E: return false; } 202 203 return true; 204 205 } 206 207 }
| Popular Tags
|