1 package net.sf.saxon.charcode; 2 3 6 7 public class KOI8RCharacterSet implements CharacterSet { 8 9 private static KOI8RCharacterSet theInstance = new KOI8RCharacterSet(); 10 11 private KOI8RCharacterSet() {} 12 13 public static KOI8RCharacterSet getInstance() { 14 return theInstance; 15 } 16 17 public final boolean inCharset(int c) { 18 return ( c <= 0x7f ) || ( (0x0410 <= c) && (c <= 0x044f) ) || 19 c == 0x0451 || c == 0x0401; 20 } 21 22 } 23 24 | Popular Tags |