First public contribution.
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Generated by mglyphtool.pl from 'BidiMirroring-1.txt'
18 const unsigned long mGlyphArray[] = {
19 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x227D227C,
20 0x2208220B, 0x2209220C, 0x220A220D, 0x220B2208, 0x220C2209, 0x220D220A, 0x300E300F, 0x300F300E,
21 0x30103011, 0x30113010, 0x00000000, 0x00000000, 0x30143015, 0x30153014, 0x30163017, 0x30173016,
22 0x30183019, 0x30193018, 0x301A301B, 0x301B301A, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
23 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
24 0x00280029, 0x00290028, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
25 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
26 0x00000000, 0x2039203A, 0x203A2039, 0x00000000, 0x003C003E, 0x223D223C, 0x003E003C, 0x00000000,
27 0x00000000, 0x00000000, 0x00000000, 0x224322CD, 0x00000000, 0x20452046, 0x20462045, 0x00000000,
28 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
29 0x00000000, 0x00000000, 0x22522253, 0x22532252, 0x22542255, 0x22552254, 0x00000000, 0x00000000,
30 0x00000000, 0x30083009, 0x30093008, 0x005B005D, 0x00000000, 0x005D005B, 0x300B300A, 0x00000000,
31 0x00000000, 0x300C300D, 0x300D300C, 0x00000000, 0x22642265, 0x22652264, 0x22662267, 0x22672266,
32 0x22682269, 0x22692268, 0x226A226B, 0x226B226A, 0x00000000, 0x00000000, 0x226E226F, 0x226F226E,
33 0x22702271, 0x22712270, 0x22722273, 0x22732272, 0x22742275, 0x22752274, 0x22762277, 0x22772276,
34 0x22782279, 0x22792278, 0x227A227B, 0x007B007D, 0x227C227D, 0x007D007B, 0x207E207D, 0x227F227E,
35 0x22802281, 0x22812280, 0x22822283, 0x22832282, 0x22842285, 0x22852284, 0x22862287, 0x22872286,
36 0x22882289, 0x22892288, 0x228A228B, 0x228B228A, 0x00000000, 0x208D208E, 0x208E208D, 0x228F2290,
37 0x2290228F, 0x22912292, 0x22922291, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
38 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
39 0x00000000, 0x00000000, 0x22A222A3, 0x22A322A2, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
40 0x00000000, 0x00000000, 0x00000000, 0x00AB00BB, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
41 0x22B022B1, 0x22B122B0, 0x22B222B3, 0x22B322B2, 0x22B422B5, 0x22B522B4, 0x22B622B7, 0x22B722B6,
42 0x00000000, 0x00000000, 0x00000000, 0x00BB00AB, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
43 0x00000000, 0x223C223D, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
44 0x00000000, 0x22C922CA, 0x22CA22C9, 0x22CB22CC, 0x22CC22CB, 0x22CD2243, 0x00000000, 0x00000000,
45 0x22D022D1, 0x22D122D0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x22D622D7, 0x22D722D6,
46 0x22D822D9, 0x22D922D8, 0x22DA22DB, 0x22DB22DA, 0x22DC22DD, 0x22DD22DC, 0x22DE22DF, 0x22DF22DE,
47 0x22E022E1, 0x22E122E0, 0x22E222E3, 0x22E322E2, 0x22E422E5, 0x22E522E4, 0x22E622E7, 0x22E722E6,
48 0x22E822E9, 0x22E922E8, 0x22EA22EB, 0x22EB22EA, 0x22EC22ED, 0x22ED22EC, 0x00000000, 0x00000000,
49 0x22F022F1, 0x22F122F0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
50 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
51 0x00000000, 0x00000000, 0x00000000, 0x300A300B, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
52 0x23082309, 0x23092308, 0x230A230B, 0x230B230A, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
53 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
54 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
55 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
56 0x00000000, 0x2329232A, 0x232A2329, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
57 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
58 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x227B227A, 0x00000000,
59 0x00000000, 0x00000000, 0x207D207E, 0x00000000, 0x00000000, 0x227E227F, 0x00000000, 0x00000000,
60 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
61 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
62 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
63 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
64 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
65 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
66 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
67 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
68 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
69 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
70 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
71 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
72 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
73 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
74 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
75 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
76 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
77 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
78 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
79 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
80 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
81 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
82 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000};
84 const int KLgMirrorTableSize=9;
85 const int KMirrorTableSize=512;
87 // Returns the first index to probe for character aKey.
88 inline long MirrorStart(long aKey)
89 { return aKey & (KMirrorTableSize-1); }
91 // Returns the offset for further probes for character aKey.
92 inline long MirrorStep(long aKey)
93 { return (aKey | 1) + 72; }