1 21 22 package nu.xom; 23 24 import java.io.Writer ; 25 26 35 class ISOGreekWriter extends TextWriter { 36 37 ISOGreekWriter(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) { case 0x0384: return false; case 0x0385: return false; case 0x0386: return false; case 0x0387: return true; case 0x0388: return false; case 0x0389: return false; case 0x038A: return false; case 0x038B: return true; case 0x038C: return false; case 0x038D: return true; case 0x038E: return false; case 0x038F: return false; case 0x0390: return false; case 0x0391: return false; case 0x0392: return false; case 0x0393: return false; case 0x0394: return false; case 0x0395: return false; case 0x0396: return false; case 0x0397: return false; case 0x0398: return false; case 0x0399: return false; case 0x039A: return false; case 0x039B: return false; case 0x039C: return false; case 0x039D: return false; case 0x039E: return false; case 0x039F: return false; case 0x03A0: return false; case 0x03A1: return false; case 0x03A2: return true; case 0x03A3: return false; case 0x03A4: return false; case 0x03A5: return false; case 0x03A6: return false; case 0x03A7: return false; case 0x03A8: return false; case 0x03A9: return false; case 0x03AA: return false; case 0x03AB: return false; case 0x03AC: return false; case 0x03AD: return false; case 0x03AE: return false; case 0x03AF: return false; case 0x03B0: return false; case 0x03B1: return false; case 0x03B2: return false; case 0x03B3: return false; case 0x03B4: return false; case 0x03B5: return false; case 0x03B6: return false; case 0x03B7: return false; case 0x03B8: return false; case 0x03B9: return false; case 0x03BA: return false; case 0x03BB: return false; case 0x03BC: return false; case 0x03BD: return false; case 0x03BE: return false; case 0x03BF: return false; case 0x03C0: return false; case 0x03C1: return false; case 0x03C2: return false; case 0x03C3: return false; case 0x03C4: return false; case 0x03C5: return false; case 0x03C6: return false; case 0x03C7: return false; case 0x03C8: return false; case 0x03C9: return false; case 0x03CA: return false; case 0x03CB: return false; case 0x03CC: return false; case 0x03CD: return false; case 0x03CE: return false; } 123 switch (c) { case 0x00A3: return false; case 0x00A4: return true; case 0x00A5: return true; case 0x00A6: return false; case 0x00A7: return false; case 0x00A8: return false; case 0x00A9: return false; case 0x00AA: return true; case 0x00AB: return false; case 0x00AC: return false; case 0x00AD: return false; case 0x00AE: return true; case 0x00AF: return true; case 0x00B0: return false; case 0x00B1: return false; case 0x00B2: return false; case 0x00B3: return false; case 0x00B4: return true; case 0x00B5: return true; case 0x00B6: return true; case 0x00B7: return false; case 0x00B8: return true; case 0x00B9: return true; case 0x00BA: return true; case 0x00BB: return false; case 0x00BC: return true; case 0x00BD: return false; } 152 switch (c) { case 0x2015: return false; } 163 return true; 164 } 165 166 } | Popular Tags |