1 package com.icl.saxon.charcode; 2 3 7 8 public class CP1251CharacterSet implements CharacterSet { 9 10 public final boolean inCharset(int c) { 11 return ( c <= 0x7f ) || 12 (c >= 0x0401 && c <= 0x044F) || 13 (c >= 0x0451 && c <= 0x045f) || 14 (c == 0x0490) || 15 (c == 0x0491) || 16 (c == 0x2013) || 17 (c == 0x2014) || 18 (c == 0x2018) || 19 (c == 0x2019) || 20 (c == 0x201A) || 21 (c == 0x201C) || 22 (c == 0x201D) || 23 (c == 0x201E) || 24 (c == 0x2020) || 25 (c == 0x2021) || 26 (c == 0x2022) || 27 (c == 0x2026) || 28 (c == 0x2030) || 29 (c == 0x2039) || 30 (c == 0x203A) || 31 (c == 0x20AC) || 32 (c == 0x2116) || 33 (c == 0x2122); 34 } 35 36 } 37 38 166 167 168 169 | Popular Tags |