1 package net.sf.saxon.charcode; 2 3 7 8 public class CP1251CharacterSet implements CharacterSet { 9 10 public static CP1251CharacterSet theInstance = new CP1251CharacterSet(); 11 12 private CP1251CharacterSet() {} 13 14 public static CP1251CharacterSet getInstance() { 15 return theInstance; 16 } 17 18 public final boolean inCharset(int c) { 19 return ( c <= 0x7f ) || 20 (c >= 0x0401 && c <= 0x044F) || 21 (c >= 0x0451 && c <= 0x045f) || 22 (c == 0x0490) || 23 (c == 0x0491) || 24 (c == 0x2013) || 25 (c == 0x2014) || 26 (c == 0x2018) || 27 (c == 0x2019) || 28 (c == 0x201A) || 29 (c == 0x201C) || 30 (c == 0x201D) || 31 (c == 0x201E) || 32 (c == 0x2020) || 33 (c == 0x2021) || 34 (c == 0x2022) || 35 (c == 0x2026) || 36 (c == 0x2030) || 37 (c == 0x2039) || 38 (c == 0x203A) || 39 (c == 0x20AC) || 40 (c == 0x2116) || 41 (c == 0x2122); 42 } 43 44 } 45 46 174 175 176 177 | Popular Tags |