os/kernelhwsrv/kernel/eka/euser/unicode/foldtable.inl
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/euser/unicode/foldtable.inl	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,127 @@
     1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// e32\euser\unicode\foldtable.inl
    1.18 +// Use the bits from 12 up from your character to index CaseFoldTable0.
    1.19 +// Use the result of this plus bits 8-11 to index CaseFoldTable1.
    1.20 +// Use the result of this plus bits 4-7 to index CaseFoldTable2.
    1.21 +// Use the result of this plus bits 0-3 to index CaseFoldTable3.
    1.22 +// Add the result of this to your character to fold it.
    1.23 +// 
    1.24 +//
    1.25 +
    1.26 +static const short CaseFoldTable3[] =
    1.27 +	{
    1.28 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.29 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.30 +	32, 32, 32, 32, 32, 32, 32, 32,
    1.31 +	32, 32, 32, 32, 32, 32, 32, 0,
    1.32 +	0, 0, 0, 0, -128, 0, 0, 0,
    1.33 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.34 +	0, 0, 0, 0, 775, 0, 0, 0,
    1.35 +	0, 0, 0, 0, 0, 0, 0, 32,
    1.36 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.37 +	0, 32, 0, 0, 0, 0, 0, 0,
    1.38 +	0, 32, 0, 0, 0, 0, 0, 32,
    1.39 +	0, 1, 0, 0, 0, 0, 0, 0,
    1.40 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.41 +	0, 1, 0, 0, 0, 0, 0, 0,
    1.42 +	0, 0, 0, -200, 1, 0, 0, 0,
    1.43 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.44 +	0, 1, 0, 0, 0, 0, 0, 0,
    1.45 +	0, 0, 1, 0, 0, 0, 0, 0,
    1.46 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.47 +	0, 0, -268, 0, 210, 1, 0, 1,
    1.48 +	0, 206, 1, 0, 205, 205, 1, 0,
    1.49 +	0, 79, 202, 203, 1, 0, 205, 207,
    1.50 +	0, 211, 209, 1, 0, 0, 0, 211,
    1.51 +	213, 0, 214, 0, 0, 1, 0, 1,
    1.52 +	0, 218, 1, 0, 218, 0, 0, 1,
    1.53 +	0, 218, 0, 217, 217, 1, 0, 1,
    1.54 +	0, 219, 1, 0, 0, 0, 1, 0,
    1.55 +	0, 0, 0, 2, 1, 0, 2, 1,
    1.56 +	0, 2, 1, 0, 0, 0, 0, 2,
    1.57 +	1, 0, 0, 0, -97, -56, 0, 0,
    1.58 +	0, 0, 0, 0, 0, 0, 1, 0,
    1.59 +	1, 0, 0, 0, 0, 0, 0, 0,
    1.60 +	0, 0, 0, 0, 116, 0, 0, 0,
    1.61 +	0, 0, 0, 0, 0, 0, 0, 32,
    1.62 +	32, 0, 32, 32, 32, 32, 32, 32,
    1.63 +	32, 0, 0, 0, 0, 0, 0, -30,
    1.64 +	-25, 0, 0, 0, -15, -22, 0, 0,
    1.65 +	0, 1, 0, 1, 0, 1, 0, 1,
    1.66 +	0, 1, 0, 1, 0, 1, 0, 1,
    1.67 +	0, -54, -48, -47, 0, 0, 0, 0,
    1.68 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.69 +	0, 80, 0, 80, 80, 80, 0, 80,
    1.70 +	80, 80, 80, 0, 0, 0, 80, 32,
    1.71 +	32, 32, 32, 32, 32, 32, 32, 32,
    1.72 +	0, 32, 32, 32, 32, 32, 32, 32,
    1.73 +	32, 32, 32, 32, 32, 32, 32, 32,
    1.74 +	32, 1, 0, 1, 0, 1, 0, 0,
    1.75 +	0, 1, 0, 1, 0, 1, 0, 1,
    1.76 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.77 +	0, 0, 0, 1, 0, 1, 0, 0,
    1.78 +	0, 1, 0, 0, 0, 1, 0, 0,
    1.79 +	0, 1, 0, 0, 0, 0, 1, 0,
    1.80 +	0, 0, 1, 0, 0, 0, 0, 0,
    1.81 +	0, 0, 1, 0, 0, 0, 0, 0,
    1.82 +	0, 0, 48, 48, 48, 48, 48, 48,
    1.83 +	48, 48, 48, 48, 48, 48, 48, 48,
    1.84 +	48, 48, 0, 0, 0, 0, 0, 0,
    1.85 +	0, 0, 0, 0, 0, 0, 0, 0,
    1.86 +	-7173, 0, 0, 0, 0, 0, 0, -7517,
    1.87 +	0, 0, 0, -8383, 0, 0, 0, 0,
    1.88 +	0, 16, 16, 16, 16, 16, 16, 16,
    1.89 +	16, 16, 16, 16, 16, 16, 16, 16,
    1.90 +	16, 0, 0, 0, 0, 0, 0, 26,
    1.91 +	26, 26, 26, 26, 26, 26, 26, 26,
    1.92 +	26, 26, 26, 26, 26, 26, 26
    1.93 +	};
    1.94 +
    1.95 +static const unsigned short CaseFoldTable2[] =
    1.96 +	{
    1.97 +	0, 0, 0, 0, 15, 20, 0, 0,
    1.98 +	0, 0, 36, 47, 57, 73, 0, 0,
    1.99 +	89, 99, 114, 128, 136, 99, 139, 155,
   1.100 +	171, 187, 202, 215, 0, 134, 230, 0,
   1.101 +	93, 244, 0, 0, 0, 0, 0, 0,
   1.102 +	0, 0, 0, 0, 0, 0, 0, 255,
   1.103 +	0, 0, 0, 0, 15, 271, 0, 136,
   1.104 +	287, 297, 313, 327, 343, 353, 0, 0,
   1.105 +	0, 297, 369, 383, 297, 297, 297, 398,
   1.106 +	410, 418, 0, 0, 0, 433, 434, 443,
   1.107 +	0, 0, 0, 0, 0, 0, 0, 0,
   1.108 +	0, 0, 0, 0, 0, 0, 0, 0,
   1.109 +	450, 0, 0, 0, 0, 465, 0, 0,
   1.110 +	0, 481, 0, 0, 0, 0, 0, 0,
   1.111 +	0, 0, 0, 0, 0, 497, 503, 0,
   1.112 +	0, 0, 15, 20, 0, 0, 0, 0,
   1.113 +	0, 0, 0, 0, 0, 0, 0, 0
   1.114 +	};
   1.115 +
   1.116 +static const unsigned char CaseFoldTable1[] =
   1.117 +	{
   1.118 +	0, 15, 31, 43, 59, 74, 80, 80,
   1.119 +	80, 80, 80, 80, 80, 80, 80, 80,
   1.120 +	80, 80, 80, 80, 80, 85, 80, 99,
   1.121 +	80, 80, 106, 80, 80, 80, 80, 80,
   1.122 +	80, 80, 80, 80, 80, 80, 80, 80,
   1.123 +	80, 80, 80, 120
   1.124 +	};
   1.125 +
   1.126 +static const unsigned char CaseFoldTable0[] =
   1.127 +	{
   1.128 +	0, 6, 22, 27, 27, 27, 27, 27,
   1.129 +	27, 27, 27, 27, 27, 27, 27, 28
   1.130 +	};