diff -r 000000000000 -r 5d03bc08d59c graphicsdeviceinterface/gdi/sgdi/mglyphs.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsdeviceinterface/gdi/sgdi/mglyphs.inl Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,94 @@ +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Generated by mglyphtool.pl from 'BidiMirroring-1.txt' +// +// + +const unsigned long mGlyphArray[] = { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x227D227C, + 0x2208220B, 0x2209220C, 0x220A220D, 0x220B2208, 0x220C2209, 0x220D220A, 0x300E300F, 0x300F300E, + 0x30103011, 0x30113010, 0x00000000, 0x00000000, 0x30143015, 0x30153014, 0x30163017, 0x30173016, + 0x30183019, 0x30193018, 0x301A301B, 0x301B301A, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00280029, 0x00290028, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x2039203A, 0x203A2039, 0x00000000, 0x003C003E, 0x223D223C, 0x003E003C, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x224322CD, 0x00000000, 0x20452046, 0x20462045, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x22522253, 0x22532252, 0x22542255, 0x22552254, 0x00000000, 0x00000000, + 0x00000000, 0x30083009, 0x30093008, 0x005B005D, 0x00000000, 0x005D005B, 0x300B300A, 0x00000000, + 0x00000000, 0x300C300D, 0x300D300C, 0x00000000, 0x22642265, 0x22652264, 0x22662267, 0x22672266, + 0x22682269, 0x22692268, 0x226A226B, 0x226B226A, 0x00000000, 0x00000000, 0x226E226F, 0x226F226E, + 0x22702271, 0x22712270, 0x22722273, 0x22732272, 0x22742275, 0x22752274, 0x22762277, 0x22772276, + 0x22782279, 0x22792278, 0x227A227B, 0x007B007D, 0x227C227D, 0x007D007B, 0x207E207D, 0x227F227E, + 0x22802281, 0x22812280, 0x22822283, 0x22832282, 0x22842285, 0x22852284, 0x22862287, 0x22872286, + 0x22882289, 0x22892288, 0x228A228B, 0x228B228A, 0x00000000, 0x208D208E, 0x208E208D, 0x228F2290, + 0x2290228F, 0x22912292, 0x22922291, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x22A222A3, 0x22A322A2, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00AB00BB, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x22B022B1, 0x22B122B0, 0x22B222B3, 0x22B322B2, 0x22B422B5, 0x22B522B4, 0x22B622B7, 0x22B722B6, + 0x00000000, 0x00000000, 0x00000000, 0x00BB00AB, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x223C223D, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x22C922CA, 0x22CA22C9, 0x22CB22CC, 0x22CC22CB, 0x22CD2243, 0x00000000, 0x00000000, + 0x22D022D1, 0x22D122D0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x22D622D7, 0x22D722D6, + 0x22D822D9, 0x22D922D8, 0x22DA22DB, 0x22DB22DA, 0x22DC22DD, 0x22DD22DC, 0x22DE22DF, 0x22DF22DE, + 0x22E022E1, 0x22E122E0, 0x22E222E3, 0x22E322E2, 0x22E422E5, 0x22E522E4, 0x22E622E7, 0x22E722E6, + 0x22E822E9, 0x22E922E8, 0x22EA22EB, 0x22EB22EA, 0x22EC22ED, 0x22ED22EC, 0x00000000, 0x00000000, + 0x22F022F1, 0x22F122F0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x300A300B, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x23082309, 0x23092308, 0x230A230B, 0x230B230A, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x2329232A, 0x232A2329, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x227B227A, 0x00000000, + 0x00000000, 0x00000000, 0x207D207E, 0x00000000, 0x00000000, 0x227E227F, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}; + +const int KLgMirrorTableSize=9; +const int KMirrorTableSize=512; + +// Returns the first index to probe for character aKey. +inline long MirrorStart(long aKey) + { return aKey & (KMirrorTableSize-1); } + +// Returns the offset for further probes for character aKey. +inline long MirrorStep(long aKey) + { return (aKey | 1) + 72; } +