01: package net.sf.saxon.charcode;
02:
03: /**
04: * This class defines properties of the KO18R Cyrillic character set
05: */
06:
07: public class KOI8RCharacterSet implements CharacterSet {
08:
09: private static KOI8RCharacterSet theInstance = new KOI8RCharacterSet();
10:
11: private KOI8RCharacterSet() {
12: }
13:
14: public static KOI8RCharacterSet getInstance() {
15: return theInstance;
16: }
17:
18: public final boolean inCharset(int c) {
19: return (c <= 0x7f) || ((0x0410 <= c) && (c <= 0x044f))
20: || c == 0x0451 || c == 0x0401;
21: }
22:
23: }
24:
25: //
26: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
27: // you may not use this file except in compliance with the License. You may obtain a copy of the
28: // License at http://www.mozilla.org/MPL/
29: //
30: // Software distributed under the License is distributed on an "AS IS" basis,
31: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
32: // See the License for the specific language governing rights and limitations under the License.
33: //
34: // The Original Code is: all this file.
35: //
36: // The Initial Developer of the Original Code is
37: // Aleksei Makarov [makarov@iitam.omsk.net.ru]
38: //
39: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
40: //
41: // Contributor(s): none.
42: //
|