1 package net.sf.saxon.charcode; 2 3 10 11 public class CP1252CharacterSet implements CharacterSet { 12 13 public static CP1252CharacterSet theInstance = new CP1252CharacterSet(); 14 15 private CP1252CharacterSet() { 16 } 17 18 public static CP1252CharacterSet getInstance() { 19 return theInstance; 20 } 21 22 23 public final boolean inCharset(int c) { 24 25 return (c >= 0x00 && c <= 0x7F) || 26 (c >= 0xA0 && c <= 0xFF) || 27 (c == 0x20AC) || 28 (c == 0x201A) || 29 (c == 0x0192) || 30 (c == 0x201E) || 31 (c == 0x2026) || 32 (c == 0x2020) || 33 (c == 0x2021) || 34 (c == 0x02C6) || 35 (c == 0x2030) || 36 (c == 0x0160) || 37 (c == 0x2039) || 38 (c == 0x0152) || 39 (c == 0x017D) || 40 (c == 0x2018) || 41 (c == 0x2019) || 42 (c == 0x201C) || 43 (c == 0x201D) || 44 (c == 0x2022) || 45 (c == 0x2013) || 46 (c == 0x2014) || 47 (c == 0x02DC) || 48 (c == 0x2122) || 49 (c == 0x0161) || 50 (c == 0x203A) || 51 (c == 0x0153) || 52 (c == 0x017E) || 53 (c == 0x0178); 54 55 56 } 57 } 58 59 311 312 | Popular Tags |