~vcs-imports/xena/trunk

« back to all changes in this revision

Viewing changes to ext/src/juniversalchardet/src/org/mozilla/universalchardet/prober/sequence/MacCyrillicModel.java

  • Committer: matthewoliver
  • Date: 2009-12-10 03:18:07 UTC
  • Revision ID: vcs-imports@canonical.com-20091210031807-l086qguzdlljtkl9
Merged Xena Testing into Xena Stable for the Xena 5 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ***** BEGIN LICENSE BLOCK *****
 
2
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
3
 *
 
4
 * The contents of this file are subject to the Mozilla Public License Version
 
5
 * 1.1 (the "License"); you may not use this file except in compliance with
 
6
 * the License. You may obtain a copy of the License at
 
7
 * http://www.mozilla.org/MPL/
 
8
 *
 
9
 * Software distributed under the License is distributed on an "AS IS" basis,
 
10
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
11
 * for the specific language governing rights and limitations under the
 
12
 * License.
 
13
 *
 
14
 * The Original Code is Mozilla Communicator client code.
 
15
 *
 
16
 * The Initial Developer of the Original Code is
 
17
 * Netscape Communications Corporation.
 
18
 * Portions created by the Initial Developer are Copyright (C) 1998
 
19
 * the Initial Developer. All Rights Reserved.
 
20
 *
 
21
 * Contributor(s):
 
22
 *   Kohei TAKETA <k-tak@void.in> (Java port)
 
23
 *
 
24
 * Alternatively, the contents of this file may be used under the terms of
 
25
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 
26
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
27
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
28
 * of those above. If you wish to allow use of your version of this file only
 
29
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
30
 * use your version of this file under the terms of the MPL, indicate your
 
31
 * decision by deleting the provisions above and replace them with the notice
 
32
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
33
 * the provisions above, a recipient may use your version of this file under
 
34
 * the terms of any one of the MPL, the GPL or the LGPL.
 
35
 *
 
36
 * ***** END LICENSE BLOCK ***** */
 
37
 
 
38
package org.mozilla.universalchardet.prober.sequence;
 
39
 
 
40
import org.mozilla.universalchardet.Constants;
 
41
 
 
42
 
 
43
public class MacCyrillicModel extends CyrillicModel
 
44
{
 
45
    ////////////////////////////////////////////////////////////////
 
46
    // methods
 
47
    ////////////////////////////////////////////////////////////////
 
48
    public MacCyrillicModel()
 
49
    {
 
50
        super(macCyrillicCharToOrderMap, Constants.CHARSET_MACCYRILLIC);
 
51
    }
 
52
    
 
53
    
 
54
    ////////////////////////////////////////////////////////////////
 
55
    // constants
 
56
    ////////////////////////////////////////////////////////////////
 
57
    private static final short[] macCyrillicCharToOrderMap = new short[] {
 
58
        255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255,  //00
 
59
        255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,  //10
 
60
        253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,  //20
 
61
        252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253,  //30
 
62
        253,142,143,144,145,146,147,148,149,150,151,152, 74,153, 75,154,  //40
 
63
        155,156,157,158,159,160,161,162,163,164,165,253,253,253,253,253,  //50
 
64
        253, 71,172, 66,173, 65,174, 76,175, 64,176,177, 77, 72,178, 69,  //60
 
65
         67,179, 78, 73,180,181, 79,182,183,184,185,253,253,253,253,253,  //70
 
66
         37, 44, 33, 46, 41, 48, 56, 51, 42, 60, 36, 49, 38, 31, 34, 35,
 
67
         45, 32, 40, 52, 53, 55, 58, 50, 57, 63, 70, 62, 61, 47, 59, 43,
 
68
        191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,
 
69
        207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,
 
70
        223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,
 
71
        239,240,241,242,243,244,245,246,247,248,249,250,251,252, 68, 16,
 
72
          3, 21, 10, 19, 13,  2, 24, 20,  4, 23, 11,  8, 12,  5,  1, 15,
 
73
          9,  7,  6, 14, 39, 26, 28, 22, 25, 29, 54, 18, 17, 30, 27,255,
 
74
    };
 
75
}