1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsdeviceinterface/gdi/tgdi/TBiDi.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,10124 @@
1.4 +// Copyright (c) 2003-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 "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 +//
1.18 +
1.19 +#include "BidiCompact.h"
1.20 +#include "BidiVisual.h"
1.21 +#include <s32mem.h>
1.22 +#include <biditext.h>
1.23 +#include <linebreak.h>
1.24 +#include "TGraphicsContext.h"
1.25 +#include "TBiDi.h"
1.26 +
1.27 +//
1.28 +// Constants
1.29 +//
1.30 +static const TInt KBufferSize = 1024;
1.31 +static const TInt KHalfBufferSize = KBufferSize/2;
1.32 +static const TInt KQuarterBufferSize = KBufferSize/4;
1.33 +static const TInt KThreeQuarterBufferSize = KQuarterBufferSize*3;
1.34 +static const TInt KUnicodeNoSuchCharacter = 0xFFFF;
1.35 +static const TInt KUnicodeLeftToRightMark = 0x200E;
1.36 +static const TInt KUnicodeRightToLeftMark = 0x200F;
1.37 +static const TInt KUnicodeLeftToRightEmbedding = 0x202A;
1.38 +static const TInt KUnicodeRightToLeftEmbedding = 0x202B;
1.39 +static const TInt KUnicodePopDirectionFormat = 0x202C;
1.40 +static const TInt KUnicodeLeftToRightOverride = 0x202D;
1.41 +static const TInt KUnicodeRightToLeftOverride = 0x202E;
1.42 +static const TInt KUnicodeZeroWidthJoiner = 0x200D;
1.43 +static const TInt KUnicodeSpace = 0x0020;
1.44 +static const TInt KUnicodeLinebreak = 0x2028;
1.45 +
1.46 +const TText16 KAlef = 0x627;
1.47 +//const TText16 KBeh = 0x628;
1.48 +//const TText16 KTehMarbuta = 0x629;
1.49 +const TText16 KTeh = 0x62A;
1.50 +//const TText16 KTheh = 0x62B;
1.51 +//const TText16 KJeem = 0x62C;
1.52 +//const TText16 KHah = 0x62D;
1.53 +//const TText16 KKhah = 0x62E;
1.54 +//const TText16 KDal = 0x62F;
1.55 +//const TText16 KThal = 0x630;
1.56 +const TText16 KReh = 0x631;
1.57 +//const TText16 KZain = 0x632;
1.58 +//const TText16 KSeen = 0x633;
1.59 +//const TText16 KSheen = 0x634;
1.60 +//const TText16 KSad = 0x635;
1.61 +//const TText16 KDad = 0x636;
1.62 +//const TText16 KTah = 0x637;
1.63 +//const TText16 KZah = 0x638;
1.64 +//const TText16 KAin = 0x639;
1.65 +//const TText16 KGhain = 0x63A;
1.66 +const TText16 KFeh = 0x641;
1.67 +//const TText16 KQaf = 0x642;
1.68 +const TText16 KKaf = 0x643;
1.69 +//const TText16 KLam = 0x644;
1.70 +//const TText16 KMeem = 0x645;
1.71 +const TText16 KNoon = 0x646;
1.72 +//const TText16 KHeh = 0x647;
1.73 +//const TText16 KWaw = 0x648;
1.74 +//const TText16 KAlefMaksura = 0x649;
1.75 +const TText16 KYeh = 0x64A;
1.76 +const TText16 KEllipsis = 0x2026;
1.77 +
1.78 +// List of all glyphs that have mirrors as per Unicode 3.0.1
1.79 +
1.80 +_LIT(KMirrors,"\x28\x29\x3C\x3E\x5B\x5D\x7B\x7D\xAB\xBB\x2039\x203A\x2045\x2046"
1.81 +L"\x207D\x207E\x208D\x208E\x2208\x2209\x220A\x220B\x220C\x220D\x223C\x223D\x2243"
1.82 +L"\x2252\x2253\x2254\x2255\x2264\x2265\x2266\x2267\x2268\x2269\x226A\x226B\x226E"
1.83 +L"\x226F\x2270\x2271\x2272\x2273\x2274\x2275\x2276\x2277\x2278\x2279\x227A\x227B"
1.84 +L"\x227C\x227D\x227E\x227F\x2280\x2281\x2282\x2283\x2284\x2285\x2286\x2287\x2288"
1.85 +L"\x2289\x228A\x228B\x228F\x2290\x2291\x2292\x22A2\x22A3\x22B0\x22B1\x22B2\x22B3"
1.86 +L"\x22B4\x22B5\x22B6\x22B7\x22C9\x22CA\x22CB\x22CC\x22CD\x22D0\x22D1\x22D6\x22D7"
1.87 +L"\x22D8\x22D9\x22DA\x22DB\x22DC\x22DD\x22DE\x22DF\x22E0\x22E1\x22E2\x22E3\x22E4"
1.88 +L"\x22E5\x22E6\x22E7\x22E8\x22E9\x22EA\x22EB\x22EC\x22ED\x22F0\x22F1\x2308\x2309"
1.89 +L"\x230A\x230B\x2329\x232A\x3008\x3009\x300A\x300B\x300C\x300D\x300E\x300F\x3010"
1.90 +L"\x3011\x3014\x3015\x3016\x3017\x3018\x3019\x301A\x301B");
1.91 +
1.92 +// KMirrord()[Pos] is the mirror of KMirrors()[Pos]
1.93 +
1.94 +_LIT(KMirrord,"\x29\x28\x3E\x3C\x5D\x5B\x7D\x7B\xBB\xAB\x203A\x2039\x2046\x2045"
1.95 +L"\x207E\x207D\x208E\x208D\x220B\x220C\x220D\x2208\x2209\x220A\x223D\x223C\x22CD"
1.96 +L"\x2253\x2252\x2255\x2254\x2265\x2264\x2267\x2266\x2269\x2268\x226B\x226A\x226F"
1.97 +L"\x226E\x2271\x2270\x2273\x2272\x2275\x2274\x2277\x2276\x2279\x2278\x227B\x227A"
1.98 +L"\x227D\x227C\x227F\x227E\x2281\x2280\x2283\x2282\x2285\x2284\x2287\x2286\x2289"
1.99 +L"\x2288\x228B\x228A\x2290\x228F\x2292\x2291\x22A3\x22A2\x22B1\x22B0\x22B3\x22B2"
1.100 +L"\x22B5\x22B4\x22B7\x22B6\x22CA\x22C9\x22CC\x22CB\x2243\x22D1\x22D0\x22D7\x22D6"
1.101 +L"\x22D9\x22D8\x22DB\x22DA\x22DD\x22DC\x22DF\x22DE\x22E1\x22E0\x22E3\x22E2\x22E5"
1.102 +L"\x22E4\x22E7\x22E6\x22E9\x22E8\x22EB\x22EA\x22ED\x22EC\x22F1\x22F0\x2309\x2308"
1.103 +L"\x230B\x230A\x232A\x2329\x3009\x3008\x300B\x300A\x300D\x300C\x300F\x300E\x3011"
1.104 +L"\x3010\x3015\x3014\x3017\x3016\x3019\x3018\x301B\x301A");
1.105 +
1.106 +// This constant defines the Unicode characters in the "LeftToRight" (L) category.
1.107 +// A conventional _LIT cannot be used here because of the Microsoft limit of
1.108 +// 2048 bytes for literal strings.
1.109 +// Note: Remove all "mark" from this array, i.e, category = Mn, Mc or Me. That's
1.110 +// because a "mark" always follow its base character. This feature will
1.111 +// lead RLOLeftToRightTest() to fail.
1.112 +// Note: Remove all unpaired surrogate.
1.113 +static const TUint16 KLeftToRight[] =
1.114 + {
1.115 + 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,0x0049,0x004a,
1.116 + 0x004b,0x004c,0x004d,0x004e,0x004f,0x0050,0x0051,0x0052,0x0053,0x0054,
1.117 + 0x0055,0x0056,0x0057,0x0058,0x0059,0x005a,0x0061,0x0062,0x0063,0x0064,
1.118 + 0x0065,0x0066,0x0067,0x0068,0x0069,0x006a,0x006b,0x006c,0x006d,0x006e,
1.119 + 0x006f,0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,0x0078,
1.120 + 0x0079,0x007a,0x00aa,0x00b5,0x00ba,0x00c0,0x00c1,0x00c2,0x00c3,0x00c4,
1.121 + 0x00c5,0x00c6,0x00c7,0x00c8,0x00c9,0x00ca,0x00cb,0x00cc,0x00cd,0x00ce,
1.122 + 0x00cf,0x00d0,0x00d1,0x00d2,0x00d3,0x00d4,0x00d5,0x00d6,0x00d8,0x00d9,
1.123 + 0x00da,0x00db,0x00dc,0x00dd,0x00de,0x00df,0x00e0,0x00e1,0x00e2,0x00e3,
1.124 + 0x00e4,0x00e5,0x00e6,0x00e7,0x00e8,0x00e9,0x00ea,0x00eb,0x00ec,0x00ed,
1.125 + 0x00ee,0x00ef,0x00f0,0x00f1,0x00f2,0x00f3,0x00f4,0x00f5,0x00f6,0x00f8,
1.126 + 0x00f9,0x00fa,0x00fb,0x00fc,0x00fd,0x00fe,0x00ff,0x0100,0x0101,0x0102,
1.127 + 0x0103,0x0104,0x0105,0x0106,0x0107,0x0108,0x0109,0x010a,0x010b,0x010c,
1.128 + 0x010d,0x010e,0x010f,0x0110,0x0111,0x0112,0x0113,0x0114,0x0115,0x0116,
1.129 + 0x0117,0x0118,0x0119,0x011a,0x011b,0x011c,0x011d,0x011e,0x011f,0x0120,
1.130 + 0x0121,0x0122,0x0123,0x0124,0x0125,0x0126,0x0127,0x0128,0x0129,0x012a,
1.131 + 0x012b,0x012c,0x012d,0x012e,0x012f,0x0130,0x0131,0x0132,0x0133,0x0134,
1.132 + 0x0135,0x0136,0x0137,0x0138,0x0139,0x013a,0x013b,0x013c,0x013d,0x013e,
1.133 + 0x013f,0x0140,0x0141,0x0142,0x0143,0x0144,0x0145,0x0146,0x0147,0x0148,
1.134 + 0x0149,0x014a,0x014b,0x014c,0x014d,0x014e,0x014f,0x0150,0x0151,0x0152,
1.135 + 0x0153,0x0154,0x0155,0x0156,0x0157,0x0158,0x0159,0x015a,0x015b,0x015c,
1.136 + 0x015d,0x015e,0x015f,0x0160,0x0161,0x0162,0x0163,0x0164,0x0165,0x0166,
1.137 + 0x0167,0x0168,0x0169,0x016a,0x016b,0x016c,0x016d,0x016e,0x016f,0x0170,
1.138 + 0x0171,0x0172,0x0173,0x0174,0x0175,0x0176,0x0177,0x0178,0x0179,0x017a,
1.139 + 0x017b,0x017c,0x017d,0x017e,0x017f,0x0180,0x0181,0x0182,0x0183,0x0184,
1.140 + 0x0185,0x0186,0x0187,0x0188,0x0189,0x018a,0x018b,0x018c,0x018d,0x018e,
1.141 + 0x018f,0x0190,0x0191,0x0192,0x0193,0x0194,0x0195,0x0196,0x0197,0x0198,
1.142 + 0x0199,0x019a,0x019b,0x019c,0x019d,0x019e,0x019f,0x01a0,0x01a1,0x01a2,
1.143 + 0x01a3,0x01a4,0x01a5,0x01a6,0x01a7,0x01a8,0x01a9,0x01aa,0x01ab,0x01ac,
1.144 + 0x01ad,0x01ae,0x01af,0x01b0,0x01b1,0x01b2,0x01b3,0x01b4,0x01b5,0x01b6,
1.145 + 0x01b7,0x01b8,0x01b9,0x01ba,0x01bb,0x01bc,0x01bd,0x01be,0x01bf,0x01c0,
1.146 + 0x01c1,0x01c2,0x01c3,0x01c4,0x01c5,0x01c6,0x01c7,0x01c8,0x01c9,0x01ca,
1.147 + 0x01cb,0x01cc,0x01cd,0x01ce,0x01cf,0x01d0,0x01d1,0x01d2,0x01d3,0x01d4,
1.148 + 0x01d5,0x01d6,0x01d7,0x01d8,0x01d9,0x01da,0x01db,0x01dc,0x01dd,0x01de,
1.149 + 0x01df,0x01e0,0x01e1,0x01e2,0x01e3,0x01e4,0x01e5,0x01e6,0x01e7,0x01e8,
1.150 + 0x01e9,0x01ea,0x01eb,0x01ec,0x01ed,0x01ee,0x01ef,0x01f0,0x01f1,0x01f2,
1.151 + 0x01f3,0x01f4,0x01f5,0x01f6,0x01f7,0x01f8,0x01f9,0x01fa,0x01fb,0x01fc,
1.152 + 0x01fd,0x01fe,0x01ff,0x0200,0x0201,0x0202,0x0203,0x0204,0x0205,0x0206,
1.153 + 0x0207,0x0208,0x0209,0x020a,0x020b,0x020c,0x020d,0x020e,0x020f,0x0210,
1.154 + 0x0211,0x0212,0x0213,0x0214,0x0215,0x0216,0x0217,0x0218,0x0219,0x021a,
1.155 + 0x021b,0x021c,0x021d,0x021e,0x021f,0x0220,0x0221,0x0222,0x0223,0x0224,
1.156 + 0x0225,0x0226,0x0227,0x0228,0x0229,0x022a,0x022b,0x022c,0x022d,0x022e,
1.157 + 0x022f,0x0230,0x0231,0x0232,0x0233,0x0234,0x0235,0x0236,0x0237,0x0238,
1.158 + 0x0239,0x023a,0x023b,0x023c,0x023d,0x023e,0x023f,0x0240,0x0241,0x0242,
1.159 + 0x0243,0x0244,0x0245,0x0246,0x0247,0x0248,0x0249,0x024a,0x024b,0x024c,
1.160 + 0x024d,0x024e,0x024f,0x0250,0x0251,0x0252,0x0253,0x0254,0x0255,0x0256,
1.161 + 0x0257,0x0258,0x0259,0x025a,0x025b,0x025c,0x025d,0x025e,0x025f,0x0260,
1.162 + 0x0261,0x0262,0x0263,0x0264,0x0265,0x0266,0x0267,0x0268,0x0269,0x026a,
1.163 + 0x026b,0x026c,0x026d,0x026e,0x026f,0x0270,0x0271,0x0272,0x0273,0x0274,
1.164 + 0x0275,0x0276,0x0277,0x0278,0x0279,0x027a,0x027b,0x027c,0x027d,0x027e,
1.165 + 0x027f,0x0280,0x0281,0x0282,0x0283,0x0284,0x0285,0x0286,0x0287,0x0288,
1.166 + 0x0289,0x028a,0x028b,0x028c,0x028d,0x028e,0x028f,0x0290,0x0291,0x0292,
1.167 + 0x0293,0x0294,0x0295,0x0296,0x0297,0x0298,0x0299,0x029a,0x029b,0x029c,
1.168 + 0x029d,0x029e,0x029f,0x02a0,0x02a1,0x02a2,0x02a3,0x02a4,0x02a5,0x02a6,
1.169 + 0x02a7,0x02a8,0x02a9,0x02aa,0x02ab,0x02ac,0x02ad,0x02ae,0x02af,0x02b0,
1.170 + 0x02b1,0x02b2,0x02b3,0x02b4,0x02b5,0x02b6,0x02b7,0x02b8,0x02bb,0x02bc,
1.171 + 0x02bd,0x02be,0x02bf,0x02c0,0x02c1,0x02d0,0x02d1,0x02e0,0x02e1,0x02e2,
1.172 + 0x02e3,0x02e4,0x02ee,0x037a,0x037b,0x037c,0x037d,0x0386,0x0388,0x0389,
1.173 + 0x038a,0x038c,0x038e,0x038f,0x0390,0x0391,0x0392,0x0393,0x0394,0x0395,
1.174 + 0x0396,0x0397,0x0398,0x0399,0x039a,0x039b,0x039c,0x039d,0x039e,0x039f,
1.175 + 0x03a0,0x03a1,0x03a3,0x03a4,0x03a5,0x03a6,0x03a7,0x03a8,0x03a9,0x03aa,
1.176 + 0x03ab,0x03ac,0x03ad,0x03ae,0x03af,0x03b0,0x03b1,0x03b2,0x03b3,0x03b4,
1.177 + 0x03b5,0x03b6,0x03b7,0x03b8,0x03b9,0x03ba,0x03bb,0x03bc,0x03bd,0x03be,
1.178 + 0x03bf,0x03c0,0x03c1,0x03c2,0x03c3,0x03c4,0x03c5,0x03c6,0x03c7,0x03c8,
1.179 + 0x03c9,0x03ca,0x03cb,0x03cc,0x03cd,0x03ce,0x03d0,0x03d1,0x03d2,0x03d3,
1.180 + 0x03d4,0x03d5,0x03d6,0x03d7,0x03d8,0x03d9,0x03da,0x03db,0x03dc,0x03dd,
1.181 + 0x03de,0x03df,0x03e0,0x03e1,0x03e2,0x03e3,0x03e4,0x03e5,0x03e6,0x03e7,
1.182 + 0x03e8,0x03e9,0x03ea,0x03eb,0x03ec,0x03ed,0x03ee,0x03ef,0x03f0,0x03f1,
1.183 + 0x03f2,0x03f3,0x03f4,0x03f5,0x03f7,0x03f8,0x03f9,0x03fa,0x03fb,0x03fc,
1.184 + 0x03fd,0x03fe,0x03ff,0x0400,0x0401,0x0402,0x0403,0x0404,0x0405,0x0406,
1.185 + 0x0407,0x0408,0x0409,0x040a,0x040b,0x040c,0x040d,0x040e,0x040f,0x0410,
1.186 + 0x0411,0x0412,0x0413,0x0414,0x0415,0x0416,0x0417,0x0418,0x0419,0x041a,
1.187 + 0x041b,0x041c,0x041d,0x041e,0x041f,0x0420,0x0421,0x0422,0x0423,0x0424,
1.188 + 0x0425,0x0426,0x0427,0x0428,0x0429,0x042a,0x042b,0x042c,0x042d,0x042e,
1.189 + 0x042f,0x0430,0x0431,0x0432,0x0433,0x0434,0x0435,0x0436,0x0437,0x0438,
1.190 + 0x0439,0x043a,0x043b,0x043c,0x043d,0x043e,0x043f,0x0440,0x0441,0x0442,
1.191 + 0x0443,0x0444,0x0445,0x0446,0x0447,0x0448,0x0449,0x044a,0x044b,0x044c,
1.192 + 0x044d,0x044e,0x044f,0x0450,0x0451,0x0452,0x0453,0x0454,0x0455,0x0456,
1.193 + 0x0457,0x0458,0x0459,0x045a,0x045b,0x045c,0x045d,0x045e,0x045f,0x0460,
1.194 + 0x0461,0x0462,0x0463,0x0464,0x0465,0x0466,0x0467,0x0468,0x0469,0x046a,
1.195 + 0x046b,0x046c,0x046d,0x046e,0x046f,0x0470,0x0471,0x0472,0x0473,0x0474,
1.196 + 0x0475,0x0476,0x0477,0x0478,0x0479,0x047a,0x047b,0x047c,0x047d,0x047e,
1.197 + 0x047f,0x0480,0x0481,0x0482,0x048a,0x048b,0x048c,0x048d,0x048e,0x048f,
1.198 + 0x0490,0x0491,0x0492,0x0493,0x0494,0x0495,0x0496,0x0497,0x0498,0x0499,
1.199 + 0x049a,0x049b,0x049c,0x049d,0x049e,0x049f,0x04a0,0x04a1,0x04a2,0x04a3,
1.200 + 0x04a4,0x04a5,0x04a6,0x04a7,0x04a8,0x04a9,0x04aa,0x04ab,0x04ac,0x04ad,
1.201 + 0x04ae,0x04af,0x04b0,0x04b1,0x04b2,0x04b3,0x04b4,0x04b5,0x04b6,0x04b7,
1.202 + 0x04b8,0x04b9,0x04ba,0x04bb,0x04bc,0x04bd,0x04be,0x04bf,0x04c0,0x04c1,
1.203 + 0x04c2,0x04c3,0x04c4,0x04c5,0x04c6,0x04c7,0x04c8,0x04c9,0x04ca,0x04cb,
1.204 + 0x04cc,0x04cd,0x04ce,0x04cf,0x04d0,0x04d1,0x04d2,0x04d3,0x04d4,0x04d5,
1.205 + 0x04d6,0x04d7,0x04d8,0x04d9,0x04da,0x04db,0x04dc,0x04dd,0x04de,0x04df,
1.206 + 0x04e0,0x04e1,0x04e2,0x04e3,0x04e4,0x04e5,0x04e6,0x04e7,0x04e8,0x04e9,
1.207 + 0x04ea,0x04eb,0x04ec,0x04ed,0x04ee,0x04ef,0x04f0,0x04f1,0x04f2,0x04f3,
1.208 + 0x04f4,0x04f5,0x04f6,0x04f7,0x04f8,0x04f9,0x04fa,0x04fb,0x04fc,0x04fd,
1.209 + 0x04fe,0x04ff,0x0500,0x0501,0x0502,0x0503,0x0504,0x0505,0x0506,0x0507,
1.210 + 0x0508,0x0509,0x050a,0x050b,0x050c,0x050d,0x050e,0x050f,0x0510,0x0511,
1.211 + 0x0512,0x0513,0x0531,0x0532,0x0533,0x0534,0x0535,0x0536,0x0537,0x0538,
1.212 + 0x0539,0x053a,0x053b,0x053c,0x053d,0x053e,0x053f,0x0540,0x0541,0x0542,
1.213 + 0x0543,0x0544,0x0545,0x0546,0x0547,0x0548,0x0549,0x054a,0x054b,0x054c,
1.214 + 0x054d,0x054e,0x054f,0x0550,0x0551,0x0552,0x0553,0x0554,0x0555,0x0556,
1.215 + 0x0559,0x055a,0x055b,0x055c,0x055d,0x055e,0x055f,0x0561,0x0562,0x0563,
1.216 + 0x0564,0x0565,0x0566,0x0567,0x0568,0x0569,0x056a,0x056b,0x056c,0x056d,
1.217 + 0x056e,0x056f,0x0570,0x0571,0x0572,0x0573,0x0574,0x0575,0x0576,0x0577,
1.218 + 0x0578,0x0579,0x057a,0x057b,0x057c,0x057d,0x057e,0x057f,0x0580,0x0581,
1.219 + 0x0582,0x0583,0x0584,0x0585,0x0586,0x0587,0x0589,0x0904,0x0905,0x0906,
1.220 + 0x0907,0x0908,0x0909,0x090a,0x090b,0x090c,0x090d,0x090e,0x090f,0x0910,
1.221 + 0x0911,0x0912,0x0913,0x0914,0x0915,0x0916,0x0917,0x0918,0x0919,0x091a,
1.222 + 0x091b,0x091c,0x091d,0x091e,0x091f,0x0920,0x0921,0x0922,0x0923,0x0924,
1.223 + 0x0925,0x0926,0x0927,0x0928,0x0929,0x092a,0x092b,0x092c,0x092d,0x092e,
1.224 + 0x092f,0x0930,0x0931,0x0932,0x0933,0x0934,0x0935,0x0936,0x0937,0x0938,
1.225 + 0x0939,0x093d,0x0950,0x0958,0x0959,0x095a,0x095b,0x095c,0x095d,0x095e,
1.226 + 0x095f,0x0960,0x0961,0x0964,0x0965,0x0966,0x0967,0x0968,0x0969,0x096a,
1.227 + 0x096b,0x096c,0x096d,0x096e,0x096f,0x0970,0x097b,0x097c,0x097d,0x097e,
1.228 + 0x097f,0x0985,0x0986,0x0987,0x0988,0x0989,0x098a,0x098b,0x098c,0x098f,
1.229 + 0x0990,0x0993,0x0994,0x0995,0x0996,0x0997,0x0998,0x0999,0x099a,0x099b,
1.230 + 0x099c,0x099d,0x099e,0x099f,0x09a0,0x09a1,0x09a2,0x09a3,0x09a4,0x09a5,
1.231 + 0x09a6,0x09a7,0x09a8,0x09aa,0x09ab,0x09ac,0x09ad,0x09ae,0x09af,0x09b0,
1.232 + 0x09b2,0x09b6,0x09b7,0x09b8,0x09b9,0x09bd,0x09ce,0x09dc,0x09dd,0x09df,
1.233 + 0x09e0,0x09e1,0x09e6,0x09e7,0x09e8,0x09e9,0x09ea,0x09eb,0x09ec,0x09ed,
1.234 + 0x09ee,0x09ef,0x09f0,0x09f1,0x09f4,0x09f5,0x09f6,0x09f7,0x09f8,0x09f9,
1.235 + 0x09fa,0x0a05,0x0a06,0x0a07,0x0a08,0x0a09,0x0a0a,0x0a0f,0x0a10,0x0a13,
1.236 + 0x0a14,0x0a15,0x0a16,0x0a17,0x0a18,0x0a19,0x0a1a,0x0a1b,0x0a1c,0x0a1d,
1.237 + 0x0a1e,0x0a1f,0x0a20,0x0a21,0x0a22,0x0a23,0x0a24,0x0a25,0x0a26,0x0a27,
1.238 + 0x0a28,0x0a2a,0x0a2b,0x0a2c,0x0a2d,0x0a2e,0x0a2f,0x0a30,0x0a32,0x0a33,
1.239 + 0x0a35,0x0a36,0x0a38,0x0a39,0x0a59,0x0a5a,0x0a5b,0x0a5c,0x0a5e,0x0a66,
1.240 + 0x0a67,0x0a68,0x0a69,0x0a6a,0x0a6b,0x0a6c,0x0a6d,0x0a6e,0x0a6f,0x0a72,
1.241 + 0x0a73,0x0a74,0x0a85,0x0a86,0x0a87,0x0a88,0x0a89,0x0a8a,0x0a8b,0x0a8c,
1.242 + 0x0a8d,0x0a8f,0x0a90,0x0a91,0x0a93,0x0a94,0x0a95,0x0a96,0x0a97,0x0a98,
1.243 + 0x0a99,0x0a9a,0x0a9b,0x0a9c,0x0a9d,0x0a9e,0x0a9f,0x0aa0,0x0aa1,0x0aa2,
1.244 + 0x0aa3,0x0aa4,0x0aa5,0x0aa6,0x0aa7,0x0aa8,0x0aaa,0x0aab,0x0aac,0x0aad,
1.245 + 0x0aae,0x0aaf,0x0ab0,0x0ab2,0x0ab3,0x0ab5,0x0ab6,0x0ab7,0x0ab8,0x0ab9,
1.246 + 0x0abd,0x0ad0,0x0ae0,0x0ae1,0x0ae6,0x0ae7,0x0ae8,0x0ae9,0x0aea,0x0aeb,
1.247 + 0x0aec,0x0aed,0x0aee,0x0aef,0x0b05,0x0b06,0x0b07,0x0b08,0x0b09,0x0b0a,
1.248 + 0x0b0b,0x0b0c,0x0b0f,0x0b10,0x0b13,0x0b14,0x0b15,0x0b16,0x0b17,0x0b18,
1.249 + 0x0b19,0x0b1a,0x0b1b,0x0b1c,0x0b1d,0x0b1e,0x0b1f,0x0b20,0x0b21,0x0b22,
1.250 + 0x0b23,0x0b24,0x0b25,0x0b26,0x0b27,0x0b28,0x0b2a,0x0b2b,0x0b2c,0x0b2d,
1.251 + 0x0b2e,0x0b2f,0x0b30,0x0b32,0x0b33,0x0b35,0x0b36,0x0b37,0x0b38,0x0b39,
1.252 + 0x0b3d,0x0b5c,0x0b5d,0x0b5f,0x0b60,0x0b61,0x0b66,0x0b67,0x0b68,0x0b69,
1.253 + 0x0b6a,0x0b6b,0x0b6c,0x0b6d,0x0b6e,0x0b6f,0x0b70,0x0b71,0x0b83,0x0b85,
1.254 + 0x0b86,0x0b87,0x0b88,0x0b89,0x0b8a,0x0b8e,0x0b8f,0x0b90,0x0b92,0x0b93,
1.255 + 0x0b94,0x0b95,0x0b99,0x0b9a,0x0b9c,0x0b9e,0x0b9f,0x0ba3,0x0ba4,0x0ba8,
1.256 + 0x0ba9,0x0baa,0x0bae,0x0baf,0x0bb0,0x0bb1,0x0bb2,0x0bb3,0x0bb4,0x0bb5,
1.257 + 0x0bb6,0x0bb7,0x0bb8,0x0bb9,0x0be6,0x0be7,0x0be8,0x0be9,0x0bea,0x0beb,
1.258 + 0x0bec,0x0bed,0x0bee,0x0bef,0x0bf0,0x0bf1,0x0bf2,0x0c05,0x0c06,0x0c07,
1.259 + 0x0c08,0x0c09,0x0c0a,0x0c0b,0x0c0c,0x0c0e,0x0c0f,0x0c10,0x0c12,0x0c13,
1.260 + 0x0c14,0x0c15,0x0c16,0x0c17,0x0c18,0x0c19,0x0c1a,0x0c1b,0x0c1c,0x0c1d,
1.261 + 0x0c1e,0x0c1f,0x0c20,0x0c21,0x0c22,0x0c23,0x0c24,0x0c25,0x0c26,0x0c27,
1.262 + 0x0c28,0x0c2a,0x0c2b,0x0c2c,0x0c2d,0x0c2e,0x0c2f,0x0c30,0x0c31,0x0c32,
1.263 + 0x0c33,0x0c35,0x0c36,0x0c37,0x0c38,0x0c39,0x0c60,0x0c61,0x0c66,0x0c67,
1.264 + 0x0c68,0x0c69,0x0c6a,0x0c6b,0x0c6c,0x0c6d,0x0c6e,0x0c6f,0x0c85,0x0c86,
1.265 + 0x0c87,0x0c88,0x0c89,0x0c8a,0x0c8b,0x0c8c,0x0c8e,0x0c8f,0x0c90,0x0c92,
1.266 + 0x0c93,0x0c94,0x0c95,0x0c96,0x0c97,0x0c98,0x0c99,0x0c9a,0x0c9b,0x0c9c,
1.267 + 0x0c9d,0x0c9e,0x0c9f,0x0ca0,0x0ca1,0x0ca2,0x0ca3,0x0ca4,0x0ca5,0x0ca6,
1.268 + 0x0ca7,0x0ca8,0x0caa,0x0cab,0x0cac,0x0cad,0x0cae,0x0caf,0x0cb0,0x0cb1,
1.269 + 0x0cb2,0x0cb3,0x0cb5,0x0cb6,0x0cb7,0x0cb8,0x0cb9,0x0cbd,0x0cde,0x0ce0,
1.270 + 0x0ce1,0x0ce6,0x0ce7,0x0ce8,0x0ce9,0x0cea,0x0ceb,0x0cec,0x0ced,0x0cee,
1.271 + 0x0cef,0x0d05,0x0d06,0x0d07,0x0d08,0x0d09,0x0d0a,0x0d0b,0x0d0c,0x0d0e,
1.272 + 0x0d0f,0x0d10,0x0d12,0x0d13,0x0d14,0x0d15,0x0d16,0x0d17,0x0d18,0x0d19,
1.273 + 0x0d1a,0x0d1b,0x0d1c,0x0d1d,0x0d1e,0x0d1f,0x0d20,0x0d21,0x0d22,0x0d23,
1.274 + 0x0d24,0x0d25,0x0d26,0x0d27,0x0d28,0x0d2a,0x0d2b,0x0d2c,0x0d2d,0x0d2e,
1.275 + 0x0d2f,0x0d30,0x0d31,0x0d32,0x0d33,0x0d34,0x0d35,0x0d36,0x0d37,0x0d38,
1.276 + 0x0d39,0x0d60,0x0d61,0x0d66,0x0d67,0x0d68,0x0d69,0x0d6a,0x0d6b,0x0d6c,
1.277 + 0x0d6d,0x0d6e,0x0d6f,0x0d85,0x0d86,0x0d87,0x0d88,0x0d89,0x0d8a,0x0d8b,
1.278 + 0x0d8c,0x0d8d,0x0d8e,0x0d8f,0x0d90,0x0d91,0x0d92,0x0d93,0x0d94,0x0d95,
1.279 + 0x0d96,0x0d9a,0x0d9b,0x0d9c,0x0d9d,0x0d9e,0x0d9f,0x0da0,0x0da1,0x0da2,
1.280 + 0x0da3,0x0da4,0x0da5,0x0da6,0x0da7,0x0da8,0x0da9,0x0daa,0x0dab,0x0dac,
1.281 + 0x0dad,0x0dae,0x0daf,0x0db0,0x0db1,0x0db3,0x0db4,0x0db5,0x0db6,0x0db7,
1.282 + 0x0db8,0x0db9,0x0dba,0x0dbb,0x0dbd,0x0dc0,0x0dc1,0x0dc2,0x0dc3,0x0dc4,
1.283 + 0x0dc5,0x0dc6,0x0df4,0x0e01,0x0e02,0x0e03,0x0e04,0x0e05,0x0e06,0x0e07,
1.284 + 0x0e08,0x0e09,0x0e0a,0x0e0b,0x0e0c,0x0e0d,0x0e0e,0x0e0f,0x0e10,0x0e11,
1.285 + 0x0e12,0x0e13,0x0e14,0x0e15,0x0e16,0x0e17,0x0e18,0x0e19,0x0e1a,0x0e1b,
1.286 + 0x0e1c,0x0e1d,0x0e1e,0x0e1f,0x0e20,0x0e21,0x0e22,0x0e23,0x0e24,0x0e25,
1.287 + 0x0e26,0x0e27,0x0e28,0x0e29,0x0e2a,0x0e2b,0x0e2c,0x0e2d,0x0e2e,0x0e2f,
1.288 + 0x0e30,0x0e32,0x0e33,0x0e40,0x0e41,0x0e42,0x0e43,0x0e44,0x0e45,0x0e46,
1.289 + 0x0e4f,0x0e50,0x0e51,0x0e52,0x0e53,0x0e54,0x0e55,0x0e56,0x0e57,0x0e58,
1.290 + 0x0e59,0x0e5a,0x0e5b,0x0e81,0x0e82,0x0e84,0x0e87,0x0e88,0x0e8a,0x0e8d,
1.291 + 0x0e94,0x0e95,0x0e96,0x0e97,0x0e99,0x0e9a,0x0e9b,0x0e9c,0x0e9d,0x0e9e,
1.292 + 0x0e9f,0x0ea1,0x0ea2,0x0ea3,0x0ea5,0x0ea7,0x0eaa,0x0eab,0x0ead,0x0eae,
1.293 + 0x0eaf,0x0eb0,0x0eb2,0x0eb3,0x0ebd,0x0ec0,0x0ec1,0x0ec2,0x0ec3,0x0ec4,
1.294 + 0x0ec6,0x0ed0,0x0ed1,0x0ed2,0x0ed3,0x0ed4,0x0ed5,0x0ed6,0x0ed7,0x0ed8,
1.295 + 0x0ed9,0x0edc,0x0edd,0x0f00,0x0f01,0x0f02,0x0f03,0x0f04,0x0f05,0x0f06,
1.296 + 0x0f07,0x0f08,0x0f09,0x0f0a,0x0f0b,0x0f0c,0x0f0d,0x0f0e,0x0f0f,0x0f10,
1.297 + 0x0f11,0x0f12,0x0f13,0x0f14,0x0f15,0x0f16,0x0f17,0x0f1a,0x0f1b,0x0f1c,
1.298 + 0x0f1d,0x0f1e,0x0f1f,0x0f20,0x0f21,0x0f22,0x0f23,0x0f24,0x0f25,0x0f26,
1.299 + 0x0f27,0x0f28,0x0f29,0x0f2a,0x0f2b,0x0f2c,0x0f2d,0x0f2e,0x0f2f,0x0f30,
1.300 + 0x0f31,0x0f32,0x0f33,0x0f34,0x0f36,0x0f38,0x0f40,0x0f41,0x0f42,0x0f43,
1.301 + 0x0f44,0x0f45,0x0f46,0x0f47,0x0f49,0x0f4a,0x0f4b,0x0f4c,0x0f4d,0x0f4e,
1.302 + 0x0f4f,0x0f50,0x0f51,0x0f52,0x0f53,0x0f54,0x0f55,0x0f56,0x0f57,0x0f58,
1.303 + 0x0f59,0x0f5a,0x0f5b,0x0f5c,0x0f5d,0x0f5e,0x0f5f,0x0f60,0x0f61,0x0f62,
1.304 + 0x0f63,0x0f64,0x0f65,0x0f66,0x0f67,0x0f68,0x0f69,0x0f6a,0x0f85,0x0f88,
1.305 + 0x0f89,0x0f8a,0x0f8b,0x0fbe,0x0fbf,0x0fc0,0x0fc1,0x0fc2,0x0fc3,0x0fc4,
1.306 + 0x0fc5,0x0fc7,0x0fc8,0x0fc9,0x0fca,0x0fcb,0x0fcc,0x0fcf,0x0fd0,0x0fd1,
1.307 + 0x1000,0x1001,0x1002,0x1003,0x1004,0x1005,0x1006,0x1007,0x1008,0x1009,
1.308 + 0x100a,0x100b,0x100c,0x100d,0x100e,0x100f,0x1010,0x1011,0x1012,0x1013,
1.309 + 0x1014,0x1015,0x1016,0x1017,0x1018,0x1019,0x101a,0x101b,0x101c,0x101d,
1.310 + 0x101e,0x101f,0x1020,0x1021,0x1023,0x1024,0x1025,0x1026,0x1027,0x1029,
1.311 + 0x102a,0x1040,0x1041,0x1042,0x1043,0x1044,0x1045,0x1046,0x1047,0x1048,
1.312 + 0x1049,0x104a,0x104b,0x104c,0x104d,0x104e,0x104f,0x1050,0x1051,0x1052,
1.313 + 0x1053,0x1054,0x1055,0x10a0,0x10a1,0x10a2,0x10a3,0x10a4,0x10a5,0x10a6,
1.314 + 0x10a7,0x10a8,0x10a9,0x10aa,0x10ab,0x10ac,0x10ad,0x10ae,0x10af,0x10b0,
1.315 + 0x10b1,0x10b2,0x10b3,0x10b4,0x10b5,0x10b6,0x10b7,0x10b8,0x10b9,0x10ba,
1.316 + 0x10bb,0x10bc,0x10bd,0x10be,0x10bf,0x10c0,0x10c1,0x10c2,0x10c3,0x10c4,
1.317 + 0x10c5,0x10d0,0x10d1,0x10d2,0x10d3,0x10d4,0x10d5,0x10d6,0x10d7,0x10d8,
1.318 + 0x10d9,0x10da,0x10db,0x10dc,0x10dd,0x10de,0x10df,0x10e0,0x10e1,0x10e2,
1.319 + 0x10e3,0x10e4,0x10e5,0x10e6,0x10e7,0x10e8,0x10e9,0x10ea,0x10eb,0x10ec,
1.320 + 0x10ed,0x10ee,0x10ef,0x10f0,0x10f1,0x10f2,0x10f3,0x10f4,0x10f5,0x10f6,
1.321 + 0x10f7,0x10f8,0x10f9,0x10fa,0x10fb,0x10fc,0x1100,0x1101,0x1102,0x1103,
1.322 + 0x1104,0x1105,0x1106,0x1107,0x1108,0x1109,0x110a,0x110b,0x110c,0x110d,
1.323 + 0x110e,0x110f,0x1110,0x1111,0x1112,0x1113,0x1114,0x1115,0x1116,0x1117,
1.324 + 0x1118,0x1119,0x111a,0x111b,0x111c,0x111d,0x111e,0x111f,0x1120,0x1121,
1.325 + 0x1122,0x1123,0x1124,0x1125,0x1126,0x1127,0x1128,0x1129,0x112a,0x112b,
1.326 + 0x112c,0x112d,0x112e,0x112f,0x1130,0x1131,0x1132,0x1133,0x1134,0x1135,
1.327 + 0x1136,0x1137,0x1138,0x1139,0x113a,0x113b,0x113c,0x113d,0x113e,0x113f,
1.328 + 0x1140,0x1141,0x1142,0x1143,0x1144,0x1145,0x1146,0x1147,0x1148,0x1149,
1.329 + 0x114a,0x114b,0x114c,0x114d,0x114e,0x114f,0x1150,0x1151,0x1152,0x1153,
1.330 + 0x1154,0x1155,0x1156,0x1157,0x1158,0x1159,0x115f,0x1160,0x1161,0x1162,
1.331 + 0x1163,0x1164,0x1165,0x1166,0x1167,0x1168,0x1169,0x116a,0x116b,0x116c,
1.332 + 0x116d,0x116e,0x116f,0x1170,0x1171,0x1172,0x1173,0x1174,0x1175,0x1176,
1.333 + 0x1177,0x1178,0x1179,0x117a,0x117b,0x117c,0x117d,0x117e,0x117f,0x1180,
1.334 + 0x1181,0x1182,0x1183,0x1184,0x1185,0x1186,0x1187,0x1188,0x1189,0x118a,
1.335 + 0x118b,0x118c,0x118d,0x118e,0x118f,0x1190,0x1191,0x1192,0x1193,0x1194,
1.336 + 0x1195,0x1196,0x1197,0x1198,0x1199,0x119a,0x119b,0x119c,0x119d,0x119e,
1.337 + 0x119f,0x11a0,0x11a1,0x11a2,0x11a8,0x11a9,0x11aa,0x11ab,0x11ac,0x11ad,
1.338 + 0x11ae,0x11af,0x11b0,0x11b1,0x11b2,0x11b3,0x11b4,0x11b5,0x11b6,0x11b7,
1.339 + 0x11b8,0x11b9,0x11ba,0x11bb,0x11bc,0x11bd,0x11be,0x11bf,0x11c0,0x11c1,
1.340 + 0x11c2,0x11c3,0x11c4,0x11c5,0x11c6,0x11c7,0x11c8,0x11c9,0x11ca,0x11cb,
1.341 + 0x11cc,0x11cd,0x11ce,0x11cf,0x11d0,0x11d1,0x11d2,0x11d3,0x11d4,0x11d5,
1.342 + 0x11d6,0x11d7,0x11d8,0x11d9,0x11da,0x11db,0x11dc,0x11dd,0x11de,0x11df,
1.343 + 0x11e0,0x11e1,0x11e2,0x11e3,0x11e4,0x11e5,0x11e6,0x11e7,0x11e8,0x11e9,
1.344 + 0x11ea,0x11eb,0x11ec,0x11ed,0x11ee,0x11ef,0x11f0,0x11f1,0x11f2,0x11f3,
1.345 + 0x11f4,0x11f5,0x11f6,0x11f7,0x11f8,0x11f9,0x1200,0x1201,0x1202,0x1203,
1.346 + 0x1204,0x1205,0x1206,0x1207,0x1208,0x1209,0x120a,0x120b,0x120c,0x120d,
1.347 + 0x120e,0x120f,0x1210,0x1211,0x1212,0x1213,0x1214,0x1215,0x1216,0x1217,
1.348 + 0x1218,0x1219,0x121a,0x121b,0x121c,0x121d,0x121e,0x121f,0x1220,0x1221,
1.349 + 0x1222,0x1223,0x1224,0x1225,0x1226,0x1227,0x1228,0x1229,0x122a,0x122b,
1.350 + 0x122c,0x122d,0x122e,0x122f,0x1230,0x1231,0x1232,0x1233,0x1234,0x1235,
1.351 + 0x1236,0x1237,0x1238,0x1239,0x123a,0x123b,0x123c,0x123d,0x123e,0x123f,
1.352 + 0x1240,0x1241,0x1242,0x1243,0x1244,0x1245,0x1246,0x1247,0x1248,0x124a,
1.353 + 0x124b,0x124c,0x124d,0x1250,0x1251,0x1252,0x1253,0x1254,0x1255,0x1256,
1.354 + 0x1258,0x125a,0x125b,0x125c,0x125d,0x1260,0x1261,0x1262,0x1263,0x1264,
1.355 + 0x1265,0x1266,0x1267,0x1268,0x1269,0x126a,0x126b,0x126c,0x126d,0x126e,
1.356 + 0x126f,0x1270,0x1271,0x1272,0x1273,0x1274,0x1275,0x1276,0x1277,0x1278,
1.357 + 0x1279,0x127a,0x127b,0x127c,0x127d,0x127e,0x127f,0x1280,0x1281,0x1282,
1.358 + 0x1283,0x1284,0x1285,0x1286,0x1287,0x1288,0x128a,0x128b,0x128c,0x128d,
1.359 + 0x1290,0x1291,0x1292,0x1293,0x1294,0x1295,0x1296,0x1297,0x1298,0x1299,
1.360 + 0x129a,0x129b,0x129c,0x129d,0x129e,0x129f,0x12a0,0x12a1,0x12a2,0x12a3,
1.361 + 0x12a4,0x12a5,0x12a6,0x12a7,0x12a8,0x12a9,0x12aa,0x12ab,0x12ac,0x12ad,
1.362 + 0x12ae,0x12af,0x12b0,0x12b2,0x12b3,0x12b4,0x12b5,0x12b8,0x12b9,0x12ba,
1.363 + 0x12bb,0x12bc,0x12bd,0x12be,0x12c0,0x12c2,0x12c3,0x12c4,0x12c5,0x12c8,
1.364 + 0x12c9,0x12ca,0x12cb,0x12cc,0x12cd,0x12ce,0x12cf,0x12d0,0x12d1,0x12d2,
1.365 + 0x12d3,0x12d4,0x12d5,0x12d6,0x12d8,0x12d9,0x12da,0x12db,0x12dc,0x12dd,
1.366 + 0x12de,0x12df,0x12e0,0x12e1,0x12e2,0x12e3,0x12e4,0x12e5,0x12e6,0x12e7,
1.367 + 0x12e8,0x12e9,0x12ea,0x12eb,0x12ec,0x12ed,0x12ee,0x12ef,0x12f0,0x12f1,
1.368 + 0x12f2,0x12f3,0x12f4,0x12f5,0x12f6,0x12f7,0x12f8,0x12f9,0x12fa,0x12fb,
1.369 + 0x12fc,0x12fd,0x12fe,0x12ff,0x1300,0x1301,0x1302,0x1303,0x1304,0x1305,
1.370 + 0x1306,0x1307,0x1308,0x1309,0x130a,0x130b,0x130c,0x130d,0x130e,0x130f,
1.371 + 0x1310,0x1312,0x1313,0x1314,0x1315,0x1318,0x1319,0x131a,0x131b,0x131c,
1.372 + 0x131d,0x131e,0x131f,0x1320,0x1321,0x1322,0x1323,0x1324,0x1325,0x1326,
1.373 + 0x1327,0x1328,0x1329,0x132a,0x132b,0x132c,0x132d,0x132e,0x132f,0x1330,
1.374 + 0x1331,0x1332,0x1333,0x1334,0x1335,0x1336,0x1337,0x1338,0x1339,0x133a,
1.375 + 0x133b,0x133c,0x133d,0x133e,0x133f,0x1340,0x1341,0x1342,0x1343,0x1344,
1.376 + 0x1345,0x1346,0x1347,0x1348,0x1349,0x134a,0x134b,0x134c,0x134d,0x134e,
1.377 + 0x134f,0x1350,0x1351,0x1352,0x1353,0x1354,0x1355,0x1356,0x1357,0x1358,
1.378 + 0x1359,0x135a,0x1360,0x1361,0x1362,0x1363,0x1364,0x1365,0x1366,0x1367,
1.379 + 0x1368,0x1369,0x136a,0x136b,0x136c,0x136d,0x136e,0x136f,0x1370,0x1371,
1.380 + 0x1372,0x1373,0x1374,0x1375,0x1376,0x1377,0x1378,0x1379,0x137a,0x137b,
1.381 + 0x137c,0x1380,0x1381,0x1382,0x1383,0x1384,0x1385,0x1386,0x1387,0x1388,
1.382 + 0x1389,0x138a,0x138b,0x138c,0x138d,0x138e,0x138f,0x13a0,0x13a1,0x13a2,
1.383 + 0x13a3,0x13a4,0x13a5,0x13a6,0x13a7,0x13a8,0x13a9,0x13aa,0x13ab,0x13ac,
1.384 + 0x13ad,0x13ae,0x13af,0x13b0,0x13b1,0x13b2,0x13b3,0x13b4,0x13b5,0x13b6,
1.385 + 0x13b7,0x13b8,0x13b9,0x13ba,0x13bb,0x13bc,0x13bd,0x13be,0x13bf,0x13c0,
1.386 + 0x13c1,0x13c2,0x13c3,0x13c4,0x13c5,0x13c6,0x13c7,0x13c8,0x13c9,0x13ca,
1.387 + 0x13cb,0x13cc,0x13cd,0x13ce,0x13cf,0x13d0,0x13d1,0x13d2,0x13d3,0x13d4,
1.388 + 0x13d5,0x13d6,0x13d7,0x13d8,0x13d9,0x13da,0x13db,0x13dc,0x13dd,0x13de,
1.389 + 0x13df,0x13e0,0x13e1,0x13e2,0x13e3,0x13e4,0x13e5,0x13e6,0x13e7,0x13e8,
1.390 + 0x13e9,0x13ea,0x13eb,0x13ec,0x13ed,0x13ee,0x13ef,0x13f0,0x13f1,0x13f2,
1.391 + 0x13f3,0x13f4,0x1401,0x1402,0x1403,0x1404,0x1405,0x1406,0x1407,0x1408,
1.392 + 0x1409,0x140a,0x140b,0x140c,0x140d,0x140e,0x140f,0x1410,0x1411,0x1412,
1.393 + 0x1413,0x1414,0x1415,0x1416,0x1417,0x1418,0x1419,0x141a,0x141b,0x141c,
1.394 + 0x141d,0x141e,0x141f,0x1420,0x1421,0x1422,0x1423,0x1424,0x1425,0x1426,
1.395 + 0x1427,0x1428,0x1429,0x142a,0x142b,0x142c,0x142d,0x142e,0x142f,0x1430,
1.396 + 0x1431,0x1432,0x1433,0x1434,0x1435,0x1436,0x1437,0x1438,0x1439,0x143a,
1.397 + 0x143b,0x143c,0x143d,0x143e,0x143f,0x1440,0x1441,0x1442,0x1443,0x1444,
1.398 + 0x1445,0x1446,0x1447,0x1448,0x1449,0x144a,0x144b,0x144c,0x144d,0x144e,
1.399 + 0x144f,0x1450,0x1451,0x1452,0x1453,0x1454,0x1455,0x1456,0x1457,0x1458,
1.400 + 0x1459,0x145a,0x145b,0x145c,0x145d,0x145e,0x145f,0x1460,0x1461,0x1462,
1.401 + 0x1463,0x1464,0x1465,0x1466,0x1467,0x1468,0x1469,0x146a,0x146b,0x146c,
1.402 + 0x146d,0x146e,0x146f,0x1470,0x1471,0x1472,0x1473,0x1474,0x1475,0x1476,
1.403 + 0x1477,0x1478,0x1479,0x147a,0x147b,0x147c,0x147d,0x147e,0x147f,0x1480,
1.404 + 0x1481,0x1482,0x1483,0x1484,0x1485,0x1486,0x1487,0x1488,0x1489,0x148a,
1.405 + 0x148b,0x148c,0x148d,0x148e,0x148f,0x1490,0x1491,0x1492,0x1493,0x1494,
1.406 + 0x1495,0x1496,0x1497,0x1498,0x1499,0x149a,0x149b,0x149c,0x149d,0x149e,
1.407 + 0x149f,0x14a0,0x14a1,0x14a2,0x14a3,0x14a4,0x14a5,0x14a6,0x14a7,0x14a8,
1.408 + 0x14a9,0x14aa,0x14ab,0x14ac,0x14ad,0x14ae,0x14af,0x14b0,0x14b1,0x14b2,
1.409 + 0x14b3,0x14b4,0x14b5,0x14b6,0x14b7,0x14b8,0x14b9,0x14ba,0x14bb,0x14bc,
1.410 + 0x14bd,0x14be,0x14bf,0x14c0,0x14c1,0x14c2,0x14c3,0x14c4,0x14c5,0x14c6,
1.411 + 0x14c7,0x14c8,0x14c9,0x14ca,0x14cb,0x14cc,0x14cd,0x14ce,0x14cf,0x14d0,
1.412 + 0x14d1,0x14d2,0x14d3,0x14d4,0x14d5,0x14d6,0x14d7,0x14d8,0x14d9,0x14da,
1.413 + 0x14db,0x14dc,0x14dd,0x14de,0x14df,0x14e0,0x14e1,0x14e2,0x14e3,0x14e4,
1.414 + 0x14e5,0x14e6,0x14e7,0x14e8,0x14e9,0x14ea,0x14eb,0x14ec,0x14ed,0x14ee,
1.415 + 0x14ef,0x14f0,0x14f1,0x14f2,0x14f3,0x14f4,0x14f5,0x14f6,0x14f7,0x14f8,
1.416 + 0x14f9,0x14fa,0x14fb,0x14fc,0x14fd,0x14fe,0x14ff,0x1500,0x1501,0x1502,
1.417 + 0x1503,0x1504,0x1505,0x1506,0x1507,0x1508,0x1509,0x150a,0x150b,0x150c,
1.418 + 0x150d,0x150e,0x150f,0x1510,0x1511,0x1512,0x1513,0x1514,0x1515,0x1516,
1.419 + 0x1517,0x1518,0x1519,0x151a,0x151b,0x151c,0x151d,0x151e,0x151f,0x1520,
1.420 + 0x1521,0x1522,0x1523,0x1524,0x1525,0x1526,0x1527,0x1528,0x1529,0x152a,
1.421 + 0x152b,0x152c,0x152d,0x152e,0x152f,0x1530,0x1531,0x1532,0x1533,0x1534,
1.422 + 0x1535,0x1536,0x1537,0x1538,0x1539,0x153a,0x153b,0x153c,0x153d,0x153e,
1.423 + 0x153f,0x1540,0x1541,0x1542,0x1543,0x1544,0x1545,0x1546,0x1547,0x1548,
1.424 + 0x1549,0x154a,0x154b,0x154c,0x154d,0x154e,0x154f,0x1550,0x1551,0x1552,
1.425 + 0x1553,0x1554,0x1555,0x1556,0x1557,0x1558,0x1559,0x155a,0x155b,0x155c,
1.426 + 0x155d,0x155e,0x155f,0x1560,0x1561,0x1562,0x1563,0x1564,0x1565,0x1566,
1.427 + 0x1567,0x1568,0x1569,0x156a,0x156b,0x156c,0x156d,0x156e,0x156f,0x1570,
1.428 + 0x1571,0x1572,0x1573,0x1574,0x1575,0x1576,0x1577,0x1578,0x1579,0x157a,
1.429 + 0x157b,0x157c,0x157d,0x157e,0x157f,0x1580,0x1581,0x1582,0x1583,0x1584,
1.430 + 0x1585,0x1586,0x1587,0x1588,0x1589,0x158a,0x158b,0x158c,0x158d,0x158e,
1.431 + 0x158f,0x1590,0x1591,0x1592,0x1593,0x1594,0x1595,0x1596,0x1597,0x1598,
1.432 + 0x1599,0x159a,0x159b,0x159c,0x159d,0x159e,0x159f,0x15a0,0x15a1,0x15a2,
1.433 + 0x15a3,0x15a4,0x15a5,0x15a6,0x15a7,0x15a8,0x15a9,0x15aa,0x15ab,0x15ac,
1.434 + 0x15ad,0x15ae,0x15af,0x15b0,0x15b1,0x15b2,0x15b3,0x15b4,0x15b5,0x15b6,
1.435 + 0x15b7,0x15b8,0x15b9,0x15ba,0x15bb,0x15bc,0x15bd,0x15be,0x15bf,0x15c0,
1.436 + 0x15c1,0x15c2,0x15c3,0x15c4,0x15c5,0x15c6,0x15c7,0x15c8,0x15c9,0x15ca,
1.437 + 0x15cb,0x15cc,0x15cd,0x15ce,0x15cf,0x15d0,0x15d1,0x15d2,0x15d3,0x15d4,
1.438 + 0x15d5,0x15d6,0x15d7,0x15d8,0x15d9,0x15da,0x15db,0x15dc,0x15dd,0x15de,
1.439 + 0x15df,0x15e0,0x15e1,0x15e2,0x15e3,0x15e4,0x15e5,0x15e6,0x15e7,0x15e8,
1.440 + 0x15e9,0x15ea,0x15eb,0x15ec,0x15ed,0x15ee,0x15ef,0x15f0,0x15f1,0x15f2,
1.441 + 0x15f3,0x15f4,0x15f5,0x15f6,0x15f7,0x15f8,0x15f9,0x15fa,0x15fb,0x15fc,
1.442 + 0x15fd,0x15fe,0x15ff,0x1600,0x1601,0x1602,0x1603,0x1604,0x1605,0x1606,
1.443 + 0x1607,0x1608,0x1609,0x160a,0x160b,0x160c,0x160d,0x160e,0x160f,0x1610,
1.444 + 0x1611,0x1612,0x1613,0x1614,0x1615,0x1616,0x1617,0x1618,0x1619,0x161a,
1.445 + 0x161b,0x161c,0x161d,0x161e,0x161f,0x1620,0x1621,0x1622,0x1623,0x1624,
1.446 + 0x1625,0x1626,0x1627,0x1628,0x1629,0x162a,0x162b,0x162c,0x162d,0x162e,
1.447 + 0x162f,0x1630,0x1631,0x1632,0x1633,0x1634,0x1635,0x1636,0x1637,0x1638,
1.448 + 0x1639,0x163a,0x163b,0x163c,0x163d,0x163e,0x163f,0x1640,0x1641,0x1642,
1.449 + 0x1643,0x1644,0x1645,0x1646,0x1647,0x1648,0x1649,0x164a,0x164b,0x164c,
1.450 + 0x164d,0x164e,0x164f,0x1650,0x1651,0x1652,0x1653,0x1654,0x1655,0x1656,
1.451 + 0x1657,0x1658,0x1659,0x165a,0x165b,0x165c,0x165d,0x165e,0x165f,0x1660,
1.452 + 0x1661,0x1662,0x1663,0x1664,0x1665,0x1666,0x1667,0x1668,0x1669,0x166a,
1.453 + 0x166b,0x166c,0x166d,0x166e,0x166f,0x1670,0x1671,0x1672,0x1673,0x1674,
1.454 + 0x1675,0x1676,0x1681,0x1682,0x1683,0x1684,0x1685,0x1686,0x1687,0x1688,
1.455 + 0x1689,0x168a,0x168b,0x168c,0x168d,0x168e,0x168f,0x1690,0x1691,0x1692,
1.456 + 0x1693,0x1694,0x1695,0x1696,0x1697,0x1698,0x1699,0x169a,0x16a0,0x16a1,
1.457 + 0x16a2,0x16a3,0x16a4,0x16a5,0x16a6,0x16a7,0x16a8,0x16a9,0x16aa,0x16ab,
1.458 + 0x16ac,0x16ad,0x16ae,0x16af,0x16b0,0x16b1,0x16b2,0x16b3,0x16b4,0x16b5,
1.459 + 0x16b6,0x16b7,0x16b8,0x16b9,0x16ba,0x16bb,0x16bc,0x16bd,0x16be,0x16bf,
1.460 + 0x16c0,0x16c1,0x16c2,0x16c3,0x16c4,0x16c5,0x16c6,0x16c7,0x16c8,0x16c9,
1.461 + 0x16ca,0x16cb,0x16cc,0x16cd,0x16ce,0x16cf,0x16d0,0x16d1,0x16d2,0x16d3,
1.462 + 0x16d4,0x16d5,0x16d6,0x16d7,0x16d8,0x16d9,0x16da,0x16db,0x16dc,0x16dd,
1.463 + 0x16de,0x16df,0x16e0,0x16e1,0x16e2,0x16e3,0x16e4,0x16e5,0x16e6,0x16e7,
1.464 + 0x16e8,0x16e9,0x16ea,0x16eb,0x16ec,0x16ed,0x16ee,0x16ef,0x16f0,0x1700,
1.465 + 0x1701,0x1702,0x1703,0x1704,0x1705,0x1706,0x1707,0x1708,0x1709,0x170a,
1.466 + 0x170b,0x170c,0x170e,0x170f,0x1710,0x1711,0x1720,0x1721,0x1722,0x1723,
1.467 + 0x1724,0x1725,0x1726,0x1727,0x1728,0x1729,0x172a,0x172b,0x172c,0x172d,
1.468 + 0x172e,0x172f,0x1730,0x1731,0x1735,0x1736,0x1740,0x1741,0x1742,0x1743,
1.469 + 0x1744,0x1745,0x1746,0x1747,0x1748,0x1749,0x174a,0x174b,0x174c,0x174d,
1.470 + 0x174e,0x174f,0x1750,0x1751,0x1760,0x1761,0x1762,0x1763,0x1764,0x1765,
1.471 + 0x1766,0x1767,0x1768,0x1769,0x176a,0x176b,0x176c,0x176e,0x176f,0x1770,
1.472 + 0x1780,0x1781,0x1782,0x1783,0x1784,0x1785,0x1786,0x1787,0x1788,0x1789,
1.473 + 0x178a,0x178b,0x178c,0x178d,0x178e,0x178f,0x1790,0x1791,0x1792,0x1793,
1.474 + 0x1794,0x1795,0x1796,0x1797,0x1798,0x1799,0x179a,0x179b,0x179c,0x179d,
1.475 + 0x179e,0x179f,0x17a0,0x17a1,0x17a2,0x17a3,0x17a4,0x17a5,0x17a6,0x17a7,
1.476 + 0x17a8,0x17a9,0x17aa,0x17ab,0x17ac,0x17ad,0x17ae,0x17af,0x17b0,0x17b1,
1.477 + 0x17b2,0x17b3,0x17b4,0x17b5,0x17d4,0x17d5,0x17d6,0x17d7,0x17d8,0x17d9,
1.478 + 0x17da,0x17dc,0x17e0,0x17e1,0x17e2,0x17e3,0x17e4,0x17e5,0x17e6,0x17e7,
1.479 + 0x17e8,0x17e9,0x1810,0x1811,0x1812,0x1813,0x1814,0x1815,0x1816,0x1817,
1.480 + 0x1818,0x1819,0x1820,0x1821,0x1822,0x1823,0x1824,0x1825,0x1826,0x1827,
1.481 + 0x1828,0x1829,0x182a,0x182b,0x182c,0x182d,0x182e,0x182f,0x1830,0x1831,
1.482 + 0x1832,0x1833,0x1834,0x1835,0x1836,0x1837,0x1838,0x1839,0x183a,0x183b,
1.483 + 0x183c,0x183d,0x183e,0x183f,0x1840,0x1841,0x1842,0x1843,0x1844,0x1845,
1.484 + 0x1846,0x1847,0x1848,0x1849,0x184a,0x184b,0x184c,0x184d,0x184e,0x184f,
1.485 + 0x1850,0x1851,0x1852,0x1853,0x1854,0x1855,0x1856,0x1857,0x1858,0x1859,
1.486 + 0x185a,0x185b,0x185c,0x185d,0x185e,0x185f,0x1860,0x1861,0x1862,0x1863,
1.487 + 0x1864,0x1865,0x1866,0x1867,0x1868,0x1869,0x186a,0x186b,0x186c,0x186d,
1.488 + 0x186e,0x186f,0x1870,0x1871,0x1872,0x1873,0x1874,0x1875,0x1876,0x1877,
1.489 + 0x1880,0x1881,0x1882,0x1883,0x1884,0x1885,0x1886,0x1887,0x1888,0x1889,
1.490 + 0x188a,0x188b,0x188c,0x188d,0x188e,0x188f,0x1890,0x1891,0x1892,0x1893,
1.491 + 0x1894,0x1895,0x1896,0x1897,0x1898,0x1899,0x189a,0x189b,0x189c,0x189d,
1.492 + 0x189e,0x189f,0x18a0,0x18a1,0x18a2,0x18a3,0x18a4,0x18a5,0x18a6,0x18a7,
1.493 + 0x18a8,0x1900,0x1901,0x1902,0x1903,0x1904,0x1905,0x1906,0x1907,0x1908,
1.494 + 0x1909,0x190a,0x190b,0x190c,0x190d,0x190e,0x190f,0x1910,0x1911,0x1912,
1.495 + 0x1913,0x1914,0x1915,0x1916,0x1917,0x1918,0x1919,0x191a,0x191b,0x191c,
1.496 + 0x1946,0x1947,0x1948,0x1949,0x194a,0x194b,0x194c,0x194d,0x194e,0x194f,
1.497 + 0x1950,0x1951,0x1952,0x1953,0x1954,0x1955,0x1956,0x1957,0x1958,0x1959,
1.498 + 0x195a,0x195b,0x195c,0x195d,0x195e,0x195f,0x1960,0x1961,0x1962,0x1963,
1.499 + 0x1964,0x1965,0x1966,0x1967,0x1968,0x1969,0x196a,0x196b,0x196c,0x196d,
1.500 + 0x1970,0x1971,0x1972,0x1973,0x1974,0x1980,0x1981,0x1982,0x1983,0x1984,
1.501 + 0x1985,0x1986,0x1987,0x1988,0x1989,0x198a,0x198b,0x198c,0x198d,0x198e,
1.502 + 0x198f,0x1990,0x1991,0x1992,0x1993,0x1994,0x1995,0x1996,0x1997,0x1998,
1.503 + 0x1999,0x199a,0x199b,0x199c,0x199d,0x199e,0x199f,0x19a0,0x19a1,0x19a2,
1.504 + 0x19a3,0x19a4,0x19a5,0x19a6,0x19a7,0x19a8,0x19a9,0x19c1,0x19c2,0x19c3,
1.505 + 0x19c4,0x19c5,0x19c6,0x19c7,0x19d0,0x19d1,0x19d2,0x19d3,0x19d4,0x19d5,
1.506 + 0x19d6,0x19d7,0x19d8,0x19d9,0x1a00,0x1a01,0x1a02,0x1a03,0x1a04,0x1a05,
1.507 + 0x1a06,0x1a07,0x1a08,0x1a09,0x1a0a,0x1a0b,0x1a0c,0x1a0d,0x1a0e,0x1a0f,
1.508 + 0x1a10,0x1a11,0x1a12,0x1a13,0x1a14,0x1a15,0x1a16,0x1a1e,0x1a1f,0x1b05,
1.509 + 0x1b06,0x1b07,0x1b08,0x1b09,0x1b0a,0x1b0b,0x1b0c,0x1b0d,0x1b0e,0x1b0f,
1.510 + 0x1b10,0x1b11,0x1b12,0x1b13,0x1b14,0x1b15,0x1b16,0x1b17,0x1b18,0x1b19,
1.511 + 0x1b1a,0x1b1b,0x1b1c,0x1b1d,0x1b1e,0x1b1f,0x1b20,0x1b21,0x1b22,0x1b23,
1.512 + 0x1b24,0x1b25,0x1b26,0x1b27,0x1b28,0x1b29,0x1b2a,0x1b2b,0x1b2c,0x1b2d,
1.513 + 0x1b2e,0x1b2f,0x1b30,0x1b31,0x1b32,0x1b33,0x1b45,0x1b46,0x1b47,0x1b48,
1.514 + 0x1b49,0x1b4a,0x1b4b,0x1b50,0x1b51,0x1b52,0x1b53,0x1b54,0x1b55,0x1b56,
1.515 + 0x1b57,0x1b58,0x1b59,0x1b5a,0x1b5b,0x1b5c,0x1b5d,0x1b5e,0x1b5f,0x1b60,
1.516 + 0x1b61,0x1b62,0x1b63,0x1b64,0x1b65,0x1b66,0x1b67,0x1b68,0x1b69,0x1b6a,
1.517 + 0x1b74,0x1b75,0x1b76,0x1b77,0x1b78,0x1b79,0x1b7a,0x1b7b,0x1b7c,0x1d00,
1.518 + 0x1d01,0x1d02,0x1d03,0x1d04,0x1d05,0x1d06,0x1d07,0x1d08,0x1d09,0x1d0a,
1.519 + 0x1d0b,0x1d0c,0x1d0d,0x1d0e,0x1d0f,0x1d10,0x1d11,0x1d12,0x1d13,0x1d14,
1.520 + 0x1d15,0x1d16,0x1d17,0x1d18,0x1d19,0x1d1a,0x1d1b,0x1d1c,0x1d1d,0x1d1e,
1.521 + 0x1d1f,0x1d20,0x1d21,0x1d22,0x1d23,0x1d24,0x1d25,0x1d26,0x1d27,0x1d28,
1.522 + 0x1d29,0x1d2a,0x1d2b,0x1d2c,0x1d2d,0x1d2e,0x1d2f,0x1d30,0x1d31,0x1d32,
1.523 + 0x1d33,0x1d34,0x1d35,0x1d36,0x1d37,0x1d38,0x1d39,0x1d3a,0x1d3b,0x1d3c,
1.524 + 0x1d3d,0x1d3e,0x1d3f,0x1d40,0x1d41,0x1d42,0x1d43,0x1d44,0x1d45,0x1d46,
1.525 + 0x1d47,0x1d48,0x1d49,0x1d4a,0x1d4b,0x1d4c,0x1d4d,0x1d4e,0x1d4f,0x1d50,
1.526 + 0x1d51,0x1d52,0x1d53,0x1d54,0x1d55,0x1d56,0x1d57,0x1d58,0x1d59,0x1d5a,
1.527 + 0x1d5b,0x1d5c,0x1d5d,0x1d5e,0x1d5f,0x1d60,0x1d61,0x1d62,0x1d63,0x1d64,
1.528 + 0x1d65,0x1d66,0x1d67,0x1d68,0x1d69,0x1d6a,0x1d6b,0x1d6c,0x1d6d,0x1d6e,
1.529 + 0x1d6f,0x1d70,0x1d71,0x1d72,0x1d73,0x1d74,0x1d75,0x1d76,0x1d77,0x1d78,
1.530 + 0x1d79,0x1d7a,0x1d7b,0x1d7c,0x1d7d,0x1d7e,0x1d7f,0x1d80,0x1d81,0x1d82,
1.531 + 0x1d83,0x1d84,0x1d85,0x1d86,0x1d87,0x1d88,0x1d89,0x1d8a,0x1d8b,0x1d8c,
1.532 + 0x1d8d,0x1d8e,0x1d8f,0x1d90,0x1d91,0x1d92,0x1d93,0x1d94,0x1d95,0x1d96,
1.533 + 0x1d97,0x1d98,0x1d99,0x1d9a,0x1d9b,0x1d9c,0x1d9d,0x1d9e,0x1d9f,0x1da0,
1.534 + 0x1da1,0x1da2,0x1da3,0x1da4,0x1da5,0x1da6,0x1da7,0x1da8,0x1da9,0x1daa,
1.535 + 0x1dab,0x1dac,0x1dad,0x1dae,0x1daf,0x1db0,0x1db1,0x1db2,0x1db3,0x1db4,
1.536 + 0x1db5,0x1db6,0x1db7,0x1db8,0x1db9,0x1dba,0x1dbb,0x1dbc,0x1dbd,0x1dbe,
1.537 + 0x1dbf,0x1e00,0x1e01,0x1e02,0x1e03,0x1e04,0x1e05,0x1e06,0x1e07,0x1e08,
1.538 + 0x1e09,0x1e0a,0x1e0b,0x1e0c,0x1e0d,0x1e0e,0x1e0f,0x1e10,0x1e11,0x1e12,
1.539 + 0x1e13,0x1e14,0x1e15,0x1e16,0x1e17,0x1e18,0x1e19,0x1e1a,0x1e1b,0x1e1c,
1.540 + 0x1e1d,0x1e1e,0x1e1f,0x1e20,0x1e21,0x1e22,0x1e23,0x1e24,0x1e25,0x1e26,
1.541 + 0x1e27,0x1e28,0x1e29,0x1e2a,0x1e2b,0x1e2c,0x1e2d,0x1e2e,0x1e2f,0x1e30,
1.542 + 0x1e31,0x1e32,0x1e33,0x1e34,0x1e35,0x1e36,0x1e37,0x1e38,0x1e39,0x1e3a,
1.543 + 0x1e3b,0x1e3c,0x1e3d,0x1e3e,0x1e3f,0x1e40,0x1e41,0x1e42,0x1e43,0x1e44,
1.544 + 0x1e45,0x1e46,0x1e47,0x1e48,0x1e49,0x1e4a,0x1e4b,0x1e4c,0x1e4d,0x1e4e,
1.545 + 0x1e4f,0x1e50,0x1e51,0x1e52,0x1e53,0x1e54,0x1e55,0x1e56,0x1e57,0x1e58,
1.546 + 0x1e59,0x1e5a,0x1e5b,0x1e5c,0x1e5d,0x1e5e,0x1e5f,0x1e60,0x1e61,0x1e62,
1.547 + 0x1e63,0x1e64,0x1e65,0x1e66,0x1e67,0x1e68,0x1e69,0x1e6a,0x1e6b,0x1e6c,
1.548 + 0x1e6d,0x1e6e,0x1e6f,0x1e70,0x1e71,0x1e72,0x1e73,0x1e74,0x1e75,0x1e76,
1.549 + 0x1e77,0x1e78,0x1e79,0x1e7a,0x1e7b,0x1e7c,0x1e7d,0x1e7e,0x1e7f,0x1e80,
1.550 + 0x1e81,0x1e82,0x1e83,0x1e84,0x1e85,0x1e86,0x1e87,0x1e88,0x1e89,0x1e8a,
1.551 + 0x1e8b,0x1e8c,0x1e8d,0x1e8e,0x1e8f,0x1e90,0x1e91,0x1e92,0x1e93,0x1e94,
1.552 + 0x1e95,0x1e96,0x1e97,0x1e98,0x1e99,0x1e9a,0x1e9b,0x1ea0,0x1ea1,0x1ea2,
1.553 + 0x1ea3,0x1ea4,0x1ea5,0x1ea6,0x1ea7,0x1ea8,0x1ea9,0x1eaa,0x1eab,0x1eac,
1.554 + 0x1ead,0x1eae,0x1eaf,0x1eb0,0x1eb1,0x1eb2,0x1eb3,0x1eb4,0x1eb5,0x1eb6,
1.555 + 0x1eb7,0x1eb8,0x1eb9,0x1eba,0x1ebb,0x1ebc,0x1ebd,0x1ebe,0x1ebf,0x1ec0,
1.556 + 0x1ec1,0x1ec2,0x1ec3,0x1ec4,0x1ec5,0x1ec6,0x1ec7,0x1ec8,0x1ec9,0x1eca,
1.557 + 0x1ecb,0x1ecc,0x1ecd,0x1ece,0x1ecf,0x1ed0,0x1ed1,0x1ed2,0x1ed3,0x1ed4,
1.558 + 0x1ed5,0x1ed6,0x1ed7,0x1ed8,0x1ed9,0x1eda,0x1edb,0x1edc,0x1edd,0x1ede,
1.559 + 0x1edf,0x1ee0,0x1ee1,0x1ee2,0x1ee3,0x1ee4,0x1ee5,0x1ee6,0x1ee7,0x1ee8,
1.560 + 0x1ee9,0x1eea,0x1eeb,0x1eec,0x1eed,0x1eee,0x1eef,0x1ef0,0x1ef1,0x1ef2,
1.561 + 0x1ef3,0x1ef4,0x1ef5,0x1ef6,0x1ef7,0x1ef8,0x1ef9,0x1f00,0x1f01,0x1f02,
1.562 + 0x1f03,0x1f04,0x1f05,0x1f06,0x1f07,0x1f08,0x1f09,0x1f0a,0x1f0b,0x1f0c,
1.563 + 0x1f0d,0x1f0e,0x1f0f,0x1f10,0x1f11,0x1f12,0x1f13,0x1f14,0x1f15,0x1f18,
1.564 + 0x1f19,0x1f1a,0x1f1b,0x1f1c,0x1f1d,0x1f20,0x1f21,0x1f22,0x1f23,0x1f24,
1.565 + 0x1f25,0x1f26,0x1f27,0x1f28,0x1f29,0x1f2a,0x1f2b,0x1f2c,0x1f2d,0x1f2e,
1.566 + 0x1f2f,0x1f30,0x1f31,0x1f32,0x1f33,0x1f34,0x1f35,0x1f36,0x1f37,0x1f38,
1.567 + 0x1f39,0x1f3a,0x1f3b,0x1f3c,0x1f3d,0x1f3e,0x1f3f,0x1f40,0x1f41,0x1f42,
1.568 + 0x1f43,0x1f44,0x1f45,0x1f48,0x1f49,0x1f4a,0x1f4b,0x1f4c,0x1f4d,0x1f50,
1.569 + 0x1f51,0x1f52,0x1f53,0x1f54,0x1f55,0x1f56,0x1f57,0x1f59,0x1f5b,0x1f5d,
1.570 + 0x1f5f,0x1f60,0x1f61,0x1f62,0x1f63,0x1f64,0x1f65,0x1f66,0x1f67,0x1f68,
1.571 + 0x1f69,0x1f6a,0x1f6b,0x1f6c,0x1f6d,0x1f6e,0x1f6f,0x1f70,0x1f71,0x1f72,
1.572 + 0x1f73,0x1f74,0x1f75,0x1f76,0x1f77,0x1f78,0x1f79,0x1f7a,0x1f7b,0x1f7c,
1.573 + 0x1f7d,0x1f80,0x1f81,0x1f82,0x1f83,0x1f84,0x1f85,0x1f86,0x1f87,0x1f88,
1.574 + 0x1f89,0x1f8a,0x1f8b,0x1f8c,0x1f8d,0x1f8e,0x1f8f,0x1f90,0x1f91,0x1f92,
1.575 + 0x1f93,0x1f94,0x1f95,0x1f96,0x1f97,0x1f98,0x1f99,0x1f9a,0x1f9b,0x1f9c,
1.576 + 0x1f9d,0x1f9e,0x1f9f,0x1fa0,0x1fa1,0x1fa2,0x1fa3,0x1fa4,0x1fa5,0x1fa6,
1.577 + 0x1fa7,0x1fa8,0x1fa9,0x1faa,0x1fab,0x1fac,0x1fad,0x1fae,0x1faf,0x1fb0,
1.578 + 0x1fb1,0x1fb2,0x1fb3,0x1fb4,0x1fb6,0x1fb7,0x1fb8,0x1fb9,0x1fba,0x1fbb,
1.579 + 0x1fbc,0x1fbe,0x1fc2,0x1fc3,0x1fc4,0x1fc6,0x1fc7,0x1fc8,0x1fc9,0x1fca,
1.580 + 0x1fcb,0x1fcc,0x1fd0,0x1fd1,0x1fd2,0x1fd3,0x1fd6,0x1fd7,0x1fd8,0x1fd9,
1.581 + 0x1fda,0x1fdb,0x1fe0,0x1fe1,0x1fe2,0x1fe3,0x1fe4,0x1fe5,0x1fe6,0x1fe7,
1.582 + 0x1fe8,0x1fe9,0x1fea,0x1feb,0x1fec,0x1ff2,0x1ff3,0x1ff4,0x1ff6,0x1ff7,
1.583 + 0x1ff8,0x1ff9,0x1ffa,0x1ffb,0x1ffc,0x200e,0x2071,0x207f,0x2090,0x2091,
1.584 + 0x2092,0x2093,0x2094,0x2102,0x2107,0x210a,0x210b,0x210c,0x210d,0x210e,
1.585 + 0x210f,0x2110,0x2111,0x2112,0x2113,0x2115,0x2119,0x211a,0x211b,0x211c,
1.586 + 0x211d,0x2124,0x2126,0x2128,0x212a,0x212b,0x212c,0x212d,0x212f,0x2130,
1.587 + 0x2131,0x2132,0x2133,0x2134,0x2135,0x2136,0x2137,0x2138,0x2139,0x213c,
1.588 + 0x213d,0x213e,0x213f,0x2145,0x2146,0x2147,0x2148,0x2149,0x214e,0x2160,
1.589 + 0x2161,0x2162,0x2163,0x2164,0x2165,0x2166,0x2167,0x2168,0x2169,0x216a,
1.590 + 0x216b,0x216c,0x216d,0x216e,0x216f,0x2170,0x2171,0x2172,0x2173,0x2174,
1.591 + 0x2175,0x2176,0x2177,0x2178,0x2179,0x217a,0x217b,0x217c,0x217d,0x217e,
1.592 + 0x217f,0x2180,0x2181,0x2182,0x2183,0x2184,0x2336,0x2337,0x2338,0x2339,
1.593 + 0x233a,0x233b,0x233c,0x233d,0x233e,0x233f,0x2340,0x2341,0x2342,0x2343,
1.594 + 0x2344,0x2345,0x2346,0x2347,0x2348,0x2349,0x234a,0x234b,0x234c,0x234d,
1.595 + 0x234e,0x234f,0x2350,0x2351,0x2352,0x2353,0x2354,0x2355,0x2356,0x2357,
1.596 + 0x2358,0x2359,0x235a,0x235b,0x235c,0x235d,0x235e,0x235f,0x2360,0x2361,
1.597 + 0x2362,0x2363,0x2364,0x2365,0x2366,0x2367,0x2368,0x2369,0x236a,0x236b,
1.598 + 0x236c,0x236d,0x236e,0x236f,0x2370,0x2371,0x2372,0x2373,0x2374,0x2375,
1.599 + 0x2376,0x2377,0x2378,0x2379,0x237a,0x2395,0x249c,0x249d,0x249e,0x249f,
1.600 + 0x24a0,0x24a1,0x24a2,0x24a3,0x24a4,0x24a5,0x24a6,0x24a7,0x24a8,0x24a9,
1.601 + 0x24aa,0x24ab,0x24ac,0x24ad,0x24ae,0x24af,0x24b0,0x24b1,0x24b2,0x24b3,
1.602 + 0x24b4,0x24b5,0x24b6,0x24b7,0x24b8,0x24b9,0x24ba,0x24bb,0x24bc,0x24bd,
1.603 + 0x24be,0x24bf,0x24c0,0x24c1,0x24c2,0x24c3,0x24c4,0x24c5,0x24c6,0x24c7,
1.604 + 0x24c8,0x24c9,0x24ca,0x24cb,0x24cc,0x24cd,0x24ce,0x24cf,0x24d0,0x24d1,
1.605 + 0x24d2,0x24d3,0x24d4,0x24d5,0x24d6,0x24d7,0x24d8,0x24d9,0x24da,0x24db,
1.606 + 0x24dc,0x24dd,0x24de,0x24df,0x24e0,0x24e1,0x24e2,0x24e3,0x24e4,0x24e5,
1.607 + 0x24e6,0x24e7,0x24e8,0x24e9,0x26ac,0x2800,0x2801,0x2802,0x2803,0x2804,
1.608 + 0x2805,0x2806,0x2807,0x2808,0x2809,0x280a,0x280b,0x280c,0x280d,0x280e,
1.609 + 0x280f,0x2810,0x2811,0x2812,0x2813,0x2814,0x2815,0x2816,0x2817,0x2818,
1.610 + 0x2819,0x281a,0x281b,0x281c,0x281d,0x281e,0x281f,0x2820,0x2821,0x2822,
1.611 + 0x2823,0x2824,0x2825,0x2826,0x2827,0x2828,0x2829,0x282a,0x282b,0x282c,
1.612 + 0x282d,0x282e,0x282f,0x2830,0x2831,0x2832,0x2833,0x2834,0x2835,0x2836,
1.613 + 0x2837,0x2838,0x2839,0x283a,0x283b,0x283c,0x283d,0x283e,0x283f,0x2840,
1.614 + 0x2841,0x2842,0x2843,0x2844,0x2845,0x2846,0x2847,0x2848,0x2849,0x284a,
1.615 + 0x284b,0x284c,0x284d,0x284e,0x284f,0x2850,0x2851,0x2852,0x2853,0x2854,
1.616 + 0x2855,0x2856,0x2857,0x2858,0x2859,0x285a,0x285b,0x285c,0x285d,0x285e,
1.617 + 0x285f,0x2860,0x2861,0x2862,0x2863,0x2864,0x2865,0x2866,0x2867,0x2868,
1.618 + 0x2869,0x286a,0x286b,0x286c,0x286d,0x286e,0x286f,0x2870,0x2871,0x2872,
1.619 + 0x2873,0x2874,0x2875,0x2876,0x2877,0x2878,0x2879,0x287a,0x287b,0x287c,
1.620 + 0x287d,0x287e,0x287f,0x2880,0x2881,0x2882,0x2883,0x2884,0x2885,0x2886,
1.621 + 0x2887,0x2888,0x2889,0x288a,0x288b,0x288c,0x288d,0x288e,0x288f,0x2890,
1.622 + 0x2891,0x2892,0x2893,0x2894,0x2895,0x2896,0x2897,0x2898,0x2899,0x289a,
1.623 + 0x289b,0x289c,0x289d,0x289e,0x289f,0x28a0,0x28a1,0x28a2,0x28a3,0x28a4,
1.624 + 0x28a5,0x28a6,0x28a7,0x28a8,0x28a9,0x28aa,0x28ab,0x28ac,0x28ad,0x28ae,
1.625 + 0x28af,0x28b0,0x28b1,0x28b2,0x28b3,0x28b4,0x28b5,0x28b6,0x28b7,0x28b8,
1.626 + 0x28b9,0x28ba,0x28bb,0x28bc,0x28bd,0x28be,0x28bf,0x28c0,0x28c1,0x28c2,
1.627 + 0x28c3,0x28c4,0x28c5,0x28c6,0x28c7,0x28c8,0x28c9,0x28ca,0x28cb,0x28cc,
1.628 + 0x28cd,0x28ce,0x28cf,0x28d0,0x28d1,0x28d2,0x28d3,0x28d4,0x28d5,0x28d6,
1.629 + 0x28d7,0x28d8,0x28d9,0x28da,0x28db,0x28dc,0x28dd,0x28de,0x28df,0x28e0,
1.630 + 0x28e1,0x28e2,0x28e3,0x28e4,0x28e5,0x28e6,0x28e7,0x28e8,0x28e9,0x28ea,
1.631 + 0x28eb,0x28ec,0x28ed,0x28ee,0x28ef,0x28f0,0x28f1,0x28f2,0x28f3,0x28f4,
1.632 + 0x28f5,0x28f6,0x28f7,0x28f8,0x28f9,0x28fa,0x28fb,0x28fc,0x28fd,0x28fe,
1.633 + 0x28ff,0x2c00,0x2c01,0x2c02,0x2c03,0x2c04,0x2c05,0x2c06,0x2c07,0x2c08,
1.634 + 0x2c09,0x2c0a,0x2c0b,0x2c0c,0x2c0d,0x2c0e,0x2c0f,0x2c10,0x2c11,0x2c12,
1.635 + 0x2c13,0x2c14,0x2c15,0x2c16,0x2c17,0x2c18,0x2c19,0x2c1a,0x2c1b,0x2c1c,
1.636 + 0x2c1d,0x2c1e,0x2c1f,0x2c20,0x2c21,0x2c22,0x2c23,0x2c24,0x2c25,0x2c26,
1.637 + 0x2c27,0x2c28,0x2c29,0x2c2a,0x2c2b,0x2c2c,0x2c2d,0x2c2e,0x2c30,0x2c31,
1.638 + 0x2c32,0x2c33,0x2c34,0x2c35,0x2c36,0x2c37,0x2c38,0x2c39,0x2c3a,0x2c3b,
1.639 + 0x2c3c,0x2c3d,0x2c3e,0x2c3f,0x2c40,0x2c41,0x2c42,0x2c43,0x2c44,0x2c45,
1.640 + 0x2c46,0x2c47,0x2c48,0x2c49,0x2c4a,0x2c4b,0x2c4c,0x2c4d,0x2c4e,0x2c4f,
1.641 + 0x2c50,0x2c51,0x2c52,0x2c53,0x2c54,0x2c55,0x2c56,0x2c57,0x2c58,0x2c59,
1.642 + 0x2c5a,0x2c5b,0x2c5c,0x2c5d,0x2c5e,0x2c60,0x2c61,0x2c62,0x2c63,0x2c64,
1.643 + 0x2c65,0x2c66,0x2c67,0x2c68,0x2c69,0x2c6a,0x2c6b,0x2c6c,0x2c74,0x2c75,
1.644 + 0x2c76,0x2c77,0x2c80,0x2c81,0x2c82,0x2c83,0x2c84,0x2c85,0x2c86,0x2c87,
1.645 + 0x2c88,0x2c89,0x2c8a,0x2c8b,0x2c8c,0x2c8d,0x2c8e,0x2c8f,0x2c90,0x2c91,
1.646 + 0x2c92,0x2c93,0x2c94,0x2c95,0x2c96,0x2c97,0x2c98,0x2c99,0x2c9a,0x2c9b,
1.647 + 0x2c9c,0x2c9d,0x2c9e,0x2c9f,0x2ca0,0x2ca1,0x2ca2,0x2ca3,0x2ca4,0x2ca5,
1.648 + 0x2ca6,0x2ca7,0x2ca8,0x2ca9,0x2caa,0x2cab,0x2cac,0x2cad,0x2cae,0x2caf,
1.649 + 0x2cb0,0x2cb1,0x2cb2,0x2cb3,0x2cb4,0x2cb5,0x2cb6,0x2cb7,0x2cb8,0x2cb9,
1.650 + 0x2cba,0x2cbb,0x2cbc,0x2cbd,0x2cbe,0x2cbf,0x2cc0,0x2cc1,0x2cc2,0x2cc3,
1.651 + 0x2cc4,0x2cc5,0x2cc6,0x2cc7,0x2cc8,0x2cc9,0x2cca,0x2ccb,0x2ccc,0x2ccd,
1.652 + 0x2cce,0x2ccf,0x2cd0,0x2cd1,0x2cd2,0x2cd3,0x2cd4,0x2cd5,0x2cd6,0x2cd7,
1.653 + 0x2cd8,0x2cd9,0x2cda,0x2cdb,0x2cdc,0x2cdd,0x2cde,0x2cdf,0x2ce0,0x2ce1,
1.654 + 0x2ce2,0x2ce3,0x2ce4,0x2d00,0x2d01,0x2d02,0x2d03,0x2d04,0x2d05,0x2d06,
1.655 + 0x2d07,0x2d08,0x2d09,0x2d0a,0x2d0b,0x2d0c,0x2d0d,0x2d0e,0x2d0f,0x2d10,
1.656 + 0x2d11,0x2d12,0x2d13,0x2d14,0x2d15,0x2d16,0x2d17,0x2d18,0x2d19,0x2d1a,
1.657 + 0x2d1b,0x2d1c,0x2d1d,0x2d1e,0x2d1f,0x2d20,0x2d21,0x2d22,0x2d23,0x2d24,
1.658 + 0x2d25,0x2d30,0x2d31,0x2d32,0x2d33,0x2d34,0x2d35,0x2d36,0x2d37,0x2d38,
1.659 + 0x2d39,0x2d3a,0x2d3b,0x2d3c,0x2d3d,0x2d3e,0x2d3f,0x2d40,0x2d41,0x2d42,
1.660 + 0x2d43,0x2d44,0x2d45,0x2d46,0x2d47,0x2d48,0x2d49,0x2d4a,0x2d4b,0x2d4c,
1.661 + 0x2d4d,0x2d4e,0x2d4f,0x2d50,0x2d51,0x2d52,0x2d53,0x2d54,0x2d55,0x2d56,
1.662 + 0x2d57,0x2d58,0x2d59,0x2d5a,0x2d5b,0x2d5c,0x2d5d,0x2d5e,0x2d5f,0x2d60,
1.663 + 0x2d61,0x2d62,0x2d63,0x2d64,0x2d65,0x2d6f,0x2d80,0x2d81,0x2d82,0x2d83,
1.664 + 0x2d84,0x2d85,0x2d86,0x2d87,0x2d88,0x2d89,0x2d8a,0x2d8b,0x2d8c,0x2d8d,
1.665 + 0x2d8e,0x2d8f,0x2d90,0x2d91,0x2d92,0x2d93,0x2d94,0x2d95,0x2d96,0x2da0,
1.666 + 0x2da1,0x2da2,0x2da3,0x2da4,0x2da5,0x2da6,0x2da8,0x2da9,0x2daa,0x2dab,
1.667 + 0x2dac,0x2dad,0x2dae,0x2db0,0x2db1,0x2db2,0x2db3,0x2db4,0x2db5,0x2db6,
1.668 + 0x2db8,0x2db9,0x2dba,0x2dbb,0x2dbc,0x2dbd,0x2dbe,0x2dc0,0x2dc1,0x2dc2,
1.669 + 0x2dc3,0x2dc4,0x2dc5,0x2dc6,0x2dc8,0x2dc9,0x2dca,0x2dcb,0x2dcc,0x2dcd,
1.670 + 0x2dce,0x2dd0,0x2dd1,0x2dd2,0x2dd3,0x2dd4,0x2dd5,0x2dd6,0x2dd8,0x2dd9,
1.671 + 0x2dda,0x2ddb,0x2ddc,0x2ddd,0x2dde,0x3005,0x3006,0x3007,0x3021,0x3022,
1.672 + 0x3023,0x3024,0x3025,0x3026,0x3027,0x3028,0x3029,0x3031,0x3032,0x3033,
1.673 + 0x3034,0x3035,0x3038,0x3039,0x303a,0x303b,0x303c,0x3041,0x3042,0x3043,
1.674 + 0x3044,0x3045,0x3046,0x3047,0x3048,0x3049,0x304a,0x304b,0x304c,0x304d,
1.675 + 0x304e,0x304f,0x3050,0x3051,0x3052,0x3053,0x3054,0x3055,0x3056,0x3057,
1.676 + 0x3058,0x3059,0x305a,0x305b,0x305c,0x305d,0x305e,0x305f,0x3060,0x3061,
1.677 + 0x3062,0x3063,0x3064,0x3065,0x3066,0x3067,0x3068,0x3069,0x306a,0x306b,
1.678 + 0x306c,0x306d,0x306e,0x306f,0x3070,0x3071,0x3072,0x3073,0x3074,0x3075,
1.679 + 0x3076,0x3077,0x3078,0x3079,0x307a,0x307b,0x307c,0x307d,0x307e,0x307f,
1.680 + 0x3080,0x3081,0x3082,0x3083,0x3084,0x3085,0x3086,0x3087,0x3088,0x3089,
1.681 + 0x308a,0x308b,0x308c,0x308d,0x308e,0x308f,0x3090,0x3091,0x3092,0x3093,
1.682 + 0x3094,0x3095,0x3096,0x309d,0x309e,0x309f,0x30a1,0x30a2,0x30a3,0x30a4,
1.683 + 0x30a5,0x30a6,0x30a7,0x30a8,0x30a9,0x30aa,0x30ab,0x30ac,0x30ad,0x30ae,
1.684 + 0x30af,0x30b0,0x30b1,0x30b2,0x30b3,0x30b4,0x30b5,0x30b6,0x30b7,0x30b8,
1.685 + 0x30b9,0x30ba,0x30bb,0x30bc,0x30bd,0x30be,0x30bf,0x30c0,0x30c1,0x30c2,
1.686 + 0x30c3,0x30c4,0x30c5,0x30c6,0x30c7,0x30c8,0x30c9,0x30ca,0x30cb,0x30cc,
1.687 + 0x30cd,0x30ce,0x30cf,0x30d0,0x30d1,0x30d2,0x30d3,0x30d4,0x30d5,0x30d6,
1.688 + 0x30d7,0x30d8,0x30d9,0x30da,0x30db,0x30dc,0x30dd,0x30de,0x30df,0x30e0,
1.689 + 0x30e1,0x30e2,0x30e3,0x30e4,0x30e5,0x30e6,0x30e7,0x30e8,0x30e9,0x30ea,
1.690 + 0x30eb,0x30ec,0x30ed,0x30ee,0x30ef,0x30f0,0x30f1,0x30f2,0x30f3,0x30f4,
1.691 + 0x30f5,0x30f6,0x30f7,0x30f8,0x30f9,0x30fa,0x30fc,0x30fd,0x30fe,0x30ff,
1.692 + 0x3105,0x3106,0x3107,0x3108,0x3109,0x310a,0x310b,0x310c,0x310d,0x310e,
1.693 + 0x310f,0x3110,0x3111,0x3112,0x3113,0x3114,0x3115,0x3116,0x3117,0x3118,
1.694 + 0x3119,0x311a,0x311b,0x311c,0x311d,0x311e,0x311f,0x3120,0x3121,0x3122,
1.695 + 0x3123,0x3124,0x3125,0x3126,0x3127,0x3128,0x3129,0x312a,0x312b,0x312c,
1.696 + 0x3131,0x3132,0x3133,0x3134,0x3135,0x3136,0x3137,0x3138,0x3139,0x313a,
1.697 + 0x313b,0x313c,0x313d,0x313e,0x313f,0x3140,0x3141,0x3142,0x3143,0x3144,
1.698 + 0x3145,0x3146,0x3147,0x3148,0x3149,0x314a,0x314b,0x314c,0x314d,0x314e,
1.699 + 0x314f,0x3150,0x3151,0x3152,0x3153,0x3154,0x3155,0x3156,0x3157,0x3158,
1.700 + 0x3159,0x315a,0x315b,0x315c,0x315d,0x315e,0x315f,0x3160,0x3161,0x3162,
1.701 + 0x3163,0x3164,0x3165,0x3166,0x3167,0x3168,0x3169,0x316a,0x316b,0x316c,
1.702 + 0x316d,0x316e,0x316f,0x3170,0x3171,0x3172,0x3173,0x3174,0x3175,0x3176,
1.703 + 0x3177,0x3178,0x3179,0x317a,0x317b,0x317c,0x317d,0x317e,0x317f,0x3180,
1.704 + 0x3181,0x3182,0x3183,0x3184,0x3185,0x3186,0x3187,0x3188,0x3189,0x318a,
1.705 + 0x318b,0x318c,0x318d,0x318e,0x3190,0x3191,0x3192,0x3193,0x3194,0x3195,
1.706 + 0x3196,0x3197,0x3198,0x3199,0x319a,0x319b,0x319c,0x319d,0x319e,0x319f,
1.707 + 0x31a0,0x31a1,0x31a2,0x31a3,0x31a4,0x31a5,0x31a6,0x31a7,0x31a8,0x31a9,
1.708 + 0x31aa,0x31ab,0x31ac,0x31ad,0x31ae,0x31af,0x31b0,0x31b1,0x31b2,0x31b3,
1.709 + 0x31b4,0x31b5,0x31b6,0x31b7,0x31f0,0x31f1,0x31f2,0x31f3,0x31f4,0x31f5,
1.710 + 0x31f6,0x31f7,0x31f8,0x31f9,0x31fa,0x31fb,0x31fc,0x31fd,0x31fe,0x31ff,
1.711 + 0x3200,0x3201,0x3202,0x3203,0x3204,0x3205,0x3206,0x3207,0x3208,0x3209,
1.712 + 0x320a,0x320b,0x320c,0x320d,0x320e,0x320f,0x3210,0x3211,0x3212,0x3213,
1.713 + 0x3214,0x3215,0x3216,0x3217,0x3218,0x3219,0x321a,0x321b,0x321c,0x3220,
1.714 + 0x3221,0x3222,0x3223,0x3224,0x3225,0x3226,0x3227,0x3228,0x3229,0x322a,
1.715 + 0x322b,0x322c,0x322d,0x322e,0x322f,0x3230,0x3231,0x3232,0x3233,0x3234,
1.716 + 0x3235,0x3236,0x3237,0x3238,0x3239,0x323a,0x323b,0x323c,0x323d,0x323e,
1.717 + 0x323f,0x3240,0x3241,0x3242,0x3243,0x3260,0x3261,0x3262,0x3263,0x3264,
1.718 + 0x3265,0x3266,0x3267,0x3268,0x3269,0x326a,0x326b,0x326c,0x326d,0x326e,
1.719 + 0x326f,0x3270,0x3271,0x3272,0x3273,0x3274,0x3275,0x3276,0x3277,0x3278,
1.720 + 0x3279,0x327a,0x327b,0x327f,0x3280,0x3281,0x3282,0x3283,0x3284,0x3285,
1.721 + 0x3286,0x3287,0x3288,0x3289,0x328a,0x328b,0x328c,0x328d,0x328e,0x328f,
1.722 + 0x3290,0x3291,0x3292,0x3293,0x3294,0x3295,0x3296,0x3297,0x3298,0x3299,
1.723 + 0x329a,0x329b,0x329c,0x329d,0x329e,0x329f,0x32a0,0x32a1,0x32a2,0x32a3,
1.724 + 0x32a4,0x32a5,0x32a6,0x32a7,0x32a8,0x32a9,0x32aa,0x32ab,0x32ac,0x32ad,
1.725 + 0x32ae,0x32af,0x32b0,0x32c0,0x32c1,0x32c2,0x32c3,0x32c4,0x32c5,0x32c6,
1.726 + 0x32c7,0x32c8,0x32c9,0x32ca,0x32cb,0x32d0,0x32d1,0x32d2,0x32d3,0x32d4,
1.727 + 0x32d5,0x32d6,0x32d7,0x32d8,0x32d9,0x32da,0x32db,0x32dc,0x32dd,0x32de,
1.728 + 0x32df,0x32e0,0x32e1,0x32e2,0x32e3,0x32e4,0x32e5,0x32e6,0x32e7,0x32e8,
1.729 + 0x32e9,0x32ea,0x32eb,0x32ec,0x32ed,0x32ee,0x32ef,0x32f0,0x32f1,0x32f2,
1.730 + 0x32f3,0x32f4,0x32f5,0x32f6,0x32f7,0x32f8,0x32f9,0x32fa,0x32fb,0x32fc,
1.731 + 0x32fd,0x32fe,0x3300,0x3301,0x3302,0x3303,0x3304,0x3305,0x3306,0x3307,
1.732 + 0x3308,0x3309,0x330a,0x330b,0x330c,0x330d,0x330e,0x330f,0x3310,0x3311,
1.733 + 0x3312,0x3313,0x3314,0x3315,0x3316,0x3317,0x3318,0x3319,0x331a,0x331b,
1.734 + 0x331c,0x331d,0x331e,0x331f,0x3320,0x3321,0x3322,0x3323,0x3324,0x3325,
1.735 + 0x3326,0x3327,0x3328,0x3329,0x332a,0x332b,0x332c,0x332d,0x332e,0x332f,
1.736 + 0x3330,0x3331,0x3332,0x3333,0x3334,0x3335,0x3336,0x3337,0x3338,0x3339,
1.737 + 0x333a,0x333b,0x333c,0x333d,0x333e,0x333f,0x3340,0x3341,0x3342,0x3343,
1.738 + 0x3344,0x3345,0x3346,0x3347,0x3348,0x3349,0x334a,0x334b,0x334c,0x334d,
1.739 + 0x334e,0x334f,0x3350,0x3351,0x3352,0x3353,0x3354,0x3355,0x3356,0x3357,
1.740 + 0x3358,0x3359,0x335a,0x335b,0x335c,0x335d,0x335e,0x335f,0x3360,0x3361,
1.741 + 0x3362,0x3363,0x3364,0x3365,0x3366,0x3367,0x3368,0x3369,0x336a,0x336b,
1.742 + 0x336c,0x336d,0x336e,0x336f,0x3370,0x3371,0x3372,0x3373,0x3374,0x3375,
1.743 + 0x3376,0x337b,0x337c,0x337d,0x337e,0x337f,0x3380,0x3381,0x3382,0x3383,
1.744 + 0x3384,0x3385,0x3386,0x3387,0x3388,0x3389,0x338a,0x338b,0x338c,0x338d,
1.745 + 0x338e,0x338f,0x3390,0x3391,0x3392,0x3393,0x3394,0x3395,0x3396,0x3397,
1.746 + 0x3398,0x3399,0x339a,0x339b,0x339c,0x339d,0x339e,0x339f,0x33a0,0x33a1,
1.747 + 0x33a2,0x33a3,0x33a4,0x33a5,0x33a6,0x33a7,0x33a8,0x33a9,0x33aa,0x33ab,
1.748 + 0x33ac,0x33ad,0x33ae,0x33af,0x33b0,0x33b1,0x33b2,0x33b3,0x33b4,0x33b5,
1.749 + 0x33b6,0x33b7,0x33b8,0x33b9,0x33ba,0x33bb,0x33bc,0x33bd,0x33be,0x33bf,
1.750 + 0x33c0,0x33c1,0x33c2,0x33c3,0x33c4,0x33c5,0x33c6,0x33c7,0x33c8,0x33c9,
1.751 + 0x33ca,0x33cb,0x33cc,0x33cd,0x33ce,0x33cf,0x33d0,0x33d1,0x33d2,0x33d3,
1.752 + 0x33d4,0x33d5,0x33d6,0x33d7,0x33d8,0x33d9,0x33da,0x33db,0x33dc,0x33dd,
1.753 + 0x33e0,0x33e1,0x33e2,0x33e3,0x33e4,0x33e5,0x33e6,0x33e7,0x33e8,0x33e9,
1.754 + 0x33ea,0x33eb,0x33ec,0x33ed,0x33ee,0x33ef,0x33f0,0x33f1,0x33f2,0x33f3,
1.755 + 0x33f4,0x33f5,0x33f6,0x33f7,0x33f8,0x33f9,0x33fa,0x33fb,0x33fc,0x33fd,
1.756 + 0x33fe,0x3400,0x4db5,0x4e00,0x9fbb,0xa000,0xa001,0xa002,0xa003,0xa004,
1.757 + 0xa005,0xa006,0xa007,0xa008,0xa009,0xa00a,0xa00b,0xa00c,0xa00d,0xa00e,
1.758 + 0xa00f,0xa010,0xa011,0xa012,0xa013,0xa014,0xa015,0xa016,0xa017,0xa018,
1.759 + 0xa019,0xa01a,0xa01b,0xa01c,0xa01d,0xa01e,0xa01f,0xa020,0xa021,0xa022,
1.760 + 0xa023,0xa024,0xa025,0xa026,0xa027,0xa028,0xa029,0xa02a,0xa02b,0xa02c,
1.761 + 0xa02d,0xa02e,0xa02f,0xa030,0xa031,0xa032,0xa033,0xa034,0xa035,0xa036,
1.762 + 0xa037,0xa038,0xa039,0xa03a,0xa03b,0xa03c,0xa03d,0xa03e,0xa03f,0xa040,
1.763 + 0xa041,0xa042,0xa043,0xa044,0xa045,0xa046,0xa047,0xa048,0xa049,0xa04a,
1.764 + 0xa04b,0xa04c,0xa04d,0xa04e,0xa04f,0xa050,0xa051,0xa052,0xa053,0xa054,
1.765 + 0xa055,0xa056,0xa057,0xa058,0xa059,0xa05a,0xa05b,0xa05c,0xa05d,0xa05e,
1.766 + 0xa05f,0xa060,0xa061,0xa062,0xa063,0xa064,0xa065,0xa066,0xa067,0xa068,
1.767 + 0xa069,0xa06a,0xa06b,0xa06c,0xa06d,0xa06e,0xa06f,0xa070,0xa071,0xa072,
1.768 + 0xa073,0xa074,0xa075,0xa076,0xa077,0xa078,0xa079,0xa07a,0xa07b,0xa07c,
1.769 + 0xa07d,0xa07e,0xa07f,0xa080,0xa081,0xa082,0xa083,0xa084,0xa085,0xa086,
1.770 + 0xa087,0xa088,0xa089,0xa08a,0xa08b,0xa08c,0xa08d,0xa08e,0xa08f,0xa090,
1.771 + 0xa091,0xa092,0xa093,0xa094,0xa095,0xa096,0xa097,0xa098,0xa099,0xa09a,
1.772 + 0xa09b,0xa09c,0xa09d,0xa09e,0xa09f,0xa0a0,0xa0a1,0xa0a2,0xa0a3,0xa0a4,
1.773 + 0xa0a5,0xa0a6,0xa0a7,0xa0a8,0xa0a9,0xa0aa,0xa0ab,0xa0ac,0xa0ad,0xa0ae,
1.774 + 0xa0af,0xa0b0,0xa0b1,0xa0b2,0xa0b3,0xa0b4,0xa0b5,0xa0b6,0xa0b7,0xa0b8,
1.775 + 0xa0b9,0xa0ba,0xa0bb,0xa0bc,0xa0bd,0xa0be,0xa0bf,0xa0c0,0xa0c1,0xa0c2,
1.776 + 0xa0c3,0xa0c4,0xa0c5,0xa0c6,0xa0c7,0xa0c8,0xa0c9,0xa0ca,0xa0cb,0xa0cc,
1.777 + 0xa0cd,0xa0ce,0xa0cf,0xa0d0,0xa0d1,0xa0d2,0xa0d3,0xa0d4,0xa0d5,0xa0d6,
1.778 + 0xa0d7,0xa0d8,0xa0d9,0xa0da,0xa0db,0xa0dc,0xa0dd,0xa0de,0xa0df,0xa0e0,
1.779 + 0xa0e1,0xa0e2,0xa0e3,0xa0e4,0xa0e5,0xa0e6,0xa0e7,0xa0e8,0xa0e9,0xa0ea,
1.780 + 0xa0eb,0xa0ec,0xa0ed,0xa0ee,0xa0ef,0xa0f0,0xa0f1,0xa0f2,0xa0f3,0xa0f4,
1.781 + 0xa0f5,0xa0f6,0xa0f7,0xa0f8,0xa0f9,0xa0fa,0xa0fb,0xa0fc,0xa0fd,0xa0fe,
1.782 + 0xa0ff,0xa100,0xa101,0xa102,0xa103,0xa104,0xa105,0xa106,0xa107,0xa108,
1.783 + 0xa109,0xa10a,0xa10b,0xa10c,0xa10d,0xa10e,0xa10f,0xa110,0xa111,0xa112,
1.784 + 0xa113,0xa114,0xa115,0xa116,0xa117,0xa118,0xa119,0xa11a,0xa11b,0xa11c,
1.785 + 0xa11d,0xa11e,0xa11f,0xa120,0xa121,0xa122,0xa123,0xa124,0xa125,0xa126,
1.786 + 0xa127,0xa128,0xa129,0xa12a,0xa12b,0xa12c,0xa12d,0xa12e,0xa12f,0xa130,
1.787 + 0xa131,0xa132,0xa133,0xa134,0xa135,0xa136,0xa137,0xa138,0xa139,0xa13a,
1.788 + 0xa13b,0xa13c,0xa13d,0xa13e,0xa13f,0xa140,0xa141,0xa142,0xa143,0xa144,
1.789 + 0xa145,0xa146,0xa147,0xa148,0xa149,0xa14a,0xa14b,0xa14c,0xa14d,0xa14e,
1.790 + 0xa14f,0xa150,0xa151,0xa152,0xa153,0xa154,0xa155,0xa156,0xa157,0xa158,
1.791 + 0xa159,0xa15a,0xa15b,0xa15c,0xa15d,0xa15e,0xa15f,0xa160,0xa161,0xa162,
1.792 + 0xa163,0xa164,0xa165,0xa166,0xa167,0xa168,0xa169,0xa16a,0xa16b,0xa16c,
1.793 + 0xa16d,0xa16e,0xa16f,0xa170,0xa171,0xa172,0xa173,0xa174,0xa175,0xa176,
1.794 + 0xa177,0xa178,0xa179,0xa17a,0xa17b,0xa17c,0xa17d,0xa17e,0xa17f,0xa180,
1.795 + 0xa181,0xa182,0xa183,0xa184,0xa185,0xa186,0xa187,0xa188,0xa189,0xa18a,
1.796 + 0xa18b,0xa18c,0xa18d,0xa18e,0xa18f,0xa190,0xa191,0xa192,0xa193,0xa194,
1.797 + 0xa195,0xa196,0xa197,0xa198,0xa199,0xa19a,0xa19b,0xa19c,0xa19d,0xa19e,
1.798 + 0xa19f,0xa1a0,0xa1a1,0xa1a2,0xa1a3,0xa1a4,0xa1a5,0xa1a6,0xa1a7,0xa1a8,
1.799 + 0xa1a9,0xa1aa,0xa1ab,0xa1ac,0xa1ad,0xa1ae,0xa1af,0xa1b0,0xa1b1,0xa1b2,
1.800 + 0xa1b3,0xa1b4,0xa1b5,0xa1b6,0xa1b7,0xa1b8,0xa1b9,0xa1ba,0xa1bb,0xa1bc,
1.801 + 0xa1bd,0xa1be,0xa1bf,0xa1c0,0xa1c1,0xa1c2,0xa1c3,0xa1c4,0xa1c5,0xa1c6,
1.802 + 0xa1c7,0xa1c8,0xa1c9,0xa1ca,0xa1cb,0xa1cc,0xa1cd,0xa1ce,0xa1cf,0xa1d0,
1.803 + 0xa1d1,0xa1d2,0xa1d3,0xa1d4,0xa1d5,0xa1d6,0xa1d7,0xa1d8,0xa1d9,0xa1da,
1.804 + 0xa1db,0xa1dc,0xa1dd,0xa1de,0xa1df,0xa1e0,0xa1e1,0xa1e2,0xa1e3,0xa1e4,
1.805 + 0xa1e5,0xa1e6,0xa1e7,0xa1e8,0xa1e9,0xa1ea,0xa1eb,0xa1ec,0xa1ed,0xa1ee,
1.806 + 0xa1ef,0xa1f0,0xa1f1,0xa1f2,0xa1f3,0xa1f4,0xa1f5,0xa1f6,0xa1f7,0xa1f8,
1.807 + 0xa1f9,0xa1fa,0xa1fb,0xa1fc,0xa1fd,0xa1fe,0xa1ff,0xa200,0xa201,0xa202,
1.808 + 0xa203,0xa204,0xa205,0xa206,0xa207,0xa208,0xa209,0xa20a,0xa20b,0xa20c,
1.809 + 0xa20d,0xa20e,0xa20f,0xa210,0xa211,0xa212,0xa213,0xa214,0xa215,0xa216,
1.810 + 0xa217,0xa218,0xa219,0xa21a,0xa21b,0xa21c,0xa21d,0xa21e,0xa21f,0xa220,
1.811 + 0xa221,0xa222,0xa223,0xa224,0xa225,0xa226,0xa227,0xa228,0xa229,0xa22a,
1.812 + 0xa22b,0xa22c,0xa22d,0xa22e,0xa22f,0xa230,0xa231,0xa232,0xa233,0xa234,
1.813 + 0xa235,0xa236,0xa237,0xa238,0xa239,0xa23a,0xa23b,0xa23c,0xa23d,0xa23e,
1.814 + 0xa23f,0xa240,0xa241,0xa242,0xa243,0xa244,0xa245,0xa246,0xa247,0xa248,
1.815 + 0xa249,0xa24a,0xa24b,0xa24c,0xa24d,0xa24e,0xa24f,0xa250,0xa251,0xa252,
1.816 + 0xa253,0xa254,0xa255,0xa256,0xa257,0xa258,0xa259,0xa25a,0xa25b,0xa25c,
1.817 + 0xa25d,0xa25e,0xa25f,0xa260,0xa261,0xa262,0xa263,0xa264,0xa265,0xa266,
1.818 + 0xa267,0xa268,0xa269,0xa26a,0xa26b,0xa26c,0xa26d,0xa26e,0xa26f,0xa270,
1.819 + 0xa271,0xa272,0xa273,0xa274,0xa275,0xa276,0xa277,0xa278,0xa279,0xa27a,
1.820 + 0xa27b,0xa27c,0xa27d,0xa27e,0xa27f,0xa280,0xa281,0xa282,0xa283,0xa284,
1.821 + 0xa285,0xa286,0xa287,0xa288,0xa289,0xa28a,0xa28b,0xa28c,0xa28d,0xa28e,
1.822 + 0xa28f,0xa290,0xa291,0xa292,0xa293,0xa294,0xa295,0xa296,0xa297,0xa298,
1.823 + 0xa299,0xa29a,0xa29b,0xa29c,0xa29d,0xa29e,0xa29f,0xa2a0,0xa2a1,0xa2a2,
1.824 + 0xa2a3,0xa2a4,0xa2a5,0xa2a6,0xa2a7,0xa2a8,0xa2a9,0xa2aa,0xa2ab,0xa2ac,
1.825 + 0xa2ad,0xa2ae,0xa2af,0xa2b0,0xa2b1,0xa2b2,0xa2b3,0xa2b4,0xa2b5,0xa2b6,
1.826 + 0xa2b7,0xa2b8,0xa2b9,0xa2ba,0xa2bb,0xa2bc,0xa2bd,0xa2be,0xa2bf,0xa2c0,
1.827 + 0xa2c1,0xa2c2,0xa2c3,0xa2c4,0xa2c5,0xa2c6,0xa2c7,0xa2c8,0xa2c9,0xa2ca,
1.828 + 0xa2cb,0xa2cc,0xa2cd,0xa2ce,0xa2cf,0xa2d0,0xa2d1,0xa2d2,0xa2d3,0xa2d4,
1.829 + 0xa2d5,0xa2d6,0xa2d7,0xa2d8,0xa2d9,0xa2da,0xa2db,0xa2dc,0xa2dd,0xa2de,
1.830 + 0xa2df,0xa2e0,0xa2e1,0xa2e2,0xa2e3,0xa2e4,0xa2e5,0xa2e6,0xa2e7,0xa2e8,
1.831 + 0xa2e9,0xa2ea,0xa2eb,0xa2ec,0xa2ed,0xa2ee,0xa2ef,0xa2f0,0xa2f1,0xa2f2,
1.832 + 0xa2f3,0xa2f4,0xa2f5,0xa2f6,0xa2f7,0xa2f8,0xa2f9,0xa2fa,0xa2fb,0xa2fc,
1.833 + 0xa2fd,0xa2fe,0xa2ff,0xa300,0xa301,0xa302,0xa303,0xa304,0xa305,0xa306,
1.834 + 0xa307,0xa308,0xa309,0xa30a,0xa30b,0xa30c,0xa30d,0xa30e,0xa30f,0xa310,
1.835 + 0xa311,0xa312,0xa313,0xa314,0xa315,0xa316,0xa317,0xa318,0xa319,0xa31a,
1.836 + 0xa31b,0xa31c,0xa31d,0xa31e,0xa31f,0xa320,0xa321,0xa322,0xa323,0xa324,
1.837 + 0xa325,0xa326,0xa327,0xa328,0xa329,0xa32a,0xa32b,0xa32c,0xa32d,0xa32e,
1.838 + 0xa32f,0xa330,0xa331,0xa332,0xa333,0xa334,0xa335,0xa336,0xa337,0xa338,
1.839 + 0xa339,0xa33a,0xa33b,0xa33c,0xa33d,0xa33e,0xa33f,0xa340,0xa341,0xa342,
1.840 + 0xa343,0xa344,0xa345,0xa346,0xa347,0xa348,0xa349,0xa34a,0xa34b,0xa34c,
1.841 + 0xa34d,0xa34e,0xa34f,0xa350,0xa351,0xa352,0xa353,0xa354,0xa355,0xa356,
1.842 + 0xa357,0xa358,0xa359,0xa35a,0xa35b,0xa35c,0xa35d,0xa35e,0xa35f,0xa360,
1.843 + 0xa361,0xa362,0xa363,0xa364,0xa365,0xa366,0xa367,0xa368,0xa369,0xa36a,
1.844 + 0xa36b,0xa36c,0xa36d,0xa36e,0xa36f,0xa370,0xa371,0xa372,0xa373,0xa374,
1.845 + 0xa375,0xa376,0xa377,0xa378,0xa379,0xa37a,0xa37b,0xa37c,0xa37d,0xa37e,
1.846 + 0xa37f,0xa380,0xa381,0xa382,0xa383,0xa384,0xa385,0xa386,0xa387,0xa388,
1.847 + 0xa389,0xa38a,0xa38b,0xa38c,0xa38d,0xa38e,0xa38f,0xa390,0xa391,0xa392,
1.848 + 0xa393,0xa394,0xa395,0xa396,0xa397,0xa398,0xa399,0xa39a,0xa39b,0xa39c,
1.849 + 0xa39d,0xa39e,0xa39f,0xa3a0,0xa3a1,0xa3a2,0xa3a3,0xa3a4,0xa3a5,0xa3a6,
1.850 + 0xa3a7,0xa3a8,0xa3a9,0xa3aa,0xa3ab,0xa3ac,0xa3ad,0xa3ae,0xa3af,0xa3b0,
1.851 + 0xa3b1,0xa3b2,0xa3b3,0xa3b4,0xa3b5,0xa3b6,0xa3b7,0xa3b8,0xa3b9,0xa3ba,
1.852 + 0xa3bb,0xa3bc,0xa3bd,0xa3be,0xa3bf,0xa3c0,0xa3c1,0xa3c2,0xa3c3,0xa3c4,
1.853 + 0xa3c5,0xa3c6,0xa3c7,0xa3c8,0xa3c9,0xa3ca,0xa3cb,0xa3cc,0xa3cd,0xa3ce,
1.854 + 0xa3cf,0xa3d0,0xa3d1,0xa3d2,0xa3d3,0xa3d4,0xa3d5,0xa3d6,0xa3d7,0xa3d8,
1.855 + 0xa3d9,0xa3da,0xa3db,0xa3dc,0xa3dd,0xa3de,0xa3df,0xa3e0,0xa3e1,0xa3e2,
1.856 + 0xa3e3,0xa3e4,0xa3e5,0xa3e6,0xa3e7,0xa3e8,0xa3e9,0xa3ea,0xa3eb,0xa3ec,
1.857 + 0xa3ed,0xa3ee,0xa3ef,0xa3f0,0xa3f1,0xa3f2,0xa3f3,0xa3f4,0xa3f5,0xa3f6,
1.858 + 0xa3f7,0xa3f8,0xa3f9,0xa3fa,0xa3fb,0xa3fc,0xa3fd,0xa3fe,0xa3ff,0xa400,
1.859 + 0xa401,0xa402,0xa403,0xa404,0xa405,0xa406,0xa407,0xa408,0xa409,0xa40a,
1.860 + 0xa40b,0xa40c,0xa40d,0xa40e,0xa40f,0xa410,0xa411,0xa412,0xa413,0xa414,
1.861 + 0xa415,0xa416,0xa417,0xa418,0xa419,0xa41a,0xa41b,0xa41c,0xa41d,0xa41e,
1.862 + 0xa41f,0xa420,0xa421,0xa422,0xa423,0xa424,0xa425,0xa426,0xa427,0xa428,
1.863 + 0xa429,0xa42a,0xa42b,0xa42c,0xa42d,0xa42e,0xa42f,0xa430,0xa431,0xa432,
1.864 + 0xa433,0xa434,0xa435,0xa436,0xa437,0xa438,0xa439,0xa43a,0xa43b,0xa43c,
1.865 + 0xa43d,0xa43e,0xa43f,0xa440,0xa441,0xa442,0xa443,0xa444,0xa445,0xa446,
1.866 + 0xa447,0xa448,0xa449,0xa44a,0xa44b,0xa44c,0xa44d,0xa44e,0xa44f,0xa450,
1.867 + 0xa451,0xa452,0xa453,0xa454,0xa455,0xa456,0xa457,0xa458,0xa459,0xa45a,
1.868 + 0xa45b,0xa45c,0xa45d,0xa45e,0xa45f,0xa460,0xa461,0xa462,0xa463,0xa464,
1.869 + 0xa465,0xa466,0xa467,0xa468,0xa469,0xa46a,0xa46b,0xa46c,0xa46d,0xa46e,
1.870 + 0xa46f,0xa470,0xa471,0xa472,0xa473,0xa474,0xa475,0xa476,0xa477,0xa478,
1.871 + 0xa479,0xa47a,0xa47b,0xa47c,0xa47d,0xa47e,0xa47f,0xa480,0xa481,0xa482,
1.872 + 0xa483,0xa484,0xa485,0xa486,0xa487,0xa488,0xa489,0xa48a,0xa48b,0xa48c,
1.873 + 0xa800,0xa801,0xa803,0xa804,0xa805,0xa807,0xa808,0xa809,0xa80a,0xa80c,
1.874 + 0xa80d,0xa80e,0xa80f,0xa810,0xa811,0xa812,0xa813,0xa814,0xa815,0xa816,
1.875 + 0xa817,0xa818,0xa819,0xa81a,0xa81b,0xa81c,0xa81d,0xa81e,0xa81f,0xa820,
1.876 + 0xa821,0xa822,0xa840,0xa841,0xa842,0xa843,0xa844,0xa845,0xa846,0xa847,
1.877 + 0xa848,0xa849,0xa84a,0xa84b,0xa84c,0xa84d,0xa84e,0xa84f,0xa850,0xa851,
1.878 + 0xa852,0xa853,0xa854,0xa855,0xa856,0xa857,0xa858,0xa859,0xa85a,0xa85b,
1.879 + 0xa85c,0xa85d,0xa85e,0xa85f,0xa860,0xa861,0xa862,0xa863,0xa864,0xa865,
1.880 + 0xa866,0xa867,0xa868,0xa869,0xa86a,0xa86b,0xa86c,0xa86d,0xa86e,0xa86f,
1.881 + 0xa870,0xa871,0xa872,0xa873,0xac00,0xd7a3,0xe000,0xf8ff,0xf900,0xf901,
1.882 + 0xf902,0xf903,0xf904,0xf905,0xf906,0xf907,0xf908,0xf909,0xf90a,0xf90b,
1.883 + 0xf90c,0xf90d,0xf90e,0xf90f,0xf910,0xf911,0xf912,0xf913,0xf914,0xf915,
1.884 + 0xf916,0xf917,0xf918,0xf919,0xf91a,0xf91b,0xf91c,0xf91d,0xf91e,0xf91f,
1.885 + 0xf920,0xf921,0xf922,0xf923,0xf924,0xf925,0xf926,0xf927,0xf928,0xf929,
1.886 + 0xf92a,0xf92b,0xf92c,0xf92d,0xf92e,0xf92f,0xf930,0xf931,0xf932,0xf933,
1.887 + 0xf934,0xf935,0xf936,0xf937,0xf938,0xf939,0xf93a,0xf93b,0xf93c,0xf93d,
1.888 + 0xf93e,0xf93f,0xf940,0xf941,0xf942,0xf943,0xf944,0xf945,0xf946,0xf947,
1.889 + 0xf948,0xf949,0xf94a,0xf94b,0xf94c,0xf94d,0xf94e,0xf94f,0xf950,0xf951,
1.890 + 0xf952,0xf953,0xf954,0xf955,0xf956,0xf957,0xf958,0xf959,0xf95a,0xf95b,
1.891 + 0xf95c,0xf95d,0xf95e,0xf95f,0xf960,0xf961,0xf962,0xf963,0xf964,0xf965,
1.892 + 0xf966,0xf967,0xf968,0xf969,0xf96a,0xf96b,0xf96c,0xf96d,0xf96e,0xf96f,
1.893 + 0xf970,0xf971,0xf972,0xf973,0xf974,0xf975,0xf976,0xf977,0xf978,0xf979,
1.894 + 0xf97a,0xf97b,0xf97c,0xf97d,0xf97e,0xf97f,0xf980,0xf981,0xf982,0xf983,
1.895 + 0xf984,0xf985,0xf986,0xf987,0xf988,0xf989,0xf98a,0xf98b,0xf98c,0xf98d,
1.896 + 0xf98e,0xf98f,0xf990,0xf991,0xf992,0xf993,0xf994,0xf995,0xf996,0xf997,
1.897 + 0xf998,0xf999,0xf99a,0xf99b,0xf99c,0xf99d,0xf99e,0xf99f,0xf9a0,0xf9a1,
1.898 + 0xf9a2,0xf9a3,0xf9a4,0xf9a5,0xf9a6,0xf9a7,0xf9a8,0xf9a9,0xf9aa,0xf9ab,
1.899 + 0xf9ac,0xf9ad,0xf9ae,0xf9af,0xf9b0,0xf9b1,0xf9b2,0xf9b3,0xf9b4,0xf9b5,
1.900 + 0xf9b6,0xf9b7,0xf9b8,0xf9b9,0xf9ba,0xf9bb,0xf9bc,0xf9bd,0xf9be,0xf9bf,
1.901 + 0xf9c0,0xf9c1,0xf9c2,0xf9c3,0xf9c4,0xf9c5,0xf9c6,0xf9c7,0xf9c8,0xf9c9,
1.902 + 0xf9ca,0xf9cb,0xf9cc,0xf9cd,0xf9ce,0xf9cf,0xf9d0,0xf9d1,0xf9d2,0xf9d3,
1.903 + 0xf9d4,0xf9d5,0xf9d6,0xf9d7,0xf9d8,0xf9d9,0xf9da,0xf9db,0xf9dc,0xf9dd,
1.904 + 0xf9de,0xf9df,0xf9e0,0xf9e1,0xf9e2,0xf9e3,0xf9e4,0xf9e5,0xf9e6,0xf9e7,
1.905 + 0xf9e8,0xf9e9,0xf9ea,0xf9eb,0xf9ec,0xf9ed,0xf9ee,0xf9ef,0xf9f0,0xf9f1,
1.906 + 0xf9f2,0xf9f3,0xf9f4,0xf9f5,0xf9f6,0xf9f7,0xf9f8,0xf9f9,0xf9fa,0xf9fb,
1.907 + 0xf9fc,0xf9fd,0xf9fe,0xf9ff,0xfa00,0xfa01,0xfa02,0xfa03,0xfa04,0xfa05,
1.908 + 0xfa06,0xfa07,0xfa08,0xfa09,0xfa0a,0xfa0b,0xfa0c,0xfa0d,0xfa0e,0xfa0f,
1.909 + 0xfa10,0xfa11,0xfa12,0xfa13,0xfa14,0xfa15,0xfa16,0xfa17,0xfa18,0xfa19,
1.910 + 0xfa1a,0xfa1b,0xfa1c,0xfa1d,0xfa1e,0xfa1f,0xfa20,0xfa21,0xfa22,0xfa23,
1.911 + 0xfa24,0xfa25,0xfa26,0xfa27,0xfa28,0xfa29,0xfa2a,0xfa2b,0xfa2c,0xfa2d,
1.912 + 0xfa30,0xfa31,0xfa32,0xfa33,0xfa34,0xfa35,0xfa36,0xfa37,0xfa38,0xfa39,
1.913 + 0xfa3a,0xfa3b,0xfa3c,0xfa3d,0xfa3e,0xfa3f,0xfa40,0xfa41,0xfa42,0xfa43,
1.914 + 0xfa44,0xfa45,0xfa46,0xfa47,0xfa48,0xfa49,0xfa4a,0xfa4b,0xfa4c,0xfa4d,
1.915 + 0xfa4e,0xfa4f,0xfa50,0xfa51,0xfa52,0xfa53,0xfa54,0xfa55,0xfa56,0xfa57,
1.916 + 0xfa58,0xfa59,0xfa5a,0xfa5b,0xfa5c,0xfa5d,0xfa5e,0xfa5f,0xfa60,0xfa61,
1.917 + 0xfa62,0xfa63,0xfa64,0xfa65,0xfa66,0xfa67,0xfa68,0xfa69,0xfa6a,0xfa70,
1.918 + 0xfa71,0xfa72,0xfa73,0xfa74,0xfa75,0xfa76,0xfa77,0xfa78,0xfa79,0xfa7a,
1.919 + 0xfa7b,0xfa7c,0xfa7d,0xfa7e,0xfa7f,0xfa80,0xfa81,0xfa82,0xfa83,0xfa84,
1.920 + 0xfa85,0xfa86,0xfa87,0xfa88,0xfa89,0xfa8a,0xfa8b,0xfa8c,0xfa8d,0xfa8e,
1.921 + 0xfa8f,0xfa90,0xfa91,0xfa92,0xfa93,0xfa94,0xfa95,0xfa96,0xfa97,0xfa98,
1.922 + 0xfa99,0xfa9a,0xfa9b,0xfa9c,0xfa9d,0xfa9e,0xfa9f,0xfaa0,0xfaa1,0xfaa2,
1.923 + 0xfaa3,0xfaa4,0xfaa5,0xfaa6,0xfaa7,0xfaa8,0xfaa9,0xfaaa,0xfaab,0xfaac,
1.924 + 0xfaad,0xfaae,0xfaaf,0xfab0,0xfab1,0xfab2,0xfab3,0xfab4,0xfab5,0xfab6,
1.925 + 0xfab7,0xfab8,0xfab9,0xfaba,0xfabb,0xfabc,0xfabd,0xfabe,0xfabf,0xfac0,
1.926 + 0xfac1,0xfac2,0xfac3,0xfac4,0xfac5,0xfac6,0xfac7,0xfac8,0xfac9,0xfaca,
1.927 + 0xfacb,0xfacc,0xfacd,0xface,0xfacf,0xfad0,0xfad1,0xfad2,0xfad3,0xfad4,
1.928 + 0xfad5,0xfad6,0xfad7,0xfad8,0xfad9,0xfb00,0xfb01,0xfb02,0xfb03,0xfb04,
1.929 + 0xfb05,0xfb06,0xfb13,0xfb14,0xfb15,0xfb16,0xfb17,0xff21,0xff22,0xff23,
1.930 + 0xff24,0xff25,0xff26,0xff27,0xff28,0xff29,0xff2a,0xff2b,0xff2c,0xff2d,
1.931 + 0xff2e,0xff2f,0xff30,0xff31,0xff32,0xff33,0xff34,0xff35,0xff36,0xff37,
1.932 + 0xff38,0xff39,0xff3a,0xff41,0xff42,0xff43,0xff44,0xff45,0xff46,0xff47,
1.933 + 0xff48,0xff49,0xff4a,0xff4b,0xff4c,0xff4d,0xff4e,0xff4f,0xff50,0xff51,
1.934 + 0xff52,0xff53,0xff54,0xff55,0xff56,0xff57,0xff58,0xff59,0xff5a,0xff66,
1.935 + 0xff67,0xff68,0xff69,0xff6a,0xff6b,0xff6c,0xff6d,0xff6e,0xff6f,0xff70,
1.936 + 0xff71,0xff72,0xff73,0xff74,0xff75,0xff76,0xff77,0xff78,0xff79,0xff7a,
1.937 + 0xff7b,0xff7c,0xff7d,0xff7e,0xff7f,0xff80,0xff81,0xff82,0xff83,0xff84,
1.938 + 0xff85,0xff86,0xff87,0xff88,0xff89,0xff8a,0xff8b,0xff8c,0xff8d,0xff8e,
1.939 + 0xff8f,0xff90,0xff91,0xff92,0xff93,0xff94,0xff95,0xff96,0xff97,0xff98,
1.940 + 0xff99,0xff9a,0xff9b,0xff9c,0xff9d,0xff9e,0xff9f,0xffa0,0xffa1,0xffa2,
1.941 + 0xffa3,0xffa4,0xffa5,0xffa6,0xffa7,0xffa8,0xffa9,0xffaa,0xffab,0xffac,
1.942 + 0xffad,0xffae,0xffaf,0xffb0,0xffb1,0xffb2,0xffb3,0xffb4,0xffb5,0xffb6,
1.943 + 0xffb7,0xffb8,0xffb9,0xffba,0xffbb,0xffbc,0xffbd,0xffbe,0xffc2,0xffc3,
1.944 + 0xffc4,0xffc5,0xffc6,0xffc7,0xffca,0xffcb,0xffcc,0xffcd,0xffce,0xffcf,
1.945 + 0xffd2,0xffd3,0xffd4,0xffd5,0xffd6,0xffd7,0xffda,0xffdb,0xffdc,
1.946 + 0xd800,0xdc00,0xd800,0xdc01,0xd800,0xdc02,0xd800,0xdc03,0xd800,0xdc04,
1.947 + 0xd800,0xdc05,0xd800,0xdc06,0xd800,0xdc07,0xd800,0xdc08,0xd800,0xdc09,
1.948 + 0xd800,0xdc0a,0xd800,0xdc0b,0xd800,0xdc0d,0xd800,0xdc0e,0xd800,0xdc0f,
1.949 + 0xd800,0xdc10,0xd800,0xdc11,0xd800,0xdc12,0xd800,0xdc13,0xd800,0xdc14,
1.950 + 0xd800,0xdc15,0xd800,0xdc16,0xd800,0xdc17,0xd800,0xdc18,0xd800,0xdc19,
1.951 + 0xd800,0xdc1a,0xd800,0xdc1b,0xd800,0xdc1c,0xd800,0xdc1d,0xd800,0xdc1e,
1.952 + 0xd800,0xdc1f,0xd800,0xdc20,0xd800,0xdc21,0xd800,0xdc22,0xd800,0xdc23,
1.953 + 0xd800,0xdc24,0xd800,0xdc25,0xd800,0xdc26,0xd800,0xdc28,0xd800,0xdc29,
1.954 + 0xd800,0xdc2a,0xd800,0xdc2b,0xd800,0xdc2c,0xd800,0xdc2d,0xd800,0xdc2e,
1.955 + 0xd800,0xdc2f,0xd800,0xdc30,0xd800,0xdc31,0xd800,0xdc32,0xd800,0xdc33,
1.956 + 0xd800,0xdc34,0xd800,0xdc35,0xd800,0xdc36,0xd800,0xdc37,0xd800,0xdc38,
1.957 + 0xd800,0xdc39,0xd800,0xdc3a,0xd800,0xdc3c,0xd800,0xdc3d,0xd800,0xdc3f,
1.958 + 0xd800,0xdc40,0xd800,0xdc41,0xd800,0xdc42,0xd800,0xdc43,0xd800,0xdc44,
1.959 + 0xd800,0xdc45,0xd800,0xdc46,0xd800,0xdc47,0xd800,0xdc48,0xd800,0xdc49,
1.960 + 0xd800,0xdc4a,0xd800,0xdc4b,0xd800,0xdc4c,0xd800,0xdc4d,0xd800,0xdc50,
1.961 + 0xd800,0xdc51,0xd800,0xdc52,0xd800,0xdc53,0xd800,0xdc54,0xd800,0xdc55,
1.962 + 0xd800,0xdc56,0xd800,0xdc57,0xd800,0xdc58,0xd800,0xdc59,0xd800,0xdc5a,
1.963 + 0xd800,0xdc5b,0xd800,0xdc5c,0xd800,0xdc5d,0xd800,0xdc80,0xd800,0xdc81,
1.964 + 0xd800,0xdc82,0xd800,0xdc83,0xd800,0xdc84,0xd800,0xdc85,0xd800,0xdc86,
1.965 + 0xd800,0xdc87,0xd800,0xdc88,0xd800,0xdc89,0xd800,0xdc8a,0xd800,0xdc8b,
1.966 + 0xd800,0xdc8c,0xd800,0xdc8d,0xd800,0xdc8e,0xd800,0xdc8f,0xd800,0xdc90,
1.967 + 0xd800,0xdc91,0xd800,0xdc92,0xd800,0xdc93,0xd800,0xdc94,0xd800,0xdc95,
1.968 + 0xd800,0xdc96,0xd800,0xdc97,0xd800,0xdc98,0xd800,0xdc99,0xd800,0xdc9a,
1.969 + 0xd800,0xdc9b,0xd800,0xdc9c,0xd800,0xdc9d,0xd800,0xdc9e,0xd800,0xdc9f,
1.970 + 0xd800,0xdca0,0xd800,0xdca1,0xd800,0xdca2,0xd800,0xdca3,0xd800,0xdca4,
1.971 + 0xd800,0xdca5,0xd800,0xdca6,0xd800,0xdca7,0xd800,0xdca8,0xd800,0xdca9,
1.972 + 0xd800,0xdcaa,0xd800,0xdcab,0xd800,0xdcac,0xd800,0xdcad,0xd800,0xdcae,
1.973 + 0xd800,0xdcaf,0xd800,0xdcb0,0xd800,0xdcb1,0xd800,0xdcb2,0xd800,0xdcb3,
1.974 + 0xd800,0xdcb4,0xd800,0xdcb5,0xd800,0xdcb6,0xd800,0xdcb7,0xd800,0xdcb8,
1.975 + 0xd800,0xdcb9,0xd800,0xdcba,0xd800,0xdcbb,0xd800,0xdcbc,0xd800,0xdcbd,
1.976 + 0xd800,0xdcbe,0xd800,0xdcbf,0xd800,0xdcc0,0xd800,0xdcc1,0xd800,0xdcc2,
1.977 + 0xd800,0xdcc3,0xd800,0xdcc4,0xd800,0xdcc5,0xd800,0xdcc6,0xd800,0xdcc7,
1.978 + 0xd800,0xdcc8,0xd800,0xdcc9,0xd800,0xdcca,0xd800,0xdccb,0xd800,0xdccc,
1.979 + 0xd800,0xdccd,0xd800,0xdcce,0xd800,0xdccf,0xd800,0xdcd0,0xd800,0xdcd1,
1.980 + 0xd800,0xdcd2,0xd800,0xdcd3,0xd800,0xdcd4,0xd800,0xdcd5,0xd800,0xdcd6,
1.981 + 0xd800,0xdcd7,0xd800,0xdcd8,0xd800,0xdcd9,0xd800,0xdcda,0xd800,0xdcdb,
1.982 + 0xd800,0xdcdc,0xd800,0xdcdd,0xd800,0xdcde,0xd800,0xdcdf,0xd800,0xdce0,
1.983 + 0xd800,0xdce1,0xd800,0xdce2,0xd800,0xdce3,0xd800,0xdce4,0xd800,0xdce5,
1.984 + 0xd800,0xdce6,0xd800,0xdce7,0xd800,0xdce8,0xd800,0xdce9,0xd800,0xdcea,
1.985 + 0xd800,0xdceb,0xd800,0xdcec,0xd800,0xdced,0xd800,0xdcee,0xd800,0xdcef,
1.986 + 0xd800,0xdcf0,0xd800,0xdcf1,0xd800,0xdcf2,0xd800,0xdcf3,0xd800,0xdcf4,
1.987 + 0xd800,0xdcf5,0xd800,0xdcf6,0xd800,0xdcf7,0xd800,0xdcf8,0xd800,0xdcf9,
1.988 + 0xd800,0xdcfa,0xd800,0xdd00,0xd800,0xdd02,0xd800,0xdd07,0xd800,0xdd08,
1.989 + 0xd800,0xdd09,0xd800,0xdd0a,0xd800,0xdd0b,0xd800,0xdd0c,0xd800,0xdd0d,
1.990 + 0xd800,0xdd0e,0xd800,0xdd0f,0xd800,0xdd10,0xd800,0xdd11,0xd800,0xdd12,
1.991 + 0xd800,0xdd13,0xd800,0xdd14,0xd800,0xdd15,0xd800,0xdd16,0xd800,0xdd17,
1.992 + 0xd800,0xdd18,0xd800,0xdd19,0xd800,0xdd1a,0xd800,0xdd1b,0xd800,0xdd1c,
1.993 + 0xd800,0xdd1d,0xd800,0xdd1e,0xd800,0xdd1f,0xd800,0xdd20,0xd800,0xdd21,
1.994 + 0xd800,0xdd22,0xd800,0xdd23,0xd800,0xdd24,0xd800,0xdd25,0xd800,0xdd26,
1.995 + 0xd800,0xdd27,0xd800,0xdd28,0xd800,0xdd29,0xd800,0xdd2a,0xd800,0xdd2b,
1.996 + 0xd800,0xdd2c,0xd800,0xdd2d,0xd800,0xdd2e,0xd800,0xdd2f,0xd800,0xdd30,
1.997 + 0xd800,0xdd31,0xd800,0xdd32,0xd800,0xdd33,0xd800,0xdd37,0xd800,0xdd38,
1.998 + 0xd800,0xdd39,0xd800,0xdd3a,0xd800,0xdd3b,0xd800,0xdd3c,0xd800,0xdd3d,
1.999 + 0xd800,0xdd3e,0xd800,0xdd3f,0xd800,0xdf00,0xd800,0xdf01,0xd800,0xdf02,
1.1000 + 0xd800,0xdf03,0xd800,0xdf04,0xd800,0xdf05,0xd800,0xdf06,0xd800,0xdf07,
1.1001 + 0xd800,0xdf08,0xd800,0xdf09,0xd800,0xdf0a,0xd800,0xdf0b,0xd800,0xdf0c,
1.1002 + 0xd800,0xdf0d,0xd800,0xdf0e,0xd800,0xdf0f,0xd800,0xdf10,0xd800,0xdf11,
1.1003 + 0xd800,0xdf12,0xd800,0xdf13,0xd800,0xdf14,0xd800,0xdf15,0xd800,0xdf16,
1.1004 + 0xd800,0xdf17,0xd800,0xdf18,0xd800,0xdf19,0xd800,0xdf1a,0xd800,0xdf1b,
1.1005 + 0xd800,0xdf1c,0xd800,0xdf1d,0xd800,0xdf1e,0xd800,0xdf20,0xd800,0xdf21,
1.1006 + 0xd800,0xdf22,0xd800,0xdf23,0xd800,0xdf30,0xd800,0xdf31,0xd800,0xdf32,
1.1007 + 0xd800,0xdf33,0xd800,0xdf34,0xd800,0xdf35,0xd800,0xdf36,0xd800,0xdf37,
1.1008 + 0xd800,0xdf38,0xd800,0xdf39,0xd800,0xdf3a,0xd800,0xdf3b,0xd800,0xdf3c,
1.1009 + 0xd800,0xdf3d,0xd800,0xdf3e,0xd800,0xdf3f,0xd800,0xdf40,0xd800,0xdf41,
1.1010 + 0xd800,0xdf42,0xd800,0xdf43,0xd800,0xdf44,0xd800,0xdf45,0xd800,0xdf46,
1.1011 + 0xd800,0xdf47,0xd800,0xdf48,0xd800,0xdf49,0xd800,0xdf4a,0xd800,0xdf80,
1.1012 + 0xd800,0xdf81,0xd800,0xdf82,0xd800,0xdf83,0xd800,0xdf84,0xd800,0xdf85,
1.1013 + 0xd800,0xdf86,0xd800,0xdf87,0xd800,0xdf88,0xd800,0xdf89,0xd800,0xdf8a,
1.1014 + 0xd800,0xdf8b,0xd800,0xdf8c,0xd800,0xdf8d,0xd800,0xdf8e,0xd800,0xdf8f,
1.1015 + 0xd800,0xdf90,0xd800,0xdf91,0xd800,0xdf92,0xd800,0xdf93,0xd800,0xdf94,
1.1016 + 0xd800,0xdf95,0xd800,0xdf96,0xd800,0xdf97,0xd800,0xdf98,0xd800,0xdf99,
1.1017 + 0xd800,0xdf9a,0xd800,0xdf9b,0xd800,0xdf9c,0xd800,0xdf9d,0xd800,0xdf9f,
1.1018 + 0xd800,0xdfa0,0xd800,0xdfa1,0xd800,0xdfa2,0xd800,0xdfa3,0xd800,0xdfa4,
1.1019 + 0xd800,0xdfa5,0xd800,0xdfa6,0xd800,0xdfa7,0xd800,0xdfa8,0xd800,0xdfa9,
1.1020 + 0xd800,0xdfaa,0xd800,0xdfab,0xd800,0xdfac,0xd800,0xdfad,0xd800,0xdfae,
1.1021 + 0xd800,0xdfaf,0xd800,0xdfb0,0xd800,0xdfb1,0xd800,0xdfb2,0xd800,0xdfb3,
1.1022 + 0xd800,0xdfb4,0xd800,0xdfb5,0xd800,0xdfb6,0xd800,0xdfb7,0xd800,0xdfb8,
1.1023 + 0xd800,0xdfb9,0xd800,0xdfba,0xd800,0xdfbb,0xd800,0xdfbc,0xd800,0xdfbd,
1.1024 + 0xd800,0xdfbe,0xd800,0xdfbf,0xd800,0xdfc0,0xd800,0xdfc1,0xd800,0xdfc2,
1.1025 + 0xd800,0xdfc3,0xd800,0xdfc8,0xd800,0xdfc9,0xd800,0xdfca,0xd800,0xdfcb,
1.1026 + 0xd800,0xdfcc,0xd800,0xdfcd,0xd800,0xdfce,0xd800,0xdfcf,0xd800,0xdfd0,
1.1027 + 0xd800,0xdfd1,0xd800,0xdfd2,0xd800,0xdfd3,0xd800,0xdfd4,0xd800,0xdfd5,
1.1028 + 0xd801,0xdc00,0xd801,0xdc01,0xd801,0xdc02,0xd801,0xdc03,0xd801,0xdc04,
1.1029 + 0xd801,0xdc05,0xd801,0xdc06,0xd801,0xdc07,0xd801,0xdc08,0xd801,0xdc09,
1.1030 + 0xd801,0xdc0a,0xd801,0xdc0b,0xd801,0xdc0c,0xd801,0xdc0d,0xd801,0xdc0e,
1.1031 + 0xd801,0xdc0f,0xd801,0xdc10,0xd801,0xdc11,0xd801,0xdc12,0xd801,0xdc13,
1.1032 + 0xd801,0xdc14,0xd801,0xdc15,0xd801,0xdc16,0xd801,0xdc17,0xd801,0xdc18,
1.1033 + 0xd801,0xdc19,0xd801,0xdc1a,0xd801,0xdc1b,0xd801,0xdc1c,0xd801,0xdc1d,
1.1034 + 0xd801,0xdc1e,0xd801,0xdc1f,0xd801,0xdc20,0xd801,0xdc21,0xd801,0xdc22,
1.1035 + 0xd801,0xdc23,0xd801,0xdc24,0xd801,0xdc25,0xd801,0xdc26,0xd801,0xdc27,
1.1036 + 0xd801,0xdc28,0xd801,0xdc29,0xd801,0xdc2a,0xd801,0xdc2b,0xd801,0xdc2c,
1.1037 + 0xd801,0xdc2d,0xd801,0xdc2e,0xd801,0xdc2f,0xd801,0xdc30,0xd801,0xdc31,
1.1038 + 0xd801,0xdc32,0xd801,0xdc33,0xd801,0xdc34,0xd801,0xdc35,0xd801,0xdc36,
1.1039 + 0xd801,0xdc37,0xd801,0xdc38,0xd801,0xdc39,0xd801,0xdc3a,0xd801,0xdc3b,
1.1040 + 0xd801,0xdc3c,0xd801,0xdc3d,0xd801,0xdc3e,0xd801,0xdc3f,0xd801,0xdc40,
1.1041 + 0xd801,0xdc41,0xd801,0xdc42,0xd801,0xdc43,0xd801,0xdc44,0xd801,0xdc45,
1.1042 + 0xd801,0xdc46,0xd801,0xdc47,0xd801,0xdc48,0xd801,0xdc49,0xd801,0xdc4a,
1.1043 + 0xd801,0xdc4b,0xd801,0xdc4c,0xd801,0xdc4d,0xd801,0xdc4e,0xd801,0xdc4f,
1.1044 + 0xd801,0xdc50,0xd801,0xdc51,0xd801,0xdc52,0xd801,0xdc53,0xd801,0xdc54,
1.1045 + 0xd801,0xdc55,0xd801,0xdc56,0xd801,0xdc57,0xd801,0xdc58,0xd801,0xdc59,
1.1046 + 0xd801,0xdc5a,0xd801,0xdc5b,0xd801,0xdc5c,0xd801,0xdc5d,0xd801,0xdc5e,
1.1047 + 0xd801,0xdc5f,0xd801,0xdc60,0xd801,0xdc61,0xd801,0xdc62,0xd801,0xdc63,
1.1048 + 0xd801,0xdc64,0xd801,0xdc65,0xd801,0xdc66,0xd801,0xdc67,0xd801,0xdc68,
1.1049 + 0xd801,0xdc69,0xd801,0xdc6a,0xd801,0xdc6b,0xd801,0xdc6c,0xd801,0xdc6d,
1.1050 + 0xd801,0xdc6e,0xd801,0xdc6f,0xd801,0xdc70,0xd801,0xdc71,0xd801,0xdc72,
1.1051 + 0xd801,0xdc73,0xd801,0xdc74,0xd801,0xdc75,0xd801,0xdc76,0xd801,0xdc77,
1.1052 + 0xd801,0xdc78,0xd801,0xdc79,0xd801,0xdc7a,0xd801,0xdc7b,0xd801,0xdc7c,
1.1053 + 0xd801,0xdc7d,0xd801,0xdc7e,0xd801,0xdc7f,0xd801,0xdc80,0xd801,0xdc81,
1.1054 + 0xd801,0xdc82,0xd801,0xdc83,0xd801,0xdc84,0xd801,0xdc85,0xd801,0xdc86,
1.1055 + 0xd801,0xdc87,0xd801,0xdc88,0xd801,0xdc89,0xd801,0xdc8a,0xd801,0xdc8b,
1.1056 + 0xd801,0xdc8c,0xd801,0xdc8d,0xd801,0xdc8e,0xd801,0xdc8f,0xd801,0xdc90,
1.1057 + 0xd801,0xdc91,0xd801,0xdc92,0xd801,0xdc93,0xd801,0xdc94,0xd801,0xdc95,
1.1058 + 0xd801,0xdc96,0xd801,0xdc97,0xd801,0xdc98,0xd801,0xdc99,0xd801,0xdc9a,
1.1059 + 0xd801,0xdc9b,0xd801,0xdc9c,0xd801,0xdc9d,0xd801,0xdca0,0xd801,0xdca1,
1.1060 + 0xd801,0xdca2,0xd801,0xdca3,0xd801,0xdca4,0xd801,0xdca5,0xd801,0xdca6,
1.1061 + 0xd801,0xdca7,0xd801,0xdca8,0xd801,0xdca9,0xd808,0xdc00,0xd808,0xdc01,
1.1062 + 0xd808,0xdc02,0xd808,0xdc03,0xd808,0xdc04,0xd808,0xdc05,0xd808,0xdc06,
1.1063 + 0xd808,0xdc07,0xd808,0xdc08,0xd808,0xdc09,0xd808,0xdc0a,0xd808,0xdc0b,
1.1064 + 0xd808,0xdc0c,0xd808,0xdc0d,0xd808,0xdc0e,0xd808,0xdc0f,0xd808,0xdc10,
1.1065 + 0xd808,0xdc11,0xd808,0xdc12,0xd808,0xdc13,0xd808,0xdc14,0xd808,0xdc15,
1.1066 + 0xd808,0xdc16,0xd808,0xdc17,0xd808,0xdc18,0xd808,0xdc19,0xd808,0xdc1a,
1.1067 + 0xd808,0xdc1b,0xd808,0xdc1c,0xd808,0xdc1d,0xd808,0xdc1e,0xd808,0xdc1f,
1.1068 + 0xd808,0xdc20,0xd808,0xdc21,0xd808,0xdc22,0xd808,0xdc23,0xd808,0xdc24,
1.1069 + 0xd808,0xdc25,0xd808,0xdc26,0xd808,0xdc27,0xd808,0xdc28,0xd808,0xdc29,
1.1070 + 0xd808,0xdc2a,0xd808,0xdc2b,0xd808,0xdc2c,0xd808,0xdc2d,0xd808,0xdc2e,
1.1071 + 0xd808,0xdc2f,0xd808,0xdc30,0xd808,0xdc31,0xd808,0xdc32,0xd808,0xdc33,
1.1072 + 0xd808,0xdc34,0xd808,0xdc35,0xd808,0xdc36,0xd808,0xdc37,0xd808,0xdc38,
1.1073 + 0xd808,0xdc39,0xd808,0xdc3a,0xd808,0xdc3b,0xd808,0xdc3c,0xd808,0xdc3d,
1.1074 + 0xd808,0xdc3e,0xd808,0xdc3f,0xd808,0xdc40,0xd808,0xdc41,0xd808,0xdc42,
1.1075 + 0xd808,0xdc43,0xd808,0xdc44,0xd808,0xdc45,0xd808,0xdc46,0xd808,0xdc47,
1.1076 + 0xd808,0xdc48,0xd808,0xdc49,0xd808,0xdc4a,0xd808,0xdc4b,0xd808,0xdc4c,
1.1077 + 0xd808,0xdc4d,0xd808,0xdc4e,0xd808,0xdc4f,0xd808,0xdc50,0xd808,0xdc51,
1.1078 + 0xd808,0xdc52,0xd808,0xdc53,0xd808,0xdc54,0xd808,0xdc55,0xd808,0xdc56,
1.1079 + 0xd808,0xdc57,0xd808,0xdc58,0xd808,0xdc59,0xd808,0xdc5a,0xd808,0xdc5b,
1.1080 + 0xd808,0xdc5c,0xd808,0xdc5d,0xd808,0xdc5e,0xd808,0xdc5f,0xd808,0xdc60,
1.1081 + 0xd808,0xdc61,0xd808,0xdc62,0xd808,0xdc63,0xd808,0xdc64,0xd808,0xdc65,
1.1082 + 0xd808,0xdc66,0xd808,0xdc67,0xd808,0xdc68,0xd808,0xdc69,0xd808,0xdc6a,
1.1083 + 0xd808,0xdc6b,0xd808,0xdc6c,0xd808,0xdc6d,0xd808,0xdc6e,0xd808,0xdc6f,
1.1084 + 0xd808,0xdc70,0xd808,0xdc71,0xd808,0xdc72,0xd808,0xdc73,0xd808,0xdc74,
1.1085 + 0xd808,0xdc75,0xd808,0xdc76,0xd808,0xdc77,0xd808,0xdc78,0xd808,0xdc79,
1.1086 + 0xd808,0xdc7a,0xd808,0xdc7b,0xd808,0xdc7c,0xd808,0xdc7d,0xd808,0xdc7e,
1.1087 + 0xd808,0xdc7f,0xd808,0xdc80,0xd808,0xdc81,0xd808,0xdc82,0xd808,0xdc83,
1.1088 + 0xd808,0xdc84,0xd808,0xdc85,0xd808,0xdc86,0xd808,0xdc87,0xd808,0xdc88,
1.1089 + 0xd808,0xdc89,0xd808,0xdc8a,0xd808,0xdc8b,0xd808,0xdc8c,0xd808,0xdc8d,
1.1090 + 0xd808,0xdc8e,0xd808,0xdc8f,0xd808,0xdc90,0xd808,0xdc91,0xd808,0xdc92,
1.1091 + 0xd808,0xdc93,0xd808,0xdc94,0xd808,0xdc95,0xd808,0xdc96,0xd808,0xdc97,
1.1092 + 0xd808,0xdc98,0xd808,0xdc99,0xd808,0xdc9a,0xd808,0xdc9b,0xd808,0xdc9c,
1.1093 + 0xd808,0xdc9d,0xd808,0xdc9e,0xd808,0xdc9f,0xd808,0xdca0,0xd808,0xdca1,
1.1094 + 0xd808,0xdca2,0xd808,0xdca3,0xd808,0xdca4,0xd808,0xdca5,0xd808,0xdca6,
1.1095 + 0xd808,0xdca7,0xd808,0xdca8,0xd808,0xdca9,0xd808,0xdcaa,0xd808,0xdcab,
1.1096 + 0xd808,0xdcac,0xd808,0xdcad,0xd808,0xdcae,0xd808,0xdcaf,0xd808,0xdcb0,
1.1097 + 0xd808,0xdcb1,0xd808,0xdcb2,0xd808,0xdcb3,0xd808,0xdcb4,0xd808,0xdcb5,
1.1098 + 0xd808,0xdcb6,0xd808,0xdcb7,0xd808,0xdcb8,0xd808,0xdcb9,0xd808,0xdcba,
1.1099 + 0xd808,0xdcbb,0xd808,0xdcbc,0xd808,0xdcbd,0xd808,0xdcbe,0xd808,0xdcbf,
1.1100 + 0xd808,0xdcc0,0xd808,0xdcc1,0xd808,0xdcc2,0xd808,0xdcc3,0xd808,0xdcc4,
1.1101 + 0xd808,0xdcc5,0xd808,0xdcc6,0xd808,0xdcc7,0xd808,0xdcc8,0xd808,0xdcc9,
1.1102 + 0xd808,0xdcca,0xd808,0xdccb,0xd808,0xdccc,0xd808,0xdccd,0xd808,0xdcce,
1.1103 + 0xd808,0xdccf,0xd808,0xdcd0,0xd808,0xdcd1,0xd808,0xdcd2,0xd808,0xdcd3,
1.1104 + 0xd808,0xdcd4,0xd808,0xdcd5,0xd808,0xdcd6,0xd808,0xdcd7,0xd808,0xdcd8,
1.1105 + 0xd808,0xdcd9,0xd808,0xdcda,0xd808,0xdcdb,0xd808,0xdcdc,0xd808,0xdcdd,
1.1106 + 0xd808,0xdcde,0xd808,0xdcdf,0xd808,0xdce0,0xd808,0xdce1,0xd808,0xdce2,
1.1107 + 0xd808,0xdce3,0xd808,0xdce4,0xd808,0xdce5,0xd808,0xdce6,0xd808,0xdce7,
1.1108 + 0xd808,0xdce8,0xd808,0xdce9,0xd808,0xdcea,0xd808,0xdceb,0xd808,0xdcec,
1.1109 + 0xd808,0xdced,0xd808,0xdcee,0xd808,0xdcef,0xd808,0xdcf0,0xd808,0xdcf1,
1.1110 + 0xd808,0xdcf2,0xd808,0xdcf3,0xd808,0xdcf4,0xd808,0xdcf5,0xd808,0xdcf6,
1.1111 + 0xd808,0xdcf7,0xd808,0xdcf8,0xd808,0xdcf9,0xd808,0xdcfa,0xd808,0xdcfb,
1.1112 + 0xd808,0xdcfc,0xd808,0xdcfd,0xd808,0xdcfe,0xd808,0xdcff,0xd808,0xdd00,
1.1113 + 0xd808,0xdd01,0xd808,0xdd02,0xd808,0xdd03,0xd808,0xdd04,0xd808,0xdd05,
1.1114 + 0xd808,0xdd06,0xd808,0xdd07,0xd808,0xdd08,0xd808,0xdd09,0xd808,0xdd0a,
1.1115 + 0xd808,0xdd0b,0xd808,0xdd0c,0xd808,0xdd0d,0xd808,0xdd0e,0xd808,0xdd0f,
1.1116 + 0xd808,0xdd10,0xd808,0xdd11,0xd808,0xdd12,0xd808,0xdd13,0xd808,0xdd14,
1.1117 + 0xd808,0xdd15,0xd808,0xdd16,0xd808,0xdd17,0xd808,0xdd18,0xd808,0xdd19,
1.1118 + 0xd808,0xdd1a,0xd808,0xdd1b,0xd808,0xdd1c,0xd808,0xdd1d,0xd808,0xdd1e,
1.1119 + 0xd808,0xdd1f,0xd808,0xdd20,0xd808,0xdd21,0xd808,0xdd22,0xd808,0xdd23,
1.1120 + 0xd808,0xdd24,0xd808,0xdd25,0xd808,0xdd26,0xd808,0xdd27,0xd808,0xdd28,
1.1121 + 0xd808,0xdd29,0xd808,0xdd2a,0xd808,0xdd2b,0xd808,0xdd2c,0xd808,0xdd2d,
1.1122 + 0xd808,0xdd2e,0xd808,0xdd2f,0xd808,0xdd30,0xd808,0xdd31,0xd808,0xdd32,
1.1123 + 0xd808,0xdd33,0xd808,0xdd34,0xd808,0xdd35,0xd808,0xdd36,0xd808,0xdd37,
1.1124 + 0xd808,0xdd38,0xd808,0xdd39,0xd808,0xdd3a,0xd808,0xdd3b,0xd808,0xdd3c,
1.1125 + 0xd808,0xdd3d,0xd808,0xdd3e,0xd808,0xdd3f,0xd808,0xdd40,0xd808,0xdd41,
1.1126 + 0xd808,0xdd42,0xd808,0xdd43,0xd808,0xdd44,0xd808,0xdd45,0xd808,0xdd46,
1.1127 + 0xd808,0xdd47,0xd808,0xdd48,0xd808,0xdd49,0xd808,0xdd4a,0xd808,0xdd4b,
1.1128 + 0xd808,0xdd4c,0xd808,0xdd4d,0xd808,0xdd4e,0xd808,0xdd4f,0xd808,0xdd50,
1.1129 + 0xd808,0xdd51,0xd808,0xdd52,0xd808,0xdd53,0xd808,0xdd54,0xd808,0xdd55,
1.1130 + 0xd808,0xdd56,0xd808,0xdd57,0xd808,0xdd58,0xd808,0xdd59,0xd808,0xdd5a,
1.1131 + 0xd808,0xdd5b,0xd808,0xdd5c,0xd808,0xdd5d,0xd808,0xdd5e,0xd808,0xdd5f,
1.1132 + 0xd808,0xdd60,0xd808,0xdd61,0xd808,0xdd62,0xd808,0xdd63,0xd808,0xdd64,
1.1133 + 0xd808,0xdd65,0xd808,0xdd66,0xd808,0xdd67,0xd808,0xdd68,0xd808,0xdd69,
1.1134 + 0xd808,0xdd6a,0xd808,0xdd6b,0xd808,0xdd6c,0xd808,0xdd6d,0xd808,0xdd6e,
1.1135 + 0xd808,0xdd6f,0xd808,0xdd70,0xd808,0xdd71,0xd808,0xdd72,0xd808,0xdd73,
1.1136 + 0xd808,0xdd74,0xd808,0xdd75,0xd808,0xdd76,0xd808,0xdd77,0xd808,0xdd78,
1.1137 + 0xd808,0xdd79,0xd808,0xdd7a,0xd808,0xdd7b,0xd808,0xdd7c,0xd808,0xdd7d,
1.1138 + 0xd808,0xdd7e,0xd808,0xdd7f,0xd808,0xdd80,0xd808,0xdd81,0xd808,0xdd82,
1.1139 + 0xd808,0xdd83,0xd808,0xdd84,0xd808,0xdd85,0xd808,0xdd86,0xd808,0xdd87,
1.1140 + 0xd808,0xdd88,0xd808,0xdd89,0xd808,0xdd8a,0xd808,0xdd8b,0xd808,0xdd8c,
1.1141 + 0xd808,0xdd8d,0xd808,0xdd8e,0xd808,0xdd8f,0xd808,0xdd90,0xd808,0xdd91,
1.1142 + 0xd808,0xdd92,0xd808,0xdd93,0xd808,0xdd94,0xd808,0xdd95,0xd808,0xdd96,
1.1143 + 0xd808,0xdd97,0xd808,0xdd98,0xd808,0xdd99,0xd808,0xdd9a,0xd808,0xdd9b,
1.1144 + 0xd808,0xdd9c,0xd808,0xdd9d,0xd808,0xdd9e,0xd808,0xdd9f,0xd808,0xdda0,
1.1145 + 0xd808,0xdda1,0xd808,0xdda2,0xd808,0xdda3,0xd808,0xdda4,0xd808,0xdda5,
1.1146 + 0xd808,0xdda6,0xd808,0xdda7,0xd808,0xdda8,0xd808,0xdda9,0xd808,0xddaa,
1.1147 + 0xd808,0xddab,0xd808,0xddac,0xd808,0xddad,0xd808,0xddae,0xd808,0xddaf,
1.1148 + 0xd808,0xddb0,0xd808,0xddb1,0xd808,0xddb2,0xd808,0xddb3,0xd808,0xddb4,
1.1149 + 0xd808,0xddb5,0xd808,0xddb6,0xd808,0xddb7,0xd808,0xddb8,0xd808,0xddb9,
1.1150 + 0xd808,0xddba,0xd808,0xddbb,0xd808,0xddbc,0xd808,0xddbd,0xd808,0xddbe,
1.1151 + 0xd808,0xddbf,0xd808,0xddc0,0xd808,0xddc1,0xd808,0xddc2,0xd808,0xddc3,
1.1152 + 0xd808,0xddc4,0xd808,0xddc5,0xd808,0xddc6,0xd808,0xddc7,0xd808,0xddc8,
1.1153 + 0xd808,0xddc9,0xd808,0xddca,0xd808,0xddcb,0xd808,0xddcc,0xd808,0xddcd,
1.1154 + 0xd808,0xddce,0xd808,0xddcf,0xd808,0xddd0,0xd808,0xddd1,0xd808,0xddd2,
1.1155 + 0xd808,0xddd3,0xd808,0xddd4,0xd808,0xddd5,0xd808,0xddd6,0xd808,0xddd7,
1.1156 + 0xd808,0xddd8,0xd808,0xddd9,0xd808,0xddda,0xd808,0xdddb,0xd808,0xdddc,
1.1157 + 0xd808,0xdddd,0xd808,0xddde,0xd808,0xdddf,0xd808,0xdde0,0xd808,0xdde1,
1.1158 + 0xd808,0xdde2,0xd808,0xdde3,0xd808,0xdde4,0xd808,0xdde5,0xd808,0xdde6,
1.1159 + 0xd808,0xdde7,0xd808,0xdde8,0xd808,0xdde9,0xd808,0xddea,0xd808,0xddeb,
1.1160 + 0xd808,0xddec,0xd808,0xdded,0xd808,0xddee,0xd808,0xddef,0xd808,0xddf0,
1.1161 + 0xd808,0xddf1,0xd808,0xddf2,0xd808,0xddf3,0xd808,0xddf4,0xd808,0xddf5,
1.1162 + 0xd808,0xddf6,0xd808,0xddf7,0xd808,0xddf8,0xd808,0xddf9,0xd808,0xddfa,
1.1163 + 0xd808,0xddfb,0xd808,0xddfc,0xd808,0xddfd,0xd808,0xddfe,0xd808,0xddff,
1.1164 + 0xd808,0xde00,0xd808,0xde01,0xd808,0xde02,0xd808,0xde03,0xd808,0xde04,
1.1165 + 0xd808,0xde05,0xd808,0xde06,0xd808,0xde07,0xd808,0xde08,0xd808,0xde09,
1.1166 + 0xd808,0xde0a,0xd808,0xde0b,0xd808,0xde0c,0xd808,0xde0d,0xd808,0xde0e,
1.1167 + 0xd808,0xde0f,0xd808,0xde10,0xd808,0xde11,0xd808,0xde12,0xd808,0xde13,
1.1168 + 0xd808,0xde14,0xd808,0xde15,0xd808,0xde16,0xd808,0xde17,0xd808,0xde18,
1.1169 + 0xd808,0xde19,0xd808,0xde1a,0xd808,0xde1b,0xd808,0xde1c,0xd808,0xde1d,
1.1170 + 0xd808,0xde1e,0xd808,0xde1f,0xd808,0xde20,0xd808,0xde21,0xd808,0xde22,
1.1171 + 0xd808,0xde23,0xd808,0xde24,0xd808,0xde25,0xd808,0xde26,0xd808,0xde27,
1.1172 + 0xd808,0xde28,0xd808,0xde29,0xd808,0xde2a,0xd808,0xde2b,0xd808,0xde2c,
1.1173 + 0xd808,0xde2d,0xd808,0xde2e,0xd808,0xde2f,0xd808,0xde30,0xd808,0xde31,
1.1174 + 0xd808,0xde32,0xd808,0xde33,0xd808,0xde34,0xd808,0xde35,0xd808,0xde36,
1.1175 + 0xd808,0xde37,0xd808,0xde38,0xd808,0xde39,0xd808,0xde3a,0xd808,0xde3b,
1.1176 + 0xd808,0xde3c,0xd808,0xde3d,0xd808,0xde3e,0xd808,0xde3f,0xd808,0xde40,
1.1177 + 0xd808,0xde41,0xd808,0xde42,0xd808,0xde43,0xd808,0xde44,0xd808,0xde45,
1.1178 + 0xd808,0xde46,0xd808,0xde47,0xd808,0xde48,0xd808,0xde49,0xd808,0xde4a,
1.1179 + 0xd808,0xde4b,0xd808,0xde4c,0xd808,0xde4d,0xd808,0xde4e,0xd808,0xde4f,
1.1180 + 0xd808,0xde50,0xd808,0xde51,0xd808,0xde52,0xd808,0xde53,0xd808,0xde54,
1.1181 + 0xd808,0xde55,0xd808,0xde56,0xd808,0xde57,0xd808,0xde58,0xd808,0xde59,
1.1182 + 0xd808,0xde5a,0xd808,0xde5b,0xd808,0xde5c,0xd808,0xde5d,0xd808,0xde5e,
1.1183 + 0xd808,0xde5f,0xd808,0xde60,0xd808,0xde61,0xd808,0xde62,0xd808,0xde63,
1.1184 + 0xd808,0xde64,0xd808,0xde65,0xd808,0xde66,0xd808,0xde67,0xd808,0xde68,
1.1185 + 0xd808,0xde69,0xd808,0xde6a,0xd808,0xde6b,0xd808,0xde6c,0xd808,0xde6d,
1.1186 + 0xd808,0xde6e,0xd808,0xde6f,0xd808,0xde70,0xd808,0xde71,0xd808,0xde72,
1.1187 + 0xd808,0xde73,0xd808,0xde74,0xd808,0xde75,0xd808,0xde76,0xd808,0xde77,
1.1188 + 0xd808,0xde78,0xd808,0xde79,0xd808,0xde7a,0xd808,0xde7b,0xd808,0xde7c,
1.1189 + 0xd808,0xde7d,0xd808,0xde7e,0xd808,0xde7f,0xd808,0xde80,0xd808,0xde81,
1.1190 + 0xd808,0xde82,0xd808,0xde83,0xd808,0xde84,0xd808,0xde85,0xd808,0xde86,
1.1191 + 0xd808,0xde87,0xd808,0xde88,0xd808,0xde89,0xd808,0xde8a,0xd808,0xde8b,
1.1192 + 0xd808,0xde8c,0xd808,0xde8d,0xd808,0xde8e,0xd808,0xde8f,0xd808,0xde90,
1.1193 + 0xd808,0xde91,0xd808,0xde92,0xd808,0xde93,0xd808,0xde94,0xd808,0xde95,
1.1194 + 0xd808,0xde96,0xd808,0xde97,0xd808,0xde98,0xd808,0xde99,0xd808,0xde9a,
1.1195 + 0xd808,0xde9b,0xd808,0xde9c,0xd808,0xde9d,0xd808,0xde9e,0xd808,0xde9f,
1.1196 + 0xd808,0xdea0,0xd808,0xdea1,0xd808,0xdea2,0xd808,0xdea3,0xd808,0xdea4,
1.1197 + 0xd808,0xdea5,0xd808,0xdea6,0xd808,0xdea7,0xd808,0xdea8,0xd808,0xdea9,
1.1198 + 0xd808,0xdeaa,0xd808,0xdeab,0xd808,0xdeac,0xd808,0xdead,0xd808,0xdeae,
1.1199 + 0xd808,0xdeaf,0xd808,0xdeb0,0xd808,0xdeb1,0xd808,0xdeb2,0xd808,0xdeb3,
1.1200 + 0xd808,0xdeb4,0xd808,0xdeb5,0xd808,0xdeb6,0xd808,0xdeb7,0xd808,0xdeb8,
1.1201 + 0xd808,0xdeb9,0xd808,0xdeba,0xd808,0xdebb,0xd808,0xdebc,0xd808,0xdebd,
1.1202 + 0xd808,0xdebe,0xd808,0xdebf,0xd808,0xdec0,0xd808,0xdec1,0xd808,0xdec2,
1.1203 + 0xd808,0xdec3,0xd808,0xdec4,0xd808,0xdec5,0xd808,0xdec6,0xd808,0xdec7,
1.1204 + 0xd808,0xdec8,0xd808,0xdec9,0xd808,0xdeca,0xd808,0xdecb,0xd808,0xdecc,
1.1205 + 0xd808,0xdecd,0xd808,0xdece,0xd808,0xdecf,0xd808,0xded0,0xd808,0xded1,
1.1206 + 0xd808,0xded2,0xd808,0xded3,0xd808,0xded4,0xd808,0xded5,0xd808,0xded6,
1.1207 + 0xd808,0xded7,0xd808,0xded8,0xd808,0xded9,0xd808,0xdeda,0xd808,0xdedb,
1.1208 + 0xd808,0xdedc,0xd808,0xdedd,0xd808,0xdede,0xd808,0xdedf,0xd808,0xdee0,
1.1209 + 0xd808,0xdee1,0xd808,0xdee2,0xd808,0xdee3,0xd808,0xdee4,0xd808,0xdee5,
1.1210 + 0xd808,0xdee6,0xd808,0xdee7,0xd808,0xdee8,0xd808,0xdee9,0xd808,0xdeea,
1.1211 + 0xd808,0xdeeb,0xd808,0xdeec,0xd808,0xdeed,0xd808,0xdeee,0xd808,0xdeef,
1.1212 + 0xd808,0xdef0,0xd808,0xdef1,0xd808,0xdef2,0xd808,0xdef3,0xd808,0xdef4,
1.1213 + 0xd808,0xdef5,0xd808,0xdef6,0xd808,0xdef7,0xd808,0xdef8,0xd808,0xdef9,
1.1214 + 0xd808,0xdefa,0xd808,0xdefb,0xd808,0xdefc,0xd808,0xdefd,0xd808,0xdefe,
1.1215 + 0xd808,0xdeff,0xd808,0xdf00,0xd808,0xdf01,0xd808,0xdf02,0xd808,0xdf03,
1.1216 + 0xd808,0xdf04,0xd808,0xdf05,0xd808,0xdf06,0xd808,0xdf07,0xd808,0xdf08,
1.1217 + 0xd808,0xdf09,0xd808,0xdf0a,0xd808,0xdf0b,0xd808,0xdf0c,0xd808,0xdf0d,
1.1218 + 0xd808,0xdf0e,0xd808,0xdf0f,0xd808,0xdf10,0xd808,0xdf11,0xd808,0xdf12,
1.1219 + 0xd808,0xdf13,0xd808,0xdf14,0xd808,0xdf15,0xd808,0xdf16,0xd808,0xdf17,
1.1220 + 0xd808,0xdf18,0xd808,0xdf19,0xd808,0xdf1a,0xd808,0xdf1b,0xd808,0xdf1c,
1.1221 + 0xd808,0xdf1d,0xd808,0xdf1e,0xd808,0xdf1f,0xd808,0xdf20,0xd808,0xdf21,
1.1222 + 0xd808,0xdf22,0xd808,0xdf23,0xd808,0xdf24,0xd808,0xdf25,0xd808,0xdf26,
1.1223 + 0xd808,0xdf27,0xd808,0xdf28,0xd808,0xdf29,0xd808,0xdf2a,0xd808,0xdf2b,
1.1224 + 0xd808,0xdf2c,0xd808,0xdf2d,0xd808,0xdf2e,0xd808,0xdf2f,0xd808,0xdf30,
1.1225 + 0xd808,0xdf31,0xd808,0xdf32,0xd808,0xdf33,0xd808,0xdf34,0xd808,0xdf35,
1.1226 + 0xd808,0xdf36,0xd808,0xdf37,0xd808,0xdf38,0xd808,0xdf39,0xd808,0xdf3a,
1.1227 + 0xd808,0xdf3b,0xd808,0xdf3c,0xd808,0xdf3d,0xd808,0xdf3e,0xd808,0xdf3f,
1.1228 + 0xd808,0xdf40,0xd808,0xdf41,0xd808,0xdf42,0xd808,0xdf43,0xd808,0xdf44,
1.1229 + 0xd808,0xdf45,0xd808,0xdf46,0xd808,0xdf47,0xd808,0xdf48,0xd808,0xdf49,
1.1230 + 0xd808,0xdf4a,0xd808,0xdf4b,0xd808,0xdf4c,0xd808,0xdf4d,0xd808,0xdf4e,
1.1231 + 0xd808,0xdf4f,0xd808,0xdf50,0xd808,0xdf51,0xd808,0xdf52,0xd808,0xdf53,
1.1232 + 0xd808,0xdf54,0xd808,0xdf55,0xd808,0xdf56,0xd808,0xdf57,0xd808,0xdf58,
1.1233 + 0xd808,0xdf59,0xd808,0xdf5a,0xd808,0xdf5b,0xd808,0xdf5c,0xd808,0xdf5d,
1.1234 + 0xd808,0xdf5e,0xd808,0xdf5f,0xd808,0xdf60,0xd808,0xdf61,0xd808,0xdf62,
1.1235 + 0xd808,0xdf63,0xd808,0xdf64,0xd808,0xdf65,0xd808,0xdf66,0xd808,0xdf67,
1.1236 + 0xd808,0xdf68,0xd808,0xdf69,0xd808,0xdf6a,0xd808,0xdf6b,0xd808,0xdf6c,
1.1237 + 0xd808,0xdf6d,0xd808,0xdf6e,0xd809,0xdc00,0xd809,0xdc01,0xd809,0xdc02,
1.1238 + 0xd809,0xdc03,0xd809,0xdc04,0xd809,0xdc05,0xd809,0xdc06,0xd809,0xdc07,
1.1239 + 0xd809,0xdc08,0xd809,0xdc09,0xd809,0xdc0a,0xd809,0xdc0b,0xd809,0xdc0c,
1.1240 + 0xd809,0xdc0d,0xd809,0xdc0e,0xd809,0xdc0f,0xd809,0xdc10,0xd809,0xdc11,
1.1241 + 0xd809,0xdc12,0xd809,0xdc13,0xd809,0xdc14,0xd809,0xdc15,0xd809,0xdc16,
1.1242 + 0xd809,0xdc17,0xd809,0xdc18,0xd809,0xdc19,0xd809,0xdc1a,0xd809,0xdc1b,
1.1243 + 0xd809,0xdc1c,0xd809,0xdc1d,0xd809,0xdc1e,0xd809,0xdc1f,0xd809,0xdc20,
1.1244 + 0xd809,0xdc21,0xd809,0xdc22,0xd809,0xdc23,0xd809,0xdc24,0xd809,0xdc25,
1.1245 + 0xd809,0xdc26,0xd809,0xdc27,0xd809,0xdc28,0xd809,0xdc29,0xd809,0xdc2a,
1.1246 + 0xd809,0xdc2b,0xd809,0xdc2c,0xd809,0xdc2d,0xd809,0xdc2e,0xd809,0xdc2f,
1.1247 + 0xd809,0xdc30,0xd809,0xdc31,0xd809,0xdc32,0xd809,0xdc33,0xd809,0xdc34,
1.1248 + 0xd809,0xdc35,0xd809,0xdc36,0xd809,0xdc37,0xd809,0xdc38,0xd809,0xdc39,
1.1249 + 0xd809,0xdc3a,0xd809,0xdc3b,0xd809,0xdc3c,0xd809,0xdc3d,0xd809,0xdc3e,
1.1250 + 0xd809,0xdc3f,0xd809,0xdc40,0xd809,0xdc41,0xd809,0xdc42,0xd809,0xdc43,
1.1251 + 0xd809,0xdc44,0xd809,0xdc45,0xd809,0xdc46,0xd809,0xdc47,0xd809,0xdc48,
1.1252 + 0xd809,0xdc49,0xd809,0xdc4a,0xd809,0xdc4b,0xd809,0xdc4c,0xd809,0xdc4d,
1.1253 + 0xd809,0xdc4e,0xd809,0xdc4f,0xd809,0xdc50,0xd809,0xdc51,0xd809,0xdc52,
1.1254 + 0xd809,0xdc53,0xd809,0xdc54,0xd809,0xdc55,0xd809,0xdc56,0xd809,0xdc57,
1.1255 + 0xd809,0xdc58,0xd809,0xdc59,0xd809,0xdc5a,0xd809,0xdc5b,0xd809,0xdc5c,
1.1256 + 0xd809,0xdc5d,0xd809,0xdc5e,0xd809,0xdc5f,0xd809,0xdc60,0xd809,0xdc61,
1.1257 + 0xd809,0xdc62,0xd809,0xdc70,0xd809,0xdc71,0xd809,0xdc72,0xd809,0xdc73,
1.1258 + 0xd834,0xdc00,0xd834,0xdc01,0xd834,0xdc02,0xd834,0xdc03,0xd834,0xdc04,
1.1259 + 0xd834,0xdc05,0xd834,0xdc06,0xd834,0xdc07,0xd834,0xdc08,0xd834,0xdc09,
1.1260 + 0xd834,0xdc0a,0xd834,0xdc0b,0xd834,0xdc0c,0xd834,0xdc0d,0xd834,0xdc0e,
1.1261 + 0xd834,0xdc0f,0xd834,0xdc10,0xd834,0xdc11,0xd834,0xdc12,0xd834,0xdc13,
1.1262 + 0xd834,0xdc14,0xd834,0xdc15,0xd834,0xdc16,0xd834,0xdc17,0xd834,0xdc18,
1.1263 + 0xd834,0xdc19,0xd834,0xdc1a,0xd834,0xdc1b,0xd834,0xdc1c,0xd834,0xdc1d,
1.1264 + 0xd834,0xdc1e,0xd834,0xdc1f,0xd834,0xdc20,0xd834,0xdc21,0xd834,0xdc22,
1.1265 + 0xd834,0xdc23,0xd834,0xdc24,0xd834,0xdc25,0xd834,0xdc26,0xd834,0xdc27,
1.1266 + 0xd834,0xdc28,0xd834,0xdc29,0xd834,0xdc2a,0xd834,0xdc2b,0xd834,0xdc2c,
1.1267 + 0xd834,0xdc2d,0xd834,0xdc2e,0xd834,0xdc2f,0xd834,0xdc30,0xd834,0xdc31,
1.1268 + 0xd834,0xdc32,0xd834,0xdc33,0xd834,0xdc34,0xd834,0xdc35,0xd834,0xdc36,
1.1269 + 0xd834,0xdc37,0xd834,0xdc38,0xd834,0xdc39,0xd834,0xdc3a,0xd834,0xdc3b,
1.1270 + 0xd834,0xdc3c,0xd834,0xdc3d,0xd834,0xdc3e,0xd834,0xdc3f,0xd834,0xdc40,
1.1271 + 0xd834,0xdc41,0xd834,0xdc42,0xd834,0xdc43,0xd834,0xdc44,0xd834,0xdc45,
1.1272 + 0xd834,0xdc46,0xd834,0xdc47,0xd834,0xdc48,0xd834,0xdc49,0xd834,0xdc4a,
1.1273 + 0xd834,0xdc4b,0xd834,0xdc4c,0xd834,0xdc4d,0xd834,0xdc4e,0xd834,0xdc4f,
1.1274 + 0xd834,0xdc50,0xd834,0xdc51,0xd834,0xdc52,0xd834,0xdc53,0xd834,0xdc54,
1.1275 + 0xd834,0xdc55,0xd834,0xdc56,0xd834,0xdc57,0xd834,0xdc58,0xd834,0xdc59,
1.1276 + 0xd834,0xdc5a,0xd834,0xdc5b,0xd834,0xdc5c,0xd834,0xdc5d,0xd834,0xdc5e,
1.1277 + 0xd834,0xdc5f,0xd834,0xdc60,0xd834,0xdc61,0xd834,0xdc62,0xd834,0xdc63,
1.1278 + 0xd834,0xdc64,0xd834,0xdc65,0xd834,0xdc66,0xd834,0xdc67,0xd834,0xdc68,
1.1279 + 0xd834,0xdc69,0xd834,0xdc6a,0xd834,0xdc6b,0xd834,0xdc6c,0xd834,0xdc6d,
1.1280 + 0xd834,0xdc6e,0xd834,0xdc6f,0xd834,0xdc70,0xd834,0xdc71,0xd834,0xdc72,
1.1281 + 0xd834,0xdc73,0xd834,0xdc74,0xd834,0xdc75,0xd834,0xdc76,0xd834,0xdc77,
1.1282 + 0xd834,0xdc78,0xd834,0xdc79,0xd834,0xdc7a,0xd834,0xdc7b,0xd834,0xdc7c,
1.1283 + 0xd834,0xdc7d,0xd834,0xdc7e,0xd834,0xdc7f,0xd834,0xdc80,0xd834,0xdc81,
1.1284 + 0xd834,0xdc82,0xd834,0xdc83,0xd834,0xdc84,0xd834,0xdc85,0xd834,0xdc86,
1.1285 + 0xd834,0xdc87,0xd834,0xdc88,0xd834,0xdc89,0xd834,0xdc8a,0xd834,0xdc8b,
1.1286 + 0xd834,0xdc8c,0xd834,0xdc8d,0xd834,0xdc8e,0xd834,0xdc8f,0xd834,0xdc90,
1.1287 + 0xd834,0xdc91,0xd834,0xdc92,0xd834,0xdc93,0xd834,0xdc94,0xd834,0xdc95,
1.1288 + 0xd834,0xdc96,0xd834,0xdc97,0xd834,0xdc98,0xd834,0xdc99,0xd834,0xdc9a,
1.1289 + 0xd834,0xdc9b,0xd834,0xdc9c,0xd834,0xdc9d,0xd834,0xdc9e,0xd834,0xdc9f,
1.1290 + 0xd834,0xdca0,0xd834,0xdca1,0xd834,0xdca2,0xd834,0xdca3,0xd834,0xdca4,
1.1291 + 0xd834,0xdca5,0xd834,0xdca6,0xd834,0xdca7,0xd834,0xdca8,0xd834,0xdca9,
1.1292 + 0xd834,0xdcaa,0xd834,0xdcab,0xd834,0xdcac,0xd834,0xdcad,0xd834,0xdcae,
1.1293 + 0xd834,0xdcaf,0xd834,0xdcb0,0xd834,0xdcb1,0xd834,0xdcb2,0xd834,0xdcb3,
1.1294 + 0xd834,0xdcb4,0xd834,0xdcb5,0xd834,0xdcb6,0xd834,0xdcb7,0xd834,0xdcb8,
1.1295 + 0xd834,0xdcb9,0xd834,0xdcba,0xd834,0xdcbb,0xd834,0xdcbc,0xd834,0xdcbd,
1.1296 + 0xd834,0xdcbe,0xd834,0xdcbf,0xd834,0xdcc0,0xd834,0xdcc1,0xd834,0xdcc2,
1.1297 + 0xd834,0xdcc3,0xd834,0xdcc4,0xd834,0xdcc5,0xd834,0xdcc6,0xd834,0xdcc7,
1.1298 + 0xd834,0xdcc8,0xd834,0xdcc9,0xd834,0xdcca,0xd834,0xdccb,0xd834,0xdccc,
1.1299 + 0xd834,0xdccd,0xd834,0xdcce,0xd834,0xdccf,0xd834,0xdcd0,0xd834,0xdcd1,
1.1300 + 0xd834,0xdcd2,0xd834,0xdcd3,0xd834,0xdcd4,0xd834,0xdcd5,0xd834,0xdcd6,
1.1301 + 0xd834,0xdcd7,0xd834,0xdcd8,0xd834,0xdcd9,0xd834,0xdcda,0xd834,0xdcdb,
1.1302 + 0xd834,0xdcdc,0xd834,0xdcdd,0xd834,0xdcde,0xd834,0xdcdf,0xd834,0xdce0,
1.1303 + 0xd834,0xdce1,0xd834,0xdce2,0xd834,0xdce3,0xd834,0xdce4,0xd834,0xdce5,
1.1304 + 0xd834,0xdce6,0xd834,0xdce7,0xd834,0xdce8,0xd834,0xdce9,0xd834,0xdcea,
1.1305 + 0xd834,0xdceb,0xd834,0xdcec,0xd834,0xdced,0xd834,0xdcee,0xd834,0xdcef,
1.1306 + 0xd834,0xdcf0,0xd834,0xdcf1,0xd834,0xdcf2,0xd834,0xdcf3,0xd834,0xdcf4,
1.1307 + 0xd834,0xdcf5,0xd834,0xdd00,0xd834,0xdd01,0xd834,0xdd02,0xd834,0xdd03,
1.1308 + 0xd834,0xdd04,0xd834,0xdd05,0xd834,0xdd06,0xd834,0xdd07,0xd834,0xdd08,
1.1309 + 0xd834,0xdd09,0xd834,0xdd0a,0xd834,0xdd0b,0xd834,0xdd0c,0xd834,0xdd0d,
1.1310 + 0xd834,0xdd0e,0xd834,0xdd0f,0xd834,0xdd10,0xd834,0xdd11,0xd834,0xdd12,
1.1311 + 0xd834,0xdd13,0xd834,0xdd14,0xd834,0xdd15,0xd834,0xdd16,0xd834,0xdd17,
1.1312 + 0xd834,0xdd18,0xd834,0xdd19,0xd834,0xdd1a,0xd834,0xdd1b,0xd834,0xdd1c,
1.1313 + 0xd834,0xdd1d,0xd834,0xdd1e,0xd834,0xdd1f,0xd834,0xdd20,0xd834,0xdd21,
1.1314 + 0xd834,0xdd22,0xd834,0xdd23,0xd834,0xdd24,0xd834,0xdd25,0xd834,0xdd26,
1.1315 + 0xd834,0xdd2a,0xd834,0xdd2b,0xd834,0xdd2c,0xd834,0xdd2d,0xd834,0xdd2e,
1.1316 + 0xd834,0xdd2f,0xd834,0xdd30,0xd834,0xdd31,0xd834,0xdd32,0xd834,0xdd33,
1.1317 + 0xd834,0xdd34,0xd834,0xdd35,0xd834,0xdd36,0xd834,0xdd37,0xd834,0xdd38,
1.1318 + 0xd834,0xdd39,0xd834,0xdd3a,0xd834,0xdd3b,0xd834,0xdd3c,0xd834,0xdd3d,
1.1319 + 0xd834,0xdd3e,0xd834,0xdd3f,0xd834,0xdd40,0xd834,0xdd41,0xd834,0xdd42,
1.1320 + 0xd834,0xdd43,0xd834,0xdd44,0xd834,0xdd45,0xd834,0xdd46,0xd834,0xdd47,
1.1321 + 0xd834,0xdd48,0xd834,0xdd49,0xd834,0xdd4a,0xd834,0xdd4b,0xd834,0xdd4c,
1.1322 + 0xd834,0xdd4d,0xd834,0xdd4e,0xd834,0xdd4f,0xd834,0xdd50,0xd834,0xdd51,
1.1323 + 0xd834,0xdd52,0xd834,0xdd53,0xd834,0xdd54,0xd834,0xdd55,0xd834,0xdd56,
1.1324 + 0xd834,0xdd57,0xd834,0xdd58,0xd834,0xdd59,0xd834,0xdd5a,0xd834,0xdd5b,
1.1325 + 0xd834,0xdd5c,0xd834,0xdd5d,0xd834,0xdd5e,0xd834,0xdd5f,0xd834,0xdd60,
1.1326 + 0xd834,0xdd61,0xd834,0xdd62,0xd834,0xdd63,0xd834,0xdd64,0xd834,0xdd6a,
1.1327 + 0xd834,0xdd6b,0xd834,0xdd6c,0xd834,0xdd83,0xd834,0xdd84,0xd834,0xdd8c,
1.1328 + 0xd834,0xdd8d,0xd834,0xdd8e,0xd834,0xdd8f,0xd834,0xdd90,0xd834,0xdd91,
1.1329 + 0xd834,0xdd92,0xd834,0xdd93,0xd834,0xdd94,0xd834,0xdd95,0xd834,0xdd96,
1.1330 + 0xd834,0xdd97,0xd834,0xdd98,0xd834,0xdd99,0xd834,0xdd9a,0xd834,0xdd9b,
1.1331 + 0xd834,0xdd9c,0xd834,0xdd9d,0xd834,0xdd9e,0xd834,0xdd9f,0xd834,0xdda0,
1.1332 + 0xd834,0xdda1,0xd834,0xdda2,0xd834,0xdda3,0xd834,0xdda4,0xd834,0xdda5,
1.1333 + 0xd834,0xdda6,0xd834,0xdda7,0xd834,0xdda8,0xd834,0xdda9,0xd834,0xddae,
1.1334 + 0xd834,0xddaf,0xd834,0xddb0,0xd834,0xddb1,0xd834,0xddb2,0xd834,0xddb3,
1.1335 + 0xd834,0xddb4,0xd834,0xddb5,0xd834,0xddb6,0xd834,0xddb7,0xd834,0xddb8,
1.1336 + 0xd834,0xddb9,0xd834,0xddba,0xd834,0xddbb,0xd834,0xddbc,0xd834,0xddbd,
1.1337 + 0xd834,0xddbe,0xd834,0xddbf,0xd834,0xddc0,0xd834,0xddc1,0xd834,0xddc2,
1.1338 + 0xd834,0xddc3,0xd834,0xddc4,0xd834,0xddc5,0xd834,0xddc6,0xd834,0xddc7,
1.1339 + 0xd834,0xddc8,0xd834,0xddc9,0xd834,0xddca,0xd834,0xddcb,0xd834,0xddcc,
1.1340 + 0xd834,0xddcd,0xd834,0xddce,0xd834,0xddcf,0xd834,0xddd0,0xd834,0xddd1,
1.1341 + 0xd834,0xddd2,0xd834,0xddd3,0xd834,0xddd4,0xd834,0xddd5,0xd834,0xddd6,
1.1342 + 0xd834,0xddd7,0xd834,0xddd8,0xd834,0xddd9,0xd834,0xddda,0xd834,0xdddb,
1.1343 + 0xd834,0xdddc,0xd834,0xdddd,0xd834,0xdf60,0xd834,0xdf61,0xd834,0xdf62,
1.1344 + 0xd834,0xdf63,0xd834,0xdf64,0xd834,0xdf65,0xd834,0xdf66,0xd834,0xdf67,
1.1345 + 0xd834,0xdf68,0xd834,0xdf69,0xd834,0xdf6a,0xd834,0xdf6b,0xd834,0xdf6c,
1.1346 + 0xd834,0xdf6d,0xd834,0xdf6e,0xd834,0xdf6f,0xd834,0xdf70,0xd834,0xdf71,
1.1347 + 0xd835,0xdc00,0xd835,0xdc01,0xd835,0xdc02,0xd835,0xdc03,0xd835,0xdc04,
1.1348 + 0xd835,0xdc05,0xd835,0xdc06,0xd835,0xdc07,0xd835,0xdc08,0xd835,0xdc09,
1.1349 + 0xd835,0xdc0a,0xd835,0xdc0b,0xd835,0xdc0c,0xd835,0xdc0d,0xd835,0xdc0e,
1.1350 + 0xd835,0xdc0f,0xd835,0xdc10,0xd835,0xdc11,0xd835,0xdc12,0xd835,0xdc13,
1.1351 + 0xd835,0xdc14,0xd835,0xdc15,0xd835,0xdc16,0xd835,0xdc17,0xd835,0xdc18,
1.1352 + 0xd835,0xdc19,0xd835,0xdc1a,0xd835,0xdc1b,0xd835,0xdc1c,0xd835,0xdc1d,
1.1353 + 0xd835,0xdc1e,0xd835,0xdc1f,0xd835,0xdc20,0xd835,0xdc21,0xd835,0xdc22,
1.1354 + 0xd835,0xdc23,0xd835,0xdc24,0xd835,0xdc25,0xd835,0xdc26,0xd835,0xdc27,
1.1355 + 0xd835,0xdc28,0xd835,0xdc29,0xd835,0xdc2a,0xd835,0xdc2b,0xd835,0xdc2c,
1.1356 + 0xd835,0xdc2d,0xd835,0xdc2e,0xd835,0xdc2f,0xd835,0xdc30,0xd835,0xdc31,
1.1357 + 0xd835,0xdc32,0xd835,0xdc33,0xd835,0xdc34,0xd835,0xdc35,0xd835,0xdc36,
1.1358 + 0xd835,0xdc37,0xd835,0xdc38,0xd835,0xdc39,0xd835,0xdc3a,0xd835,0xdc3b,
1.1359 + 0xd835,0xdc3c,0xd835,0xdc3d,0xd835,0xdc3e,0xd835,0xdc3f,0xd835,0xdc40,
1.1360 + 0xd835,0xdc41,0xd835,0xdc42,0xd835,0xdc43,0xd835,0xdc44,0xd835,0xdc45,
1.1361 + 0xd835,0xdc46,0xd835,0xdc47,0xd835,0xdc48,0xd835,0xdc49,0xd835,0xdc4a,
1.1362 + 0xd835,0xdc4b,0xd835,0xdc4c,0xd835,0xdc4d,0xd835,0xdc4e,0xd835,0xdc4f,
1.1363 + 0xd835,0xdc50,0xd835,0xdc51,0xd835,0xdc52,0xd835,0xdc53,0xd835,0xdc54,
1.1364 + 0xd835,0xdc56,0xd835,0xdc57,0xd835,0xdc58,0xd835,0xdc59,0xd835,0xdc5a,
1.1365 + 0xd835,0xdc5b,0xd835,0xdc5c,0xd835,0xdc5d,0xd835,0xdc5e,0xd835,0xdc5f,
1.1366 + 0xd835,0xdc60,0xd835,0xdc61,0xd835,0xdc62,0xd835,0xdc63,0xd835,0xdc64,
1.1367 + 0xd835,0xdc65,0xd835,0xdc66,0xd835,0xdc67,0xd835,0xdc68,0xd835,0xdc69,
1.1368 + 0xd835,0xdc6a,0xd835,0xdc6b,0xd835,0xdc6c,0xd835,0xdc6d,0xd835,0xdc6e,
1.1369 + 0xd835,0xdc6f,0xd835,0xdc70,0xd835,0xdc71,0xd835,0xdc72,0xd835,0xdc73,
1.1370 + 0xd835,0xdc74,0xd835,0xdc75,0xd835,0xdc76,0xd835,0xdc77,0xd835,0xdc78,
1.1371 + 0xd835,0xdc79,0xd835,0xdc7a,0xd835,0xdc7b,0xd835,0xdc7c,0xd835,0xdc7d,
1.1372 + 0xd835,0xdc7e,0xd835,0xdc7f,0xd835,0xdc80,0xd835,0xdc81,0xd835,0xdc82,
1.1373 + 0xd835,0xdc83,0xd835,0xdc84,0xd835,0xdc85,0xd835,0xdc86,0xd835,0xdc87,
1.1374 + 0xd835,0xdc88,0xd835,0xdc89,0xd835,0xdc8a,0xd835,0xdc8b,0xd835,0xdc8c,
1.1375 + 0xd835,0xdc8d,0xd835,0xdc8e,0xd835,0xdc8f,0xd835,0xdc90,0xd835,0xdc91,
1.1376 + 0xd835,0xdc92,0xd835,0xdc93,0xd835,0xdc94,0xd835,0xdc95,0xd835,0xdc96,
1.1377 + 0xd835,0xdc97,0xd835,0xdc98,0xd835,0xdc99,0xd835,0xdc9a,0xd835,0xdc9b,
1.1378 + 0xd835,0xdc9c,0xd835,0xdc9e,0xd835,0xdc9f,0xd835,0xdca2,0xd835,0xdca5,
1.1379 + 0xd835,0xdca6,0xd835,0xdca9,0xd835,0xdcaa,0xd835,0xdcab,0xd835,0xdcac,
1.1380 + 0xd835,0xdcae,0xd835,0xdcaf,0xd835,0xdcb0,0xd835,0xdcb1,0xd835,0xdcb2,
1.1381 + 0xd835,0xdcb3,0xd835,0xdcb4,0xd835,0xdcb5,0xd835,0xdcb6,0xd835,0xdcb7,
1.1382 + 0xd835,0xdcb8,0xd835,0xdcb9,0xd835,0xdcbb,0xd835,0xdcbd,0xd835,0xdcbe,
1.1383 + 0xd835,0xdcbf,0xd835,0xdcc0,0xd835,0xdcc1,0xd835,0xdcc2,0xd835,0xdcc3,
1.1384 + 0xd835,0xdcc5,0xd835,0xdcc6,0xd835,0xdcc7,0xd835,0xdcc8,0xd835,0xdcc9,
1.1385 + 0xd835,0xdcca,0xd835,0xdccb,0xd835,0xdccc,0xd835,0xdccd,0xd835,0xdcce,
1.1386 + 0xd835,0xdccf,0xd835,0xdcd0,0xd835,0xdcd1,0xd835,0xdcd2,0xd835,0xdcd3,
1.1387 + 0xd835,0xdcd4,0xd835,0xdcd5,0xd835,0xdcd6,0xd835,0xdcd7,0xd835,0xdcd8,
1.1388 + 0xd835,0xdcd9,0xd835,0xdcda,0xd835,0xdcdb,0xd835,0xdcdc,0xd835,0xdcdd,
1.1389 + 0xd835,0xdcde,0xd835,0xdcdf,0xd835,0xdce0,0xd835,0xdce1,0xd835,0xdce2,
1.1390 + 0xd835,0xdce3,0xd835,0xdce4,0xd835,0xdce5,0xd835,0xdce6,0xd835,0xdce7,
1.1391 + 0xd835,0xdce8,0xd835,0xdce9,0xd835,0xdcea,0xd835,0xdceb,0xd835,0xdcec,
1.1392 + 0xd835,0xdced,0xd835,0xdcee,0xd835,0xdcef,0xd835,0xdcf0,0xd835,0xdcf1,
1.1393 + 0xd835,0xdcf2,0xd835,0xdcf3,0xd835,0xdcf4,0xd835,0xdcf5,0xd835,0xdcf6,
1.1394 + 0xd835,0xdcf7,0xd835,0xdcf8,0xd835,0xdcf9,0xd835,0xdcfa,0xd835,0xdcfb,
1.1395 + 0xd835,0xdcfc,0xd835,0xdcfd,0xd835,0xdcfe,0xd835,0xdcff,0xd835,0xdd00,
1.1396 + 0xd835,0xdd01,0xd835,0xdd02,0xd835,0xdd03,0xd835,0xdd04,0xd835,0xdd05,
1.1397 + 0xd835,0xdd07,0xd835,0xdd08,0xd835,0xdd09,0xd835,0xdd0a,0xd835,0xdd0d,
1.1398 + 0xd835,0xdd0e,0xd835,0xdd0f,0xd835,0xdd10,0xd835,0xdd11,0xd835,0xdd12,
1.1399 + 0xd835,0xdd13,0xd835,0xdd14,0xd835,0xdd16,0xd835,0xdd17,0xd835,0xdd18,
1.1400 + 0xd835,0xdd19,0xd835,0xdd1a,0xd835,0xdd1b,0xd835,0xdd1c,0xd835,0xdd1e,
1.1401 + 0xd835,0xdd1f,0xd835,0xdd20,0xd835,0xdd21,0xd835,0xdd22,0xd835,0xdd23,
1.1402 + 0xd835,0xdd24,0xd835,0xdd25,0xd835,0xdd26,0xd835,0xdd27,0xd835,0xdd28,
1.1403 + 0xd835,0xdd29,0xd835,0xdd2a,0xd835,0xdd2b,0xd835,0xdd2c,0xd835,0xdd2d,
1.1404 + 0xd835,0xdd2e,0xd835,0xdd2f,0xd835,0xdd30,0xd835,0xdd31,0xd835,0xdd32,
1.1405 + 0xd835,0xdd33,0xd835,0xdd34,0xd835,0xdd35,0xd835,0xdd36,0xd835,0xdd37,
1.1406 + 0xd835,0xdd38,0xd835,0xdd39,0xd835,0xdd3b,0xd835,0xdd3c,0xd835,0xdd3d,
1.1407 + 0xd835,0xdd3e,0xd835,0xdd40,0xd835,0xdd41,0xd835,0xdd42,0xd835,0xdd43,
1.1408 + 0xd835,0xdd44,0xd835,0xdd46,0xd835,0xdd4a,0xd835,0xdd4b,0xd835,0xdd4c,
1.1409 + 0xd835,0xdd4d,0xd835,0xdd4e,0xd835,0xdd4f,0xd835,0xdd50,0xd835,0xdd52,
1.1410 + 0xd835,0xdd53,0xd835,0xdd54,0xd835,0xdd55,0xd835,0xdd56,0xd835,0xdd57,
1.1411 + 0xd835,0xdd58,0xd835,0xdd59,0xd835,0xdd5a,0xd835,0xdd5b,0xd835,0xdd5c,
1.1412 + 0xd835,0xdd5d,0xd835,0xdd5e,0xd835,0xdd5f,0xd835,0xdd60,0xd835,0xdd61,
1.1413 + 0xd835,0xdd62,0xd835,0xdd63,0xd835,0xdd64,0xd835,0xdd65,0xd835,0xdd66,
1.1414 + 0xd835,0xdd67,0xd835,0xdd68,0xd835,0xdd69,0xd835,0xdd6a,0xd835,0xdd6b,
1.1415 + 0xd835,0xdd6c,0xd835,0xdd6d,0xd835,0xdd6e,0xd835,0xdd6f,0xd835,0xdd70,
1.1416 + 0xd835,0xdd71,0xd835,0xdd72,0xd835,0xdd73,0xd835,0xdd74,0xd835,0xdd75,
1.1417 + 0xd835,0xdd76,0xd835,0xdd77,0xd835,0xdd78,0xd835,0xdd79,0xd835,0xdd7a,
1.1418 + 0xd835,0xdd7b,0xd835,0xdd7c,0xd835,0xdd7d,0xd835,0xdd7e,0xd835,0xdd7f,
1.1419 + 0xd835,0xdd80,0xd835,0xdd81,0xd835,0xdd82,0xd835,0xdd83,0xd835,0xdd84,
1.1420 + 0xd835,0xdd85,0xd835,0xdd86,0xd835,0xdd87,0xd835,0xdd88,0xd835,0xdd89,
1.1421 + 0xd835,0xdd8a,0xd835,0xdd8b,0xd835,0xdd8c,0xd835,0xdd8d,0xd835,0xdd8e,
1.1422 + 0xd835,0xdd8f,0xd835,0xdd90,0xd835,0xdd91,0xd835,0xdd92,0xd835,0xdd93,
1.1423 + 0xd835,0xdd94,0xd835,0xdd95,0xd835,0xdd96,0xd835,0xdd97,0xd835,0xdd98,
1.1424 + 0xd835,0xdd99,0xd835,0xdd9a,0xd835,0xdd9b,0xd835,0xdd9c,0xd835,0xdd9d,
1.1425 + 0xd835,0xdd9e,0xd835,0xdd9f,0xd835,0xdda0,0xd835,0xdda1,0xd835,0xdda2,
1.1426 + 0xd835,0xdda3,0xd835,0xdda4,0xd835,0xdda5,0xd835,0xdda6,0xd835,0xdda7,
1.1427 + 0xd835,0xdda8,0xd835,0xdda9,0xd835,0xddaa,0xd835,0xddab,0xd835,0xddac,
1.1428 + 0xd835,0xddad,0xd835,0xddae,0xd835,0xddaf,0xd835,0xddb0,0xd835,0xddb1,
1.1429 + 0xd835,0xddb2,0xd835,0xddb3,0xd835,0xddb4,0xd835,0xddb5,0xd835,0xddb6,
1.1430 + 0xd835,0xddb7,0xd835,0xddb8,0xd835,0xddb9,0xd835,0xddba,0xd835,0xddbb,
1.1431 + 0xd835,0xddbc,0xd835,0xddbd,0xd835,0xddbe,0xd835,0xddbf,0xd835,0xddc0,
1.1432 + 0xd835,0xddc1,0xd835,0xddc2,0xd835,0xddc3,0xd835,0xddc4,0xd835,0xddc5,
1.1433 + 0xd835,0xddc6,0xd835,0xddc7,0xd835,0xddc8,0xd835,0xddc9,0xd835,0xddca,
1.1434 + 0xd835,0xddcb,0xd835,0xddcc,0xd835,0xddcd,0xd835,0xddce,0xd835,0xddcf,
1.1435 + 0xd835,0xddd0,0xd835,0xddd1,0xd835,0xddd2,0xd835,0xddd3,0xd835,0xddd4,
1.1436 + 0xd835,0xddd5,0xd835,0xddd6,0xd835,0xddd7,0xd835,0xddd8,0xd835,0xddd9,
1.1437 + 0xd835,0xddda,0xd835,0xdddb,0xd835,0xdddc,0xd835,0xdddd,0xd835,0xddde,
1.1438 + 0xd835,0xdddf,0xd835,0xdde0,0xd835,0xdde1,0xd835,0xdde2,0xd835,0xdde3,
1.1439 + 0xd835,0xdde4,0xd835,0xdde5,0xd835,0xdde6,0xd835,0xdde7,0xd835,0xdde8,
1.1440 + 0xd835,0xdde9,0xd835,0xddea,0xd835,0xddeb,0xd835,0xddec,0xd835,0xdded,
1.1441 + 0xd835,0xddee,0xd835,0xddef,0xd835,0xddf0,0xd835,0xddf1,0xd835,0xddf2,
1.1442 + 0xd835,0xddf3,0xd835,0xddf4,0xd835,0xddf5,0xd835,0xddf6,0xd835,0xddf7,
1.1443 + 0xd835,0xddf8,0xd835,0xddf9,0xd835,0xddfa,0xd835,0xddfb,0xd835,0xddfc,
1.1444 + 0xd835,0xddfd,0xd835,0xddfe,0xd835,0xddff,0xd835,0xde00,0xd835,0xde01,
1.1445 + 0xd835,0xde02,0xd835,0xde03,0xd835,0xde04,0xd835,0xde05,0xd835,0xde06,
1.1446 + 0xd835,0xde07,0xd835,0xde08,0xd835,0xde09,0xd835,0xde0a,0xd835,0xde0b,
1.1447 + 0xd835,0xde0c,0xd835,0xde0d,0xd835,0xde0e,0xd835,0xde0f,0xd835,0xde10,
1.1448 + 0xd835,0xde11,0xd835,0xde12,0xd835,0xde13,0xd835,0xde14,0xd835,0xde15,
1.1449 + 0xd835,0xde16,0xd835,0xde17,0xd835,0xde18,0xd835,0xde19,0xd835,0xde1a,
1.1450 + 0xd835,0xde1b,0xd835,0xde1c,0xd835,0xde1d,0xd835,0xde1e,0xd835,0xde1f,
1.1451 + 0xd835,0xde20,0xd835,0xde21,0xd835,0xde22,0xd835,0xde23,0xd835,0xde24,
1.1452 + 0xd835,0xde25,0xd835,0xde26,0xd835,0xde27,0xd835,0xde28,0xd835,0xde29,
1.1453 + 0xd835,0xde2a,0xd835,0xde2b,0xd835,0xde2c,0xd835,0xde2d,0xd835,0xde2e,
1.1454 + 0xd835,0xde2f,0xd835,0xde30,0xd835,0xde31,0xd835,0xde32,0xd835,0xde33,
1.1455 + 0xd835,0xde34,0xd835,0xde35,0xd835,0xde36,0xd835,0xde37,0xd835,0xde38,
1.1456 + 0xd835,0xde39,0xd835,0xde3a,0xd835,0xde3b,0xd835,0xde3c,0xd835,0xde3d,
1.1457 + 0xd835,0xde3e,0xd835,0xde3f,0xd835,0xde40,0xd835,0xde41,0xd835,0xde42,
1.1458 + 0xd835,0xde43,0xd835,0xde44,0xd835,0xde45,0xd835,0xde46,0xd835,0xde47,
1.1459 + 0xd835,0xde48,0xd835,0xde49,0xd835,0xde4a,0xd835,0xde4b,0xd835,0xde4c,
1.1460 + 0xd835,0xde4d,0xd835,0xde4e,0xd835,0xde4f,0xd835,0xde50,0xd835,0xde51,
1.1461 + 0xd835,0xde52,0xd835,0xde53,0xd835,0xde54,0xd835,0xde55,0xd835,0xde56,
1.1462 + 0xd835,0xde57,0xd835,0xde58,0xd835,0xde59,0xd835,0xde5a,0xd835,0xde5b,
1.1463 + 0xd835,0xde5c,0xd835,0xde5d,0xd835,0xde5e,0xd835,0xde5f,0xd835,0xde60,
1.1464 + 0xd835,0xde61,0xd835,0xde62,0xd835,0xde63,0xd835,0xde64,0xd835,0xde65,
1.1465 + 0xd835,0xde66,0xd835,0xde67,0xd835,0xde68,0xd835,0xde69,0xd835,0xde6a,
1.1466 + 0xd835,0xde6b,0xd835,0xde6c,0xd835,0xde6d,0xd835,0xde6e,0xd835,0xde6f,
1.1467 + 0xd835,0xde70,0xd835,0xde71,0xd835,0xde72,0xd835,0xde73,0xd835,0xde74,
1.1468 + 0xd835,0xde75,0xd835,0xde76,0xd835,0xde77,0xd835,0xde78,0xd835,0xde79,
1.1469 + 0xd835,0xde7a,0xd835,0xde7b,0xd835,0xde7c,0xd835,0xde7d,0xd835,0xde7e,
1.1470 + 0xd835,0xde7f,0xd835,0xde80,0xd835,0xde81,0xd835,0xde82,0xd835,0xde83,
1.1471 + 0xd835,0xde84,0xd835,0xde85,0xd835,0xde86,0xd835,0xde87,0xd835,0xde88,
1.1472 + 0xd835,0xde89,0xd835,0xde8a,0xd835,0xde8b,0xd835,0xde8c,0xd835,0xde8d,
1.1473 + 0xd835,0xde8e,0xd835,0xde8f,0xd835,0xde90,0xd835,0xde91,0xd835,0xde92,
1.1474 + 0xd835,0xde93,0xd835,0xde94,0xd835,0xde95,0xd835,0xde96,0xd835,0xde97,
1.1475 + 0xd835,0xde98,0xd835,0xde99,0xd835,0xde9a,0xd835,0xde9b,0xd835,0xde9c,
1.1476 + 0xd835,0xde9d,0xd835,0xde9e,0xd835,0xde9f,0xd835,0xdea0,0xd835,0xdea1,
1.1477 + 0xd835,0xdea2,0xd835,0xdea3,0xd835,0xdea4,0xd835,0xdea5,0xd835,0xdea8,
1.1478 + 0xd835,0xdea9,0xd835,0xdeaa,0xd835,0xdeab,0xd835,0xdeac,0xd835,0xdead,
1.1479 + 0xd835,0xdeae,0xd835,0xdeaf,0xd835,0xdeb0,0xd835,0xdeb1,0xd835,0xdeb2,
1.1480 + 0xd835,0xdeb3,0xd835,0xdeb4,0xd835,0xdeb5,0xd835,0xdeb6,0xd835,0xdeb7,
1.1481 + 0xd835,0xdeb8,0xd835,0xdeb9,0xd835,0xdeba,0xd835,0xdebb,0xd835,0xdebc,
1.1482 + 0xd835,0xdebd,0xd835,0xdebe,0xd835,0xdebf,0xd835,0xdec0,0xd835,0xdec1,
1.1483 + 0xd835,0xdec2,0xd835,0xdec3,0xd835,0xdec4,0xd835,0xdec5,0xd835,0xdec6,
1.1484 + 0xd835,0xdec7,0xd835,0xdec8,0xd835,0xdec9,0xd835,0xdeca,0xd835,0xdecb,
1.1485 + 0xd835,0xdecc,0xd835,0xdecd,0xd835,0xdece,0xd835,0xdecf,0xd835,0xded0,
1.1486 + 0xd835,0xded1,0xd835,0xded2,0xd835,0xded3,0xd835,0xded4,0xd835,0xded5,
1.1487 + 0xd835,0xded6,0xd835,0xded7,0xd835,0xded8,0xd835,0xded9,0xd835,0xdeda,
1.1488 + 0xd835,0xdedb,0xd835,0xdedc,0xd835,0xdedd,0xd835,0xdede,0xd835,0xdedf,
1.1489 + 0xd835,0xdee0,0xd835,0xdee1,0xd835,0xdee2,0xd835,0xdee3,0xd835,0xdee4,
1.1490 + 0xd835,0xdee5,0xd835,0xdee6,0xd835,0xdee7,0xd835,0xdee8,0xd835,0xdee9,
1.1491 + 0xd835,0xdeea,0xd835,0xdeeb,0xd835,0xdeec,0xd835,0xdeed,0xd835,0xdeee,
1.1492 + 0xd835,0xdeef,0xd835,0xdef0,0xd835,0xdef1,0xd835,0xdef2,0xd835,0xdef3,
1.1493 + 0xd835,0xdef4,0xd835,0xdef5,0xd835,0xdef6,0xd835,0xdef7,0xd835,0xdef8,
1.1494 + 0xd835,0xdef9,0xd835,0xdefa,0xd835,0xdefb,0xd835,0xdefc,0xd835,0xdefd,
1.1495 + 0xd835,0xdefe,0xd835,0xdeff,0xd835,0xdf00,0xd835,0xdf01,0xd835,0xdf02,
1.1496 + 0xd835,0xdf03,0xd835,0xdf04,0xd835,0xdf05,0xd835,0xdf06,0xd835,0xdf07,
1.1497 + 0xd835,0xdf08,0xd835,0xdf09,0xd835,0xdf0a,0xd835,0xdf0b,0xd835,0xdf0c,
1.1498 + 0xd835,0xdf0d,0xd835,0xdf0e,0xd835,0xdf0f,0xd835,0xdf10,0xd835,0xdf11,
1.1499 + 0xd835,0xdf12,0xd835,0xdf13,0xd835,0xdf14,0xd835,0xdf15,0xd835,0xdf16,
1.1500 + 0xd835,0xdf17,0xd835,0xdf18,0xd835,0xdf19,0xd835,0xdf1a,0xd835,0xdf1b,
1.1501 + 0xd835,0xdf1c,0xd835,0xdf1d,0xd835,0xdf1e,0xd835,0xdf1f,0xd835,0xdf20,
1.1502 + 0xd835,0xdf21,0xd835,0xdf22,0xd835,0xdf23,0xd835,0xdf24,0xd835,0xdf25,
1.1503 + 0xd835,0xdf26,0xd835,0xdf27,0xd835,0xdf28,0xd835,0xdf29,0xd835,0xdf2a,
1.1504 + 0xd835,0xdf2b,0xd835,0xdf2c,0xd835,0xdf2d,0xd835,0xdf2e,0xd835,0xdf2f,
1.1505 + 0xd835,0xdf30,0xd835,0xdf31,0xd835,0xdf32,0xd835,0xdf33,0xd835,0xdf34,
1.1506 + 0xd835,0xdf35,0xd835,0xdf36,0xd835,0xdf37,0xd835,0xdf38,0xd835,0xdf39,
1.1507 + 0xd835,0xdf3a,0xd835,0xdf3b,0xd835,0xdf3c,0xd835,0xdf3d,0xd835,0xdf3e,
1.1508 + 0xd835,0xdf3f,0xd835,0xdf40,0xd835,0xdf41,0xd835,0xdf42,0xd835,0xdf43,
1.1509 + 0xd835,0xdf44,0xd835,0xdf45,0xd835,0xdf46,0xd835,0xdf47,0xd835,0xdf48,
1.1510 + 0xd835,0xdf49,0xd835,0xdf4a,0xd835,0xdf4b,0xd835,0xdf4c,0xd835,0xdf4d,
1.1511 + 0xd835,0xdf4e,0xd835,0xdf4f,0xd835,0xdf50,0xd835,0xdf51,0xd835,0xdf52,
1.1512 + 0xd835,0xdf53,0xd835,0xdf54,0xd835,0xdf55,0xd835,0xdf56,0xd835,0xdf57,
1.1513 + 0xd835,0xdf58,0xd835,0xdf59,0xd835,0xdf5a,0xd835,0xdf5b,0xd835,0xdf5c,
1.1514 + 0xd835,0xdf5d,0xd835,0xdf5e,0xd835,0xdf5f,0xd835,0xdf60,0xd835,0xdf61,
1.1515 + 0xd835,0xdf62,0xd835,0xdf63,0xd835,0xdf64,0xd835,0xdf65,0xd835,0xdf66,
1.1516 + 0xd835,0xdf67,0xd835,0xdf68,0xd835,0xdf69,0xd835,0xdf6a,0xd835,0xdf6b,
1.1517 + 0xd835,0xdf6c,0xd835,0xdf6d,0xd835,0xdf6e,0xd835,0xdf6f,0xd835,0xdf70,
1.1518 + 0xd835,0xdf71,0xd835,0xdf72,0xd835,0xdf73,0xd835,0xdf74,0xd835,0xdf75,
1.1519 + 0xd835,0xdf76,0xd835,0xdf77,0xd835,0xdf78,0xd835,0xdf79,0xd835,0xdf7a,
1.1520 + 0xd835,0xdf7b,0xd835,0xdf7c,0xd835,0xdf7d,0xd835,0xdf7e,0xd835,0xdf7f,
1.1521 + 0xd835,0xdf80,0xd835,0xdf81,0xd835,0xdf82,0xd835,0xdf83,0xd835,0xdf84,
1.1522 + 0xd835,0xdf85,0xd835,0xdf86,0xd835,0xdf87,0xd835,0xdf88,0xd835,0xdf89,
1.1523 + 0xd835,0xdf8a,0xd835,0xdf8b,0xd835,0xdf8c,0xd835,0xdf8d,0xd835,0xdf8e,
1.1524 + 0xd835,0xdf8f,0xd835,0xdf90,0xd835,0xdf91,0xd835,0xdf92,0xd835,0xdf93,
1.1525 + 0xd835,0xdf94,0xd835,0xdf95,0xd835,0xdf96,0xd835,0xdf97,0xd835,0xdf98,
1.1526 + 0xd835,0xdf99,0xd835,0xdf9a,0xd835,0xdf9b,0xd835,0xdf9c,0xd835,0xdf9d,
1.1527 + 0xd835,0xdf9e,0xd835,0xdf9f,0xd835,0xdfa0,0xd835,0xdfa1,0xd835,0xdfa2,
1.1528 + 0xd835,0xdfa3,0xd835,0xdfa4,0xd835,0xdfa5,0xd835,0xdfa6,0xd835,0xdfa7,
1.1529 + 0xd835,0xdfa8,0xd835,0xdfa9,0xd835,0xdfaa,0xd835,0xdfab,0xd835,0xdfac,
1.1530 + 0xd835,0xdfad,0xd835,0xdfae,0xd835,0xdfaf,0xd835,0xdfb0,0xd835,0xdfb1,
1.1531 + 0xd835,0xdfb2,0xd835,0xdfb3,0xd835,0xdfb4,0xd835,0xdfb5,0xd835,0xdfb6,
1.1532 + 0xd835,0xdfb7,0xd835,0xdfb8,0xd835,0xdfb9,0xd835,0xdfba,0xd835,0xdfbb,
1.1533 + 0xd835,0xdfbc,0xd835,0xdfbd,0xd835,0xdfbe,0xd835,0xdfbf,0xd835,0xdfc0,
1.1534 + 0xd835,0xdfc1,0xd835,0xdfc2,0xd835,0xdfc3,0xd835,0xdfc4,0xd835,0xdfc5,
1.1535 + 0xd835,0xdfc6,0xd835,0xdfc7,0xd835,0xdfc8,0xd835,0xdfc9,0xd835,0xdfca,
1.1536 + 0xd835,0xdfcb,0xd840,0xdc00,0xd869,0xded6,0xd87e,0xdc00,0xd87e,0xdc01,
1.1537 + 0xd87e,0xdc02,0xd87e,0xdc03,0xd87e,0xdc04,0xd87e,0xdc05,0xd87e,0xdc06,
1.1538 + 0xd87e,0xdc07,0xd87e,0xdc08,0xd87e,0xdc09,0xd87e,0xdc0a,0xd87e,0xdc0b,
1.1539 + 0xd87e,0xdc0c,0xd87e,0xdc0d,0xd87e,0xdc0e,0xd87e,0xdc0f,0xd87e,0xdc10,
1.1540 + 0xd87e,0xdc11,0xd87e,0xdc12,0xd87e,0xdc13,0xd87e,0xdc14,0xd87e,0xdc15,
1.1541 + 0xd87e,0xdc16,0xd87e,0xdc17,0xd87e,0xdc18,0xd87e,0xdc19,0xd87e,0xdc1a,
1.1542 + 0xd87e,0xdc1b,0xd87e,0xdc1c,0xd87e,0xdc1d,0xd87e,0xdc1e,0xd87e,0xdc1f,
1.1543 + 0xd87e,0xdc20,0xd87e,0xdc21,0xd87e,0xdc22,0xd87e,0xdc23,0xd87e,0xdc24,
1.1544 + 0xd87e,0xdc25,0xd87e,0xdc26,0xd87e,0xdc27,0xd87e,0xdc28,0xd87e,0xdc29,
1.1545 + 0xd87e,0xdc2a,0xd87e,0xdc2b,0xd87e,0xdc2c,0xd87e,0xdc2d,0xd87e,0xdc2e,
1.1546 + 0xd87e,0xdc2f,0xd87e,0xdc30,0xd87e,0xdc31,0xd87e,0xdc32,0xd87e,0xdc33,
1.1547 + 0xd87e,0xdc34,0xd87e,0xdc35,0xd87e,0xdc36,0xd87e,0xdc37,0xd87e,0xdc38,
1.1548 + 0xd87e,0xdc39,0xd87e,0xdc3a,0xd87e,0xdc3b,0xd87e,0xdc3c,0xd87e,0xdc3d,
1.1549 + 0xd87e,0xdc3e,0xd87e,0xdc3f,0xd87e,0xdc40,0xd87e,0xdc41,0xd87e,0xdc42,
1.1550 + 0xd87e,0xdc43,0xd87e,0xdc44,0xd87e,0xdc45,0xd87e,0xdc46,0xd87e,0xdc47,
1.1551 + 0xd87e,0xdc48,0xd87e,0xdc49,0xd87e,0xdc4a,0xd87e,0xdc4b,0xd87e,0xdc4c,
1.1552 + 0xd87e,0xdc4d,0xd87e,0xdc4e,0xd87e,0xdc4f,0xd87e,0xdc50,0xd87e,0xdc51,
1.1553 + 0xd87e,0xdc52,0xd87e,0xdc53,0xd87e,0xdc54,0xd87e,0xdc55,0xd87e,0xdc56,
1.1554 + 0xd87e,0xdc57,0xd87e,0xdc58,0xd87e,0xdc59,0xd87e,0xdc5a,0xd87e,0xdc5b,
1.1555 + 0xd87e,0xdc5c,0xd87e,0xdc5d,0xd87e,0xdc5e,0xd87e,0xdc5f,0xd87e,0xdc60,
1.1556 + 0xd87e,0xdc61,0xd87e,0xdc62,0xd87e,0xdc63,0xd87e,0xdc64,0xd87e,0xdc65,
1.1557 + 0xd87e,0xdc66,0xd87e,0xdc67,0xd87e,0xdc68,0xd87e,0xdc69,0xd87e,0xdc6a,
1.1558 + 0xd87e,0xdc6b,0xd87e,0xdc6c,0xd87e,0xdc6d,0xd87e,0xdc6e,0xd87e,0xdc6f,
1.1559 + 0xd87e,0xdc70,0xd87e,0xdc71,0xd87e,0xdc72,0xd87e,0xdc73,0xd87e,0xdc74,
1.1560 + 0xd87e,0xdc75,0xd87e,0xdc76,0xd87e,0xdc77,0xd87e,0xdc78,0xd87e,0xdc79,
1.1561 + 0xd87e,0xdc7a,0xd87e,0xdc7b,0xd87e,0xdc7c,0xd87e,0xdc7d,0xd87e,0xdc7e,
1.1562 + 0xd87e,0xdc7f,0xd87e,0xdc80,0xd87e,0xdc81,0xd87e,0xdc82,0xd87e,0xdc83,
1.1563 + 0xd87e,0xdc84,0xd87e,0xdc85,0xd87e,0xdc86,0xd87e,0xdc87,0xd87e,0xdc88,
1.1564 + 0xd87e,0xdc89,0xd87e,0xdc8a,0xd87e,0xdc8b,0xd87e,0xdc8c,0xd87e,0xdc8d,
1.1565 + 0xd87e,0xdc8e,0xd87e,0xdc8f,0xd87e,0xdc90,0xd87e,0xdc91,0xd87e,0xdc92,
1.1566 + 0xd87e,0xdc93,0xd87e,0xdc94,0xd87e,0xdc95,0xd87e,0xdc96,0xd87e,0xdc97,
1.1567 + 0xd87e,0xdc98,0xd87e,0xdc99,0xd87e,0xdc9a,0xd87e,0xdc9b,0xd87e,0xdc9c,
1.1568 + 0xd87e,0xdc9d,0xd87e,0xdc9e,0xd87e,0xdc9f,0xd87e,0xdca0,0xd87e,0xdca1,
1.1569 + 0xd87e,0xdca2,0xd87e,0xdca3,0xd87e,0xdca4,0xd87e,0xdca5,0xd87e,0xdca6,
1.1570 + 0xd87e,0xdca7,0xd87e,0xdca8,0xd87e,0xdca9,0xd87e,0xdcaa,0xd87e,0xdcab,
1.1571 + 0xd87e,0xdcac,0xd87e,0xdcad,0xd87e,0xdcae,0xd87e,0xdcaf,0xd87e,0xdcb0,
1.1572 + 0xd87e,0xdcb1,0xd87e,0xdcb2,0xd87e,0xdcb3,0xd87e,0xdcb4,0xd87e,0xdcb5,
1.1573 + 0xd87e,0xdcb6,0xd87e,0xdcb7,0xd87e,0xdcb8,0xd87e,0xdcb9,0xd87e,0xdcba,
1.1574 + 0xd87e,0xdcbb,0xd87e,0xdcbc,0xd87e,0xdcbd,0xd87e,0xdcbe,0xd87e,0xdcbf,
1.1575 + 0xd87e,0xdcc0,0xd87e,0xdcc1,0xd87e,0xdcc2,0xd87e,0xdcc3,0xd87e,0xdcc4,
1.1576 + 0xd87e,0xdcc5,0xd87e,0xdcc6,0xd87e,0xdcc7,0xd87e,0xdcc8,0xd87e,0xdcc9,
1.1577 + 0xd87e,0xdcca,0xd87e,0xdccb,0xd87e,0xdccc,0xd87e,0xdccd,0xd87e,0xdcce,
1.1578 + 0xd87e,0xdccf,0xd87e,0xdcd0,0xd87e,0xdcd1,0xd87e,0xdcd2,0xd87e,0xdcd3,
1.1579 + 0xd87e,0xdcd4,0xd87e,0xdcd5,0xd87e,0xdcd6,0xd87e,0xdcd7,0xd87e,0xdcd8,
1.1580 + 0xd87e,0xdcd9,0xd87e,0xdcda,0xd87e,0xdcdb,0xd87e,0xdcdc,0xd87e,0xdcdd,
1.1581 + 0xd87e,0xdcde,0xd87e,0xdcdf,0xd87e,0xdce0,0xd87e,0xdce1,0xd87e,0xdce2,
1.1582 + 0xd87e,0xdce3,0xd87e,0xdce4,0xd87e,0xdce5,0xd87e,0xdce6,0xd87e,0xdce7,
1.1583 + 0xd87e,0xdce8,0xd87e,0xdce9,0xd87e,0xdcea,0xd87e,0xdceb,0xd87e,0xdcec,
1.1584 + 0xd87e,0xdced,0xd87e,0xdcee,0xd87e,0xdcef,0xd87e,0xdcf0,0xd87e,0xdcf1,
1.1585 + 0xd87e,0xdcf2,0xd87e,0xdcf3,0xd87e,0xdcf4,0xd87e,0xdcf5,0xd87e,0xdcf6,
1.1586 + 0xd87e,0xdcf7,0xd87e,0xdcf8,0xd87e,0xdcf9,0xd87e,0xdcfa,0xd87e,0xdcfb,
1.1587 + 0xd87e,0xdcfc,0xd87e,0xdcfd,0xd87e,0xdcfe,0xd87e,0xdcff,0xd87e,0xdd00,
1.1588 + 0xd87e,0xdd01,0xd87e,0xdd02,0xd87e,0xdd03,0xd87e,0xdd04,0xd87e,0xdd05,
1.1589 + 0xd87e,0xdd06,0xd87e,0xdd07,0xd87e,0xdd08,0xd87e,0xdd09,0xd87e,0xdd0a,
1.1590 + 0xd87e,0xdd0b,0xd87e,0xdd0c,0xd87e,0xdd0d,0xd87e,0xdd0e,0xd87e,0xdd0f,
1.1591 + 0xd87e,0xdd10,0xd87e,0xdd11,0xd87e,0xdd12,0xd87e,0xdd13,0xd87e,0xdd14,
1.1592 + 0xd87e,0xdd15,0xd87e,0xdd16,0xd87e,0xdd17,0xd87e,0xdd18,0xd87e,0xdd19,
1.1593 + 0xd87e,0xdd1a,0xd87e,0xdd1b,0xd87e,0xdd1c,0xd87e,0xdd1d,0xd87e,0xdd1e,
1.1594 + 0xd87e,0xdd1f,0xd87e,0xdd20,0xd87e,0xdd21,0xd87e,0xdd22,0xd87e,0xdd23,
1.1595 + 0xd87e,0xdd24,0xd87e,0xdd25,0xd87e,0xdd26,0xd87e,0xdd27,0xd87e,0xdd28,
1.1596 + 0xd87e,0xdd29,0xd87e,0xdd2a,0xd87e,0xdd2b,0xd87e,0xdd2c,0xd87e,0xdd2d,
1.1597 + 0xd87e,0xdd2e,0xd87e,0xdd2f,0xd87e,0xdd30,0xd87e,0xdd31,0xd87e,0xdd32,
1.1598 + 0xd87e,0xdd33,0xd87e,0xdd34,0xd87e,0xdd35,0xd87e,0xdd36,0xd87e,0xdd37,
1.1599 + 0xd87e,0xdd38,0xd87e,0xdd39,0xd87e,0xdd3a,0xd87e,0xdd3b,0xd87e,0xdd3c,
1.1600 + 0xd87e,0xdd3d,0xd87e,0xdd3e,0xd87e,0xdd3f,0xd87e,0xdd40,0xd87e,0xdd41,
1.1601 + 0xd87e,0xdd42,0xd87e,0xdd43,0xd87e,0xdd44,0xd87e,0xdd45,0xd87e,0xdd46,
1.1602 + 0xd87e,0xdd47,0xd87e,0xdd48,0xd87e,0xdd49,0xd87e,0xdd4a,0xd87e,0xdd4b,
1.1603 + 0xd87e,0xdd4c,0xd87e,0xdd4d,0xd87e,0xdd4e,0xd87e,0xdd4f,0xd87e,0xdd50,
1.1604 + 0xd87e,0xdd51,0xd87e,0xdd52,0xd87e,0xdd53,0xd87e,0xdd54,0xd87e,0xdd55,
1.1605 + 0xd87e,0xdd56,0xd87e,0xdd57,0xd87e,0xdd58,0xd87e,0xdd59,0xd87e,0xdd5a,
1.1606 + 0xd87e,0xdd5b,0xd87e,0xdd5c,0xd87e,0xdd5d,0xd87e,0xdd5e,0xd87e,0xdd5f,
1.1607 + 0xd87e,0xdd60,0xd87e,0xdd61,0xd87e,0xdd62,0xd87e,0xdd63,0xd87e,0xdd64,
1.1608 + 0xd87e,0xdd65,0xd87e,0xdd66,0xd87e,0xdd67,0xd87e,0xdd68,0xd87e,0xdd69,
1.1609 + 0xd87e,0xdd6a,0xd87e,0xdd6b,0xd87e,0xdd6c,0xd87e,0xdd6d,0xd87e,0xdd6e,
1.1610 + 0xd87e,0xdd6f,0xd87e,0xdd70,0xd87e,0xdd71,0xd87e,0xdd72,0xd87e,0xdd73,
1.1611 + 0xd87e,0xdd74,0xd87e,0xdd75,0xd87e,0xdd76,0xd87e,0xdd77,0xd87e,0xdd78,
1.1612 + 0xd87e,0xdd79,0xd87e,0xdd7a,0xd87e,0xdd7b,0xd87e,0xdd7c,0xd87e,0xdd7d,
1.1613 + 0xd87e,0xdd7e,0xd87e,0xdd7f,0xd87e,0xdd80,0xd87e,0xdd81,0xd87e,0xdd82,
1.1614 + 0xd87e,0xdd83,0xd87e,0xdd84,0xd87e,0xdd85,0xd87e,0xdd86,0xd87e,0xdd87,
1.1615 + 0xd87e,0xdd88,0xd87e,0xdd89,0xd87e,0xdd8a,0xd87e,0xdd8b,0xd87e,0xdd8c,
1.1616 + 0xd87e,0xdd8d,0xd87e,0xdd8e,0xd87e,0xdd8f,0xd87e,0xdd90,0xd87e,0xdd91,
1.1617 + 0xd87e,0xdd92,0xd87e,0xdd93,0xd87e,0xdd94,0xd87e,0xdd95,0xd87e,0xdd96,
1.1618 + 0xd87e,0xdd97,0xd87e,0xdd98,0xd87e,0xdd99,0xd87e,0xdd9a,0xd87e,0xdd9b,
1.1619 + 0xd87e,0xdd9c,0xd87e,0xdd9d,0xd87e,0xdd9e,0xd87e,0xdd9f,0xd87e,0xdda0,
1.1620 + 0xd87e,0xdda1,0xd87e,0xdda2,0xd87e,0xdda3,0xd87e,0xdda4,0xd87e,0xdda5,
1.1621 + 0xd87e,0xdda6,0xd87e,0xdda7,0xd87e,0xdda8,0xd87e,0xdda9,0xd87e,0xddaa,
1.1622 + 0xd87e,0xddab,0xd87e,0xddac,0xd87e,0xddad,0xd87e,0xddae,0xd87e,0xddaf,
1.1623 + 0xd87e,0xddb0,0xd87e,0xddb1,0xd87e,0xddb2,0xd87e,0xddb3,0xd87e,0xddb4,
1.1624 + 0xd87e,0xddb5,0xd87e,0xddb6,0xd87e,0xddb7,0xd87e,0xddb8,0xd87e,0xddb9,
1.1625 + 0xd87e,0xddba,0xd87e,0xddbb,0xd87e,0xddbc,0xd87e,0xddbd,0xd87e,0xddbe,
1.1626 + 0xd87e,0xddbf,0xd87e,0xddc0,0xd87e,0xddc1,0xd87e,0xddc2,0xd87e,0xddc3,
1.1627 + 0xd87e,0xddc4,0xd87e,0xddc5,0xd87e,0xddc6,0xd87e,0xddc7,0xd87e,0xddc8,
1.1628 + 0xd87e,0xddc9,0xd87e,0xddca,0xd87e,0xddcb,0xd87e,0xddcc,0xd87e,0xddcd,
1.1629 + 0xd87e,0xddce,0xd87e,0xddcf,0xd87e,0xddd0,0xd87e,0xddd1,0xd87e,0xddd2,
1.1630 + 0xd87e,0xddd3,0xd87e,0xddd4,0xd87e,0xddd5,0xd87e,0xddd6,0xd87e,0xddd7,
1.1631 + 0xd87e,0xddd8,0xd87e,0xddd9,0xd87e,0xddda,0xd87e,0xdddb,0xd87e,0xdddc,
1.1632 + 0xd87e,0xdddd,0xd87e,0xddde,0xd87e,0xdddf,0xd87e,0xdde0,0xd87e,0xdde1,
1.1633 + 0xd87e,0xdde2,0xd87e,0xdde3,0xd87e,0xdde4,0xd87e,0xdde5,0xd87e,0xdde6,
1.1634 + 0xd87e,0xdde7,0xd87e,0xdde8,0xd87e,0xdde9,0xd87e,0xddea,0xd87e,0xddeb,
1.1635 + 0xd87e,0xddec,0xd87e,0xdded,0xd87e,0xddee,0xd87e,0xddef,0xd87e,0xddf0,
1.1636 + 0xd87e,0xddf1,0xd87e,0xddf2,0xd87e,0xddf3,0xd87e,0xddf4,0xd87e,0xddf5,
1.1637 + 0xd87e,0xddf6,0xd87e,0xddf7,0xd87e,0xddf8,0xd87e,0xddf9,0xd87e,0xddfa,
1.1638 + 0xd87e,0xddfb,0xd87e,0xddfc,0xd87e,0xddfd,0xd87e,0xddfe,0xd87e,0xddff,
1.1639 + 0xd87e,0xde00,0xd87e,0xde01,0xd87e,0xde02,0xd87e,0xde03,0xd87e,0xde04,
1.1640 + 0xd87e,0xde05,0xd87e,0xde06,0xd87e,0xde07,0xd87e,0xde08,0xd87e,0xde09,
1.1641 + 0xd87e,0xde0a,0xd87e,0xde0b,0xd87e,0xde0c,0xd87e,0xde0d,0xd87e,0xde0e,
1.1642 + 0xd87e,0xde0f,0xd87e,0xde10,0xd87e,0xde11,0xd87e,0xde12,0xd87e,0xde13,
1.1643 + 0xd87e,0xde14,0xd87e,0xde15,0xd87e,0xde16,0xd87e,0xde17,0xd87e,0xde18,
1.1644 + 0xd87e,0xde19,0xd87e,0xde1a,0xd87e,0xde1b,0xd87e,0xde1c,0xd87e,0xde1d,
1.1645 + 0xdb80,0xdc00,0xdbbf,0xdffd,0xdbc0,0xdc00,0xdbff,0xdffd,
1.1646 +};
1.1647 +static const TUint KLeftToRightLength = 8309 + 6998;
1.1648 +
1.1649 +// This constant defines the Unicode characters in the "LeftToRightOverride" (LRO) category.
1.1650 +static const TUint16 KLeftToRightOverride[] =
1.1651 + {
1.1652 + 0x202d
1.1653 + };
1.1654 +
1.1655 +// This constant defines the Unicode characters in the "RightToLeft" (R) category.
1.1656 +static const TUint16 KRightToLeft[] =
1.1657 + {
1.1658 + 0x05be,0x05c0,0x05c3,0x05c6,0x05d0,0x05d1,0x05d2,0x05d3,0x05d4,0x05d5,
1.1659 + 0x05d6,0x05d7,0x05d8,0x05d9,0x05da,0x05db,0x05dc,0x05dd,0x05de,0x05df,
1.1660 + 0x05e0,0x05e1,0x05e2,0x05e3,0x05e4,0x05e5,0x05e6,0x05e7,0x05e8,0x05e9,
1.1661 + 0x05ea,0x05f0,0x05f1,0x05f2,0x05f3,0x05f4,0x07c0,0x07c1,0x07c2,0x07c3,
1.1662 + 0x07c4,0x07c5,0x07c6,0x07c7,0x07c8,0x07c9,0x07ca,0x07cb,0x07cc,0x07cd,
1.1663 + 0x07ce,0x07cf,0x07d0,0x07d1,0x07d2,0x07d3,0x07d4,0x07d5,0x07d6,0x07d7,
1.1664 + 0x07d8,0x07d9,0x07da,0x07db,0x07dc,0x07dd,0x07de,0x07df,0x07e0,0x07e1,
1.1665 + 0x07e2,0x07e3,0x07e4,0x07e5,0x07e6,0x07e7,0x07e8,0x07e9,0x07ea,0x07f4,
1.1666 + 0x07f5,0x07fa,0x200f,0xfb1d,0xfb1f,0xfb20,0xfb21,0xfb22,0xfb23,0xfb24,
1.1667 + 0xfb25,0xfb26,0xfb27,0xfb28,0xfb2a,0xfb2b,0xfb2c,0xfb2d,0xfb2e,0xfb2f,
1.1668 + 0xfb30,0xfb31,0xfb32,0xfb33,0xfb34,0xfb35,0xfb36,0xfb38,0xfb39,0xfb3a,
1.1669 + 0xfb3b,0xfb3c,0xfb3e,0xfb40,0xfb41,0xfb43,0xfb44,0xfb46,0xfb47,0xfb48,
1.1670 + 0xfb49,0xfb4a,0xfb4b,0xfb4c,0xfb4d,0xfb4e,0xfb4f,0xd802,0xdc00,
1.1671 + 0xd802,0xdc01,0xd802,0xdc02,0xd802,0xdc03,0xd802,0xdc04,0xd802,0xdc05,
1.1672 + 0xd802,0xdc08,0xd802,0xdc0a,0xd802,0xdc0b,0xd802,0xdc0c,0xd802,0xdc0d,
1.1673 + 0xd802,0xdc0e,0xd802,0xdc0f,0xd802,0xdc10,0xd802,0xdc11,0xd802,0xdc12,
1.1674 + 0xd802,0xdc13,0xd802,0xdc14,0xd802,0xdc15,0xd802,0xdc16,0xd802,0xdc17,
1.1675 + 0xd802,0xdc18,0xd802,0xdc19,0xd802,0xdc1a,0xd802,0xdc1b,0xd802,0xdc1c,
1.1676 + 0xd802,0xdc1d,0xd802,0xdc1e,0xd802,0xdc1f,0xd802,0xdc20,0xd802,0xdc21,
1.1677 + 0xd802,0xdc22,0xd802,0xdc23,0xd802,0xdc24,0xd802,0xdc25,0xd802,0xdc26,
1.1678 + 0xd802,0xdc27,0xd802,0xdc28,0xd802,0xdc29,0xd802,0xdc2a,0xd802,0xdc2b,
1.1679 + 0xd802,0xdc2c,0xd802,0xdc2d,0xd802,0xdc2e,0xd802,0xdc2f,0xd802,0xdc30,
1.1680 + 0xd802,0xdc31,0xd802,0xdc32,0xd802,0xdc33,0xd802,0xdc34,0xd802,0xdc35,
1.1681 + 0xd802,0xdc37,0xd802,0xdc38,0xd802,0xdc3c,0xd802,0xdc3f,0xd802,0xdd00,
1.1682 + 0xd802,0xdd01,0xd802,0xdd02,0xd802,0xdd03,0xd802,0xdd04,0xd802,0xdd05,
1.1683 + 0xd802,0xdd06,0xd802,0xdd07,0xd802,0xdd08,0xd802,0xdd09,0xd802,0xdd0a,
1.1684 + 0xd802,0xdd0b,0xd802,0xdd0c,0xd802,0xdd0d,0xd802,0xdd0e,0xd802,0xdd0f,
1.1685 + 0xd802,0xdd10,0xd802,0xdd11,0xd802,0xdd12,0xd802,0xdd13,0xd802,0xdd14,
1.1686 + 0xd802,0xdd15,0xd802,0xdd16,0xd802,0xdd17,0xd802,0xdd18,0xd802,0xdd19,
1.1687 + 0xd802,0xde00,0xd802,0xde10,0xd802,0xde11,0xd802,0xde12,0xd802,0xde13,
1.1688 + 0xd802,0xde15,0xd802,0xde16,0xd802,0xde17,0xd802,0xde19,0xd802,0xde1a,
1.1689 + 0xd802,0xde1b,0xd802,0xde1c,0xd802,0xde1d,0xd802,0xde1e,0xd802,0xde1f,
1.1690 + 0xd802,0xde20,0xd802,0xde21,0xd802,0xde22,0xd802,0xde23,0xd802,0xde24,
1.1691 + 0xd802,0xde25,0xd802,0xde26,0xd802,0xde27,0xd802,0xde28,0xd802,0xde29,
1.1692 + 0xd802,0xde2a,0xd802,0xde2b,0xd802,0xde2c,0xd802,0xde2d,0xd802,0xde2e,
1.1693 + 0xd802,0xde2f,0xd802,0xde30,0xd802,0xde31,0xd802,0xde32,0xd802,0xde33,
1.1694 + 0xd802,0xde40,0xd802,0xde41,0xd802,0xde42,0xd802,0xde43,0xd802,0xde44,
1.1695 + 0xd802,0xde45,0xd802,0xde46,0xd802,0xde47,0xd802,0xde50,0xd802,0xde51,
1.1696 + 0xd802,0xde52,0xd802,0xde53,0xd802,0xde54,0xd802,0xde55,0xd802,0xde56,
1.1697 + 0xd802,0xde57,0xd802,0xde58,
1.1698 + };
1.1699 +static const TUint KRightToLeftLength = 127 + 266;
1.1700 +
1.1701 +// This constant defines the Unicode characters in the "RightToLeftArabic" (AL) category.
1.1702 +static const TUint16 KRightToLeftArabic[] =
1.1703 + {
1.1704 + 0x0600,0x0601,0x0602,0x0603,0x060b,0x060d,0x061b,0x061e,0x061f,0x0621,
1.1705 + 0x0622,0x0623,0x0624,0x0625,0x0626,0x0627,0x0628,0x0629,0x062a,0x062b,
1.1706 + 0x062c,0x062d,0x062e,0x062f,0x0630,0x0631,0x0632,0x0633,0x0634,0x0635,
1.1707 + 0x0636,0x0637,0x0638,0x0639,0x063a,0x0640,0x0641,0x0642,0x0643,0x0644,
1.1708 + 0x0645,0x0646,0x0647,0x0648,0x0649,0x064a,0x066d,0x066e,0x066f,0x0671,
1.1709 + 0x0672,0x0673,0x0674,0x0675,0x0676,0x0677,0x0678,0x0679,0x067a,0x067b,
1.1710 + 0x067c,0x067d,0x067e,0x067f,0x0680,0x0681,0x0682,0x0683,0x0684,0x0685,
1.1711 + 0x0686,0x0687,0x0688,0x0689,0x068a,0x068b,0x068c,0x068d,0x068e,0x068f,
1.1712 + 0x0690,0x0691,0x0692,0x0693,0x0694,0x0695,0x0696,0x0697,0x0698,0x0699,
1.1713 + 0x069a,0x069b,0x069c,0x069d,0x069e,0x069f,0x06a0,0x06a1,0x06a2,0x06a3,
1.1714 + 0x06a4,0x06a5,0x06a6,0x06a7,0x06a8,0x06a9,0x06aa,0x06ab,0x06ac,0x06ad,
1.1715 + 0x06ae,0x06af,0x06b0,0x06b1,0x06b2,0x06b3,0x06b4,0x06b5,0x06b6,0x06b7,
1.1716 + 0x06b8,0x06b9,0x06ba,0x06bb,0x06bc,0x06bd,0x06be,0x06bf,0x06c0,0x06c1,
1.1717 + 0x06c2,0x06c3,0x06c4,0x06c5,0x06c6,0x06c7,0x06c8,0x06c9,0x06ca,0x06cb,
1.1718 + 0x06cc,0x06cd,0x06ce,0x06cf,0x06d0,0x06d1,0x06d2,0x06d3,0x06d4,0x06d5,
1.1719 + 0x06dd,0x06e5,0x06e6,0x06ee,0x06ef,0x06fa,0x06fb,0x06fc,0x06fd,0x06fe,
1.1720 + 0x06ff,0x0700,0x0701,0x0702,0x0703,0x0704,0x0705,0x0706,0x0707,0x0708,
1.1721 + 0x0709,0x070a,0x070b,0x070c,0x070d,0x0710,0x0712,0x0713,0x0714,0x0715,
1.1722 + 0x0716,0x0717,0x0718,0x0719,0x071a,0x071b,0x071c,0x071d,0x071e,0x071f,
1.1723 + 0x0720,0x0721,0x0722,0x0723,0x0724,0x0725,0x0726,0x0727,0x0728,0x0729,
1.1724 + 0x072a,0x072b,0x072c,0x072d,0x072e,0x072f,0x074d,0x074e,0x074f,0x0750,
1.1725 + 0x0751,0x0752,0x0753,0x0754,0x0755,0x0756,0x0757,0x0758,0x0759,0x075a,
1.1726 + 0x075b,0x075c,0x075d,0x075e,0x075f,0x0760,0x0761,0x0762,0x0763,0x0764,
1.1727 + 0x0765,0x0766,0x0767,0x0768,0x0769,0x076a,0x076b,0x076c,0x076d,0x0780,
1.1728 + 0x0781,0x0782,0x0783,0x0784,0x0785,0x0786,0x0787,0x0788,0x0789,0x078a,
1.1729 + 0x078b,0x078c,0x078d,0x078e,0x078f,0x0790,0x0791,0x0792,0x0793,0x0794,
1.1730 + 0x0795,0x0796,0x0797,0x0798,0x0799,0x079a,0x079b,0x079c,0x079d,0x079e,
1.1731 + 0x079f,0x07a0,0x07a1,0x07a2,0x07a3,0x07a4,0x07a5,0x07b1,0xfb50,0xfb51,
1.1732 + 0xfb52,0xfb53,0xfb54,0xfb55,0xfb56,0xfb57,0xfb58,0xfb59,0xfb5a,0xfb5b,
1.1733 + 0xfb5c,0xfb5d,0xfb5e,0xfb5f,0xfb60,0xfb61,0xfb62,0xfb63,0xfb64,0xfb65,
1.1734 + 0xfb66,0xfb67,0xfb68,0xfb69,0xfb6a,0xfb6b,0xfb6c,0xfb6d,0xfb6e,0xfb6f,
1.1735 + 0xfb70,0xfb71,0xfb72,0xfb73,0xfb74,0xfb75,0xfb76,0xfb77,0xfb78,0xfb79,
1.1736 + 0xfb7a,0xfb7b,0xfb7c,0xfb7d,0xfb7e,0xfb7f,0xfb80,0xfb81,0xfb82,0xfb83,
1.1737 + 0xfb84,0xfb85,0xfb86,0xfb87,0xfb88,0xfb89,0xfb8a,0xfb8b,0xfb8c,0xfb8d,
1.1738 + 0xfb8e,0xfb8f,0xfb90,0xfb91,0xfb92,0xfb93,0xfb94,0xfb95,0xfb96,0xfb97,
1.1739 + 0xfb98,0xfb99,0xfb9a,0xfb9b,0xfb9c,0xfb9d,0xfb9e,0xfb9f,0xfba0,0xfba1,
1.1740 + 0xfba2,0xfba3,0xfba4,0xfba5,0xfba6,0xfba7,0xfba8,0xfba9,0xfbaa,0xfbab,
1.1741 + 0xfbac,0xfbad,0xfbae,0xfbaf,0xfbb0,0xfbb1,0xfbd3,0xfbd4,0xfbd5,0xfbd6,
1.1742 + 0xfbd7,0xfbd8,0xfbd9,0xfbda,0xfbdb,0xfbdc,0xfbdd,0xfbde,0xfbdf,0xfbe0,
1.1743 + 0xfbe1,0xfbe2,0xfbe3,0xfbe4,0xfbe5,0xfbe6,0xfbe7,0xfbe8,0xfbe9,0xfbea,
1.1744 + 0xfbeb,0xfbec,0xfbed,0xfbee,0xfbef,0xfbf0,0xfbf1,0xfbf2,0xfbf3,0xfbf4,
1.1745 + 0xfbf5,0xfbf6,0xfbf7,0xfbf8,0xfbf9,0xfbfa,0xfbfb,0xfbfc,0xfbfd,0xfbfe,
1.1746 + 0xfbff,0xfc00,0xfc01,0xfc02,0xfc03,0xfc04,0xfc05,0xfc06,0xfc07,0xfc08,
1.1747 + 0xfc09,0xfc0a,0xfc0b,0xfc0c,0xfc0d,0xfc0e,0xfc0f,0xfc10,0xfc11,0xfc12,
1.1748 + 0xfc13,0xfc14,0xfc15,0xfc16,0xfc17,0xfc18,0xfc19,0xfc1a,0xfc1b,0xfc1c,
1.1749 + 0xfc1d,0xfc1e,0xfc1f,0xfc20,0xfc21,0xfc22,0xfc23,0xfc24,0xfc25,0xfc26,
1.1750 + 0xfc27,0xfc28,0xfc29,0xfc2a,0xfc2b,0xfc2c,0xfc2d,0xfc2e,0xfc2f,0xfc30,
1.1751 + 0xfc31,0xfc32,0xfc33,0xfc34,0xfc35,0xfc36,0xfc37,0xfc38,0xfc39,0xfc3a,
1.1752 + 0xfc3b,0xfc3c,0xfc3d,0xfc3e,0xfc3f,0xfc40,0xfc41,0xfc42,0xfc43,0xfc44,
1.1753 + 0xfc45,0xfc46,0xfc47,0xfc48,0xfc49,0xfc4a,0xfc4b,0xfc4c,0xfc4d,0xfc4e,
1.1754 + 0xfc4f,0xfc50,0xfc51,0xfc52,0xfc53,0xfc54,0xfc55,0xfc56,0xfc57,0xfc58,
1.1755 + 0xfc59,0xfc5a,0xfc5b,0xfc5c,0xfc5d,0xfc5e,0xfc5f,0xfc60,0xfc61,0xfc62,
1.1756 + 0xfc63,0xfc64,0xfc65,0xfc66,0xfc67,0xfc68,0xfc69,0xfc6a,0xfc6b,0xfc6c,
1.1757 + 0xfc6d,0xfc6e,0xfc6f,0xfc70,0xfc71,0xfc72,0xfc73,0xfc74,0xfc75,0xfc76,
1.1758 + 0xfc77,0xfc78,0xfc79,0xfc7a,0xfc7b,0xfc7c,0xfc7d,0xfc7e,0xfc7f,0xfc80,
1.1759 + 0xfc81,0xfc82,0xfc83,0xfc84,0xfc85,0xfc86,0xfc87,0xfc88,0xfc89,0xfc8a,
1.1760 + 0xfc8b,0xfc8c,0xfc8d,0xfc8e,0xfc8f,0xfc90,0xfc91,0xfc92,0xfc93,0xfc94,
1.1761 + 0xfc95,0xfc96,0xfc97,0xfc98,0xfc99,0xfc9a,0xfc9b,0xfc9c,0xfc9d,0xfc9e,
1.1762 + 0xfc9f,0xfca0,0xfca1,0xfca2,0xfca3,0xfca4,0xfca5,0xfca6,0xfca7,0xfca8,
1.1763 + 0xfca9,0xfcaa,0xfcab,0xfcac,0xfcad,0xfcae,0xfcaf,0xfcb0,0xfcb1,0xfcb2,
1.1764 + 0xfcb3,0xfcb4,0xfcb5,0xfcb6,0xfcb7,0xfcb8,0xfcb9,0xfcba,0xfcbb,0xfcbc,
1.1765 + 0xfcbd,0xfcbe,0xfcbf,0xfcc0,0xfcc1,0xfcc2,0xfcc3,0xfcc4,0xfcc5,0xfcc6,
1.1766 + 0xfcc7,0xfcc8,0xfcc9,0xfcca,0xfccb,0xfccc,0xfccd,0xfcce,0xfccf,0xfcd0,
1.1767 + 0xfcd1,0xfcd2,0xfcd3,0xfcd4,0xfcd5,0xfcd6,0xfcd7,0xfcd8,0xfcd9,0xfcda,
1.1768 + 0xfcdb,0xfcdc,0xfcdd,0xfcde,0xfcdf,0xfce0,0xfce1,0xfce2,0xfce3,0xfce4,
1.1769 + 0xfce5,0xfce6,0xfce7,0xfce8,0xfce9,0xfcea,0xfceb,0xfcec,0xfced,0xfcee,
1.1770 + 0xfcef,0xfcf0,0xfcf1,0xfcf2,0xfcf3,0xfcf4,0xfcf5,0xfcf6,0xfcf7,0xfcf8,
1.1771 + 0xfcf9,0xfcfa,0xfcfb,0xfcfc,0xfcfd,0xfcfe,0xfcff,0xfd00,0xfd01,0xfd02,
1.1772 + 0xfd03,0xfd04,0xfd05,0xfd06,0xfd07,0xfd08,0xfd09,0xfd0a,0xfd0b,0xfd0c,
1.1773 + 0xfd0d,0xfd0e,0xfd0f,0xfd10,0xfd11,0xfd12,0xfd13,0xfd14,0xfd15,0xfd16,
1.1774 + 0xfd17,0xfd18,0xfd19,0xfd1a,0xfd1b,0xfd1c,0xfd1d,0xfd1e,0xfd1f,0xfd20,
1.1775 + 0xfd21,0xfd22,0xfd23,0xfd24,0xfd25,0xfd26,0xfd27,0xfd28,0xfd29,0xfd2a,
1.1776 + 0xfd2b,0xfd2c,0xfd2d,0xfd2e,0xfd2f,0xfd30,0xfd31,0xfd32,0xfd33,0xfd34,
1.1777 + 0xfd35,0xfd36,0xfd37,0xfd38,0xfd39,0xfd3a,0xfd3b,0xfd3c,0xfd3d,0xfd50,
1.1778 + 0xfd51,0xfd52,0xfd53,0xfd54,0xfd55,0xfd56,0xfd57,0xfd58,0xfd59,0xfd5a,
1.1779 + 0xfd5b,0xfd5c,0xfd5d,0xfd5e,0xfd5f,0xfd60,0xfd61,0xfd62,0xfd63,0xfd64,
1.1780 + 0xfd65,0xfd66,0xfd67,0xfd68,0xfd69,0xfd6a,0xfd6b,0xfd6c,0xfd6d,0xfd6e,
1.1781 + 0xfd6f,0xfd70,0xfd71,0xfd72,0xfd73,0xfd74,0xfd75,0xfd76,0xfd77,0xfd78,
1.1782 + 0xfd79,0xfd7a,0xfd7b,0xfd7c,0xfd7d,0xfd7e,0xfd7f,0xfd80,0xfd81,0xfd82,
1.1783 + 0xfd83,0xfd84,0xfd85,0xfd86,0xfd87,0xfd88,0xfd89,0xfd8a,0xfd8b,0xfd8c,
1.1784 + 0xfd8d,0xfd8e,0xfd8f,0xfd92,0xfd93,0xfd94,0xfd95,0xfd96,0xfd97,0xfd98,
1.1785 + 0xfd99,0xfd9a,0xfd9b,0xfd9c,0xfd9d,0xfd9e,0xfd9f,0xfda0,0xfda1,0xfda2,
1.1786 + 0xfda3,0xfda4,0xfda5,0xfda6,0xfda7,0xfda8,0xfda9,0xfdaa,0xfdab,0xfdac,
1.1787 + 0xfdad,0xfdae,0xfdaf,0xfdb0,0xfdb1,0xfdb2,0xfdb3,0xfdb4,0xfdb5,0xfdb6,
1.1788 + 0xfdb7,0xfdb8,0xfdb9,0xfdba,0xfdbb,0xfdbc,0xfdbd,0xfdbe,0xfdbf,0xfdc0,
1.1789 + 0xfdc1,0xfdc2,0xfdc3,0xfdc4,0xfdc5,0xfdc6,0xfdc7,0xfdf0,0xfdf1,0xfdf2,
1.1790 + 0xfdf3,0xfdf4,0xfdf5,0xfdf6,0xfdf7,0xfdf8,0xfdf9,0xfdfa,0xfdfb,0xfdfc,
1.1791 + 0xfe70,0xfe71,0xfe72,0xfe73,0xfe74,0xfe76,0xfe77,0xfe78,0xfe79,0xfe7a,
1.1792 + 0xfe7b,0xfe7c,0xfe7d,0xfe7e,0xfe7f,0xfe80,0xfe81,0xfe82,0xfe83,0xfe84,
1.1793 + 0xfe85,0xfe86,0xfe87,0xfe88,0xfe89,0xfe8a,0xfe8b,0xfe8c,0xfe8d,0xfe8e,
1.1794 + 0xfe8f,0xfe90,0xfe91,0xfe92,0xfe93,0xfe94,0xfe95,0xfe96,0xfe97,0xfe98,
1.1795 + 0xfe99,0xfe9a,0xfe9b,0xfe9c,0xfe9d,0xfe9e,0xfe9f,0xfea0,0xfea1,0xfea2,
1.1796 + 0xfea3,0xfea4,0xfea5,0xfea6,0xfea7,0xfea8,0xfea9,0xfeaa,0xfeab,0xfeac,
1.1797 + 0xfead,0xfeae,0xfeaf,0xfeb0,0xfeb1,0xfeb2,0xfeb3,0xfeb4,0xfeb5,0xfeb6,
1.1798 + 0xfeb7,0xfeb8,0xfeb9,0xfeba,0xfebb,0xfebc,0xfebd,0xfebe,0xfebf,0xfec0,
1.1799 + 0xfec1,0xfec2,0xfec3,0xfec4,0xfec5,0xfec6,0xfec7,0xfec8,0xfec9,0xfeca,
1.1800 + 0xfecb,0xfecc,0xfecd,0xfece,0xfecf,0xfed0,0xfed1,0xfed2,0xfed3,0xfed4,
1.1801 + 0xfed5,0xfed6,0xfed7,0xfed8,0xfed9,0xfeda,0xfedb,0xfedc,0xfedd,0xfede,
1.1802 + 0xfedf,0xfee0,0xfee1,0xfee2,0xfee3,0xfee4,0xfee5,0xfee6,0xfee7,0xfee8,
1.1803 + 0xfee9,0xfeea,0xfeeb,0xfeec,0xfeed,0xfeee,0xfeef,0xfef0,0xfef1,0xfef2,
1.1804 + 0xfef3,0xfef4,0xfef5,0xfef6,0xfef7,0xfef8,0xfef9,0xfefa,0xfefb,0xfefc,
1.1805 + };
1.1806 +static const TUint KRightToLeftArabicLength = 1010;
1.1807 +
1.1808 +// This constant defines the Unicode characters in the "RightToLeftOverride" (RLO) category.
1.1809 +static const TUint16 KRightToLeftOverride[] =
1.1810 + {
1.1811 + 0x202e
1.1812 + };
1.1813 +
1.1814 +// This constant defines the Unicode characters in the "PopDirectionalFormat" (PDF) category.
1.1815 +static const TUint16 KPopDirectionalFormat[] =
1.1816 + {
1.1817 + 0x202c
1.1818 + };
1.1819 +
1.1820 +// This constant defines the Unicode characters in the "EuropeanNumber" (EN) category.
1.1821 +static const TUint16 KEuropeanNumber[] =
1.1822 + {
1.1823 + 0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,0x0038,0x0039,
1.1824 + 0x00b2,0x00b3,0x00b9,0x06f0,0x06f1,0x06f2,0x06f3,0x06f4,0x06f5,0x06f6,
1.1825 + 0x06f7,0x06f8,0x06f9,0x2070,0x2074,0x2075,0x2076,0x2077,0x2078,0x2079,
1.1826 + 0x2080,0x2081,0x2082,0x2083,0x2084,0x2085,0x2086,0x2087,0x2088,0x2089,
1.1827 + 0x2488,0x2489,0x248a,0x248b,0x248c,0x248d,0x248e,0x248f,0x2490,0x2491,
1.1828 + 0x2492,0x2493,0x2494,0x2495,0x2496,0x2497,0x2498,0x2499,0x249a,0x249b,
1.1829 + 0xff10,0xff11,0xff12,0xff13,0xff14,0xff15,0xff16,0xff17,0xff18,0xff19,
1.1830 + 0xd835,0xdfce,0xd835,0xdfcf,0xd835,0xdfd0,0xd835,0xdfd1,0xd835,0xdfd2,
1.1831 + 0xd835,0xdfd3,0xd835,0xdfd4,0xd835,0xdfd5,0xd835,0xdfd6,0xd835,0xdfd7,
1.1832 + 0xd835,0xdfd8,0xd835,0xdfd9,0xd835,0xdfda,0xd835,0xdfdb,0xd835,0xdfdc,
1.1833 + 0xd835,0xdfdd,0xd835,0xdfde,0xd835,0xdfdf,0xd835,0xdfe0,0xd835,0xdfe1,
1.1834 + 0xd835,0xdfe2,0xd835,0xdfe3,0xd835,0xdfe4,0xd835,0xdfe5,0xd835,0xdfe6,
1.1835 + 0xd835,0xdfe7,0xd835,0xdfe8,0xd835,0xdfe9,0xd835,0xdfea,0xd835,0xdfeb,
1.1836 + 0xd835,0xdfec,0xd835,0xdfed,0xd835,0xdfee,0xd835,0xdfef,0xd835,0xdff0,
1.1837 + 0xd835,0xdff1,0xd835,0xdff2,0xd835,0xdff3,0xd835,0xdff4,0xd835,0xdff5,
1.1838 + 0xd835,0xdff6,0xd835,0xdff7,0xd835,0xdff8,0xd835,0xdff9,0xd835,0xdffa,
1.1839 + 0xd835,0xdffb,0xd835,0xdffc,0xd835,0xdffd,0xd835,0xdffe,0xd835,0xdfff,
1.1840 + };
1.1841 +static const TUint KEuropeanNumberLength = 70 + 100;
1.1842 +
1.1843 +// This constant defines the Unicode characters in the "EuropeanNumberTerminator" (ET) category.
1.1844 +static const TUint16 KEuropeanNumberTerminator[] =
1.1845 + {
1.1846 + 0x0023,0x0024,0x0025,0x00a2,0x00a3,0x00a4,0x00a5,0x00b0,0x00b1,0x066a,
1.1847 + 0x09f2,0x09f3,0x0af1,0x0bf9,0x0e3f,0x17db,0x2030,0x2031,0x2032,0x2033,
1.1848 + 0x2034,0x20a0,0x20a1,0x20a2,0x20a3,0x20a4,0x20a5,0x20a6,0x20a7,0x20a8,
1.1849 + 0x20a9,0x20aa,0x20ab,0x20ac,0x20ad,0x20ae,0x20af,0x20b0,0x20b1,0x20b2,
1.1850 + 0x20b3,0x20b4,0x20b5,0x212e,0x2213,0xfe5f,0xfe69,0xfe6a,0xff03,0xff04,
1.1851 + 0xff05,0xffe0,0xffe1,0xffe5,0xffe6,
1.1852 + };
1.1853 +static const TUint KEuropeanNumberTerminatorLength = 55;
1.1854 +
1.1855 +
1.1856 +// This constant defines the Unicode characters in the "ArabicNumber" (AN) category.
1.1857 +static const TUint16 KArabicNumber[] =
1.1858 + {
1.1859 + 0x0660,0x0661,0x0662,0x0663,0x0664,0x0665,0x0666,0x0667,0x0668,0x0669,
1.1860 + 0x066b,0x066c,
1.1861 + };
1.1862 +
1.1863 +static const TUint KArabicNumberLength = 12;
1.1864 +
1.1865 +// This constant defines the Unicode characters in the "OtherNeutrals" category.
1.1866 +// A conventional _LIT cannot be used here because of the Microsoft limit of
1.1867 +// 2048 bytes for literal strings.
1.1868 +static const TUint16 KOtherNeutrals[] =
1.1869 + {
1.1870 + 0x0021,0x0022,0x0026,0x0027,0x0028,0x0029,0x002a,0x003b,0x003c,0x003d,
1.1871 + 0x003e,0x003f,0x0040,0x005b,0x005c,0x005d,0x005e,0x005f,0x0060,0x007b,
1.1872 + 0x007c,0x007d,0x007e,0x00a1,0x00a6,0x00a7,0x00a8,0x00a9,0x00ab,0x00ac,
1.1873 + 0x00ae,0x00af,0x00b4,0x00b6,0x00b7,0x00b8,0x00bb,0x00bc,0x00bd,0x00be,
1.1874 + 0x00bf,0x00d7,0x00f7,0x02b9,0x02ba,0x02c2,0x02c3,0x02c4,0x02c5,0x02c6,
1.1875 + 0x02c7,0x02c8,0x02c9,0x02ca,0x02cb,0x02cc,0x02cd,0x02ce,0x02cf,0x02d2,
1.1876 + 0x02d3,0x02d4,0x02d5,0x02d6,0x02d7,0x02d8,0x02d9,0x02da,0x02db,0x02dc,
1.1877 + 0x02dd,0x02de,0x02df,0x02e5,0x02e6,0x02e7,0x02e8,0x02e9,0x02ea,0x02eb,
1.1878 + 0x02ec,0x02ed,0x02ef,0x02f0,0x02f1,0x02f2,0x02f3,0x02f4,0x02f5,0x02f6,
1.1879 + 0x02f7,0x02f8,0x02f9,0x02fa,0x02fb,0x02fc,0x02fd,0x02fe,0x02ff,0x0374,
1.1880 + 0x0375,0x037e,0x0384,0x0385,0x0387,0x03f6,0x058a,0x060e,0x060f,0x06e9,
1.1881 + 0x07f6,0x07f7,0x07f8,0x07f9,0x0bf3,0x0bf4,0x0bf5,0x0bf6,0x0bf7,0x0bf8,
1.1882 + 0x0bfa,0x0cf1,0x0cf2,0x0f3a,0x0f3b,0x0f3c,0x0f3d,0x1390,0x1391,0x1392,
1.1883 + 0x1393,0x1394,0x1395,0x1396,0x1397,0x1398,0x1399,0x169b,0x169c,0x17f0,
1.1884 + 0x17f1,0x17f2,0x17f3,0x17f4,0x17f5,0x17f6,0x17f7,0x17f8,0x17f9,0x1800,
1.1885 + 0x1801,0x1802,0x1803,0x1804,0x1805,0x1806,0x1807,0x1808,0x1809,0x180a,
1.1886 + 0x1940,0x1944,0x1945,0x19de,0x19df,0x19e0,0x19e1,0x19e2,0x19e3,0x19e4,
1.1887 + 0x19e5,0x19e6,0x19e7,0x19e8,0x19e9,0x19ea,0x19eb,0x19ec,0x19ed,0x19ee,
1.1888 + 0x19ef,0x19f0,0x19f1,0x19f2,0x19f3,0x19f4,0x19f5,0x19f6,0x19f7,0x19f8,
1.1889 + 0x19f9,0x19fa,0x19fb,0x19fc,0x19fd,0x19fe,0x19ff,0x1fbd,0x1fbf,0x1fc0,
1.1890 + 0x1fc1,0x1fcd,0x1fce,0x1fcf,0x1fdd,0x1fde,0x1fdf,0x1fed,0x1fee,0x1fef,
1.1891 + 0x1ffd,0x1ffe,0x2010,0x2011,0x2012,0x2013,0x2014,0x2015,0x2016,0x2017,
1.1892 + 0x2018,0x2019,0x201a,0x201b,0x201c,0x201d,0x201e,0x201f,0x2020,0x2021,
1.1893 + 0x2022,0x2023,0x2024,0x2025,0x2026,0x2027,0x2035,0x2036,0x2037,0x2038,
1.1894 + 0x2039,0x203a,0x203b,0x203c,0x203d,0x203e,0x203f,0x2040,0x2041,0x2042,
1.1895 + 0x2043,0x2045,0x2046,0x2047,0x2048,0x2049,0x204a,0x204b,0x204c,0x204d,
1.1896 + 0x204e,0x204f,0x2050,0x2051,0x2052,0x2053,0x2054,0x2055,0x2056,0x2057,
1.1897 + 0x2058,0x2059,0x205a,0x205b,0x205c,0x205d,0x205e,0x207c,0x207d,0x207e,
1.1898 + 0x208c,0x208d,0x208e,0x2100,0x2101,0x2103,0x2104,0x2105,0x2106,0x2108,
1.1899 + 0x2109,0x2114,0x2116,0x2117,0x2118,0x211e,0x211f,0x2120,0x2121,0x2122,
1.1900 + 0x2123,0x2125,0x2127,0x2129,0x213a,0x213b,0x2140,0x2141,0x2142,0x2143,
1.1901 + 0x2144,0x214a,0x214b,0x214c,0x214d,0x2153,0x2154,0x2155,0x2156,0x2157,
1.1902 + 0x2158,0x2159,0x215a,0x215b,0x215c,0x215d,0x215e,0x215f,0x2190,0x2191,
1.1903 + 0x2192,0x2193,0x2194,0x2195,0x2196,0x2197,0x2198,0x2199,0x219a,0x219b,
1.1904 + 0x219c,0x219d,0x219e,0x219f,0x21a0,0x21a1,0x21a2,0x21a3,0x21a4,0x21a5,
1.1905 + 0x21a6,0x21a7,0x21a8,0x21a9,0x21aa,0x21ab,0x21ac,0x21ad,0x21ae,0x21af,
1.1906 + 0x21b0,0x21b1,0x21b2,0x21b3,0x21b4,0x21b5,0x21b6,0x21b7,0x21b8,0x21b9,
1.1907 + 0x21ba,0x21bb,0x21bc,0x21bd,0x21be,0x21bf,0x21c0,0x21c1,0x21c2,0x21c3,
1.1908 + 0x21c4,0x21c5,0x21c6,0x21c7,0x21c8,0x21c9,0x21ca,0x21cb,0x21cc,0x21cd,
1.1909 + 0x21ce,0x21cf,0x21d0,0x21d1,0x21d2,0x21d3,0x21d4,0x21d5,0x21d6,0x21d7,
1.1910 + 0x21d8,0x21d9,0x21da,0x21db,0x21dc,0x21dd,0x21de,0x21df,0x21e0,0x21e1,
1.1911 + 0x21e2,0x21e3,0x21e4,0x21e5,0x21e6,0x21e7,0x21e8,0x21e9,0x21ea,0x21eb,
1.1912 + 0x21ec,0x21ed,0x21ee,0x21ef,0x21f0,0x21f1,0x21f2,0x21f3,0x21f4,0x21f5,
1.1913 + 0x21f6,0x21f7,0x21f8,0x21f9,0x21fa,0x21fb,0x21fc,0x21fd,0x21fe,0x21ff,
1.1914 + 0x2200,0x2201,0x2202,0x2203,0x2204,0x2205,0x2206,0x2207,0x2208,0x2209,
1.1915 + 0x220a,0x220b,0x220c,0x220d,0x220e,0x220f,0x2210,0x2211,0x2214,0x2215,
1.1916 + 0x2216,0x2217,0x2218,0x2219,0x221a,0x221b,0x221c,0x221d,0x221e,0x221f,
1.1917 + 0x2220,0x2221,0x2222,0x2223,0x2224,0x2225,0x2226,0x2227,0x2228,0x2229,
1.1918 + 0x222a,0x222b,0x222c,0x222d,0x222e,0x222f,0x2230,0x2231,0x2232,0x2233,
1.1919 + 0x2234,0x2235,0x2236,0x2237,0x2238,0x2239,0x223a,0x223b,0x223c,0x223d,
1.1920 + 0x223e,0x223f,0x2240,0x2241,0x2242,0x2243,0x2244,0x2245,0x2246,0x2247,
1.1921 + 0x2248,0x2249,0x224a,0x224b,0x224c,0x224d,0x224e,0x224f,0x2250,0x2251,
1.1922 + 0x2252,0x2253,0x2254,0x2255,0x2256,0x2257,0x2258,0x2259,0x225a,0x225b,
1.1923 + 0x225c,0x225d,0x225e,0x225f,0x2260,0x2261,0x2262,0x2263,0x2264,0x2265,
1.1924 + 0x2266,0x2267,0x2268,0x2269,0x226a,0x226b,0x226c,0x226d,0x226e,0x226f,
1.1925 + 0x2270,0x2271,0x2272,0x2273,0x2274,0x2275,0x2276,0x2277,0x2278,0x2279,
1.1926 + 0x227a,0x227b,0x227c,0x227d,0x227e,0x227f,0x2280,0x2281,0x2282,0x2283,
1.1927 + 0x2284,0x2285,0x2286,0x2287,0x2288,0x2289,0x228a,0x228b,0x228c,0x228d,
1.1928 + 0x228e,0x228f,0x2290,0x2291,0x2292,0x2293,0x2294,0x2295,0x2296,0x2297,
1.1929 + 0x2298,0x2299,0x229a,0x229b,0x229c,0x229d,0x229e,0x229f,0x22a0,0x22a1,
1.1930 + 0x22a2,0x22a3,0x22a4,0x22a5,0x22a6,0x22a7,0x22a8,0x22a9,0x22aa,0x22ab,
1.1931 + 0x22ac,0x22ad,0x22ae,0x22af,0x22b0,0x22b1,0x22b2,0x22b3,0x22b4,0x22b5,
1.1932 + 0x22b6,0x22b7,0x22b8,0x22b9,0x22ba,0x22bb,0x22bc,0x22bd,0x22be,0x22bf,
1.1933 + 0x22c0,0x22c1,0x22c2,0x22c3,0x22c4,0x22c5,0x22c6,0x22c7,0x22c8,0x22c9,
1.1934 + 0x22ca,0x22cb,0x22cc,0x22cd,0x22ce,0x22cf,0x22d0,0x22d1,0x22d2,0x22d3,
1.1935 + 0x22d4,0x22d5,0x22d6,0x22d7,0x22d8,0x22d9,0x22da,0x22db,0x22dc,0x22dd,
1.1936 + 0x22de,0x22df,0x22e0,0x22e1,0x22e2,0x22e3,0x22e4,0x22e5,0x22e6,0x22e7,
1.1937 + 0x22e8,0x22e9,0x22ea,0x22eb,0x22ec,0x22ed,0x22ee,0x22ef,0x22f0,0x22f1,
1.1938 + 0x22f2,0x22f3,0x22f4,0x22f5,0x22f6,0x22f7,0x22f8,0x22f9,0x22fa,0x22fb,
1.1939 + 0x22fc,0x22fd,0x22fe,0x22ff,0x2300,0x2301,0x2302,0x2303,0x2304,0x2305,
1.1940 + 0x2306,0x2307,0x2308,0x2309,0x230a,0x230b,0x230c,0x230d,0x230e,0x230f,
1.1941 + 0x2310,0x2311,0x2312,0x2313,0x2314,0x2315,0x2316,0x2317,0x2318,0x2319,
1.1942 + 0x231a,0x231b,0x231c,0x231d,0x231e,0x231f,0x2320,0x2321,0x2322,0x2323,
1.1943 + 0x2324,0x2325,0x2326,0x2327,0x2328,0x2329,0x232a,0x232b,0x232c,0x232d,
1.1944 + 0x232e,0x232f,0x2330,0x2331,0x2332,0x2333,0x2334,0x2335,0x237b,0x237c,
1.1945 + 0x237d,0x237e,0x237f,0x2380,0x2381,0x2382,0x2383,0x2384,0x2385,0x2386,
1.1946 + 0x2387,0x2388,0x2389,0x238a,0x238b,0x238c,0x238d,0x238e,0x238f,0x2390,
1.1947 + 0x2391,0x2392,0x2393,0x2394,0x2396,0x2397,0x2398,0x2399,0x239a,0x239b,
1.1948 + 0x239c,0x239d,0x239e,0x239f,0x23a0,0x23a1,0x23a2,0x23a3,0x23a4,0x23a5,
1.1949 + 0x23a6,0x23a7,0x23a8,0x23a9,0x23aa,0x23ab,0x23ac,0x23ad,0x23ae,0x23af,
1.1950 + 0x23b0,0x23b1,0x23b2,0x23b3,0x23b4,0x23b5,0x23b6,0x23b7,0x23b8,0x23b9,
1.1951 + 0x23ba,0x23bb,0x23bc,0x23bd,0x23be,0x23bf,0x23c0,0x23c1,0x23c2,0x23c3,
1.1952 + 0x23c4,0x23c5,0x23c6,0x23c7,0x23c8,0x23c9,0x23ca,0x23cb,0x23cc,0x23cd,
1.1953 + 0x23ce,0x23cf,0x23d0,0x23d1,0x23d2,0x23d3,0x23d4,0x23d5,0x23d6,0x23d7,
1.1954 + 0x23d8,0x23d9,0x23da,0x23db,0x23dc,0x23dd,0x23de,0x23df,0x23e0,0x23e1,
1.1955 + 0x23e2,0x23e3,0x23e4,0x23e5,0x23e6,0x23e7,0x2400,0x2401,0x2402,0x2403,
1.1956 + 0x2404,0x2405,0x2406,0x2407,0x2408,0x2409,0x240a,0x240b,0x240c,0x240d,
1.1957 + 0x240e,0x240f,0x2410,0x2411,0x2412,0x2413,0x2414,0x2415,0x2416,0x2417,
1.1958 + 0x2418,0x2419,0x241a,0x241b,0x241c,0x241d,0x241e,0x241f,0x2420,0x2421,
1.1959 + 0x2422,0x2423,0x2424,0x2425,0x2426,0x2440,0x2441,0x2442,0x2443,0x2444,
1.1960 + 0x2445,0x2446,0x2447,0x2448,0x2449,0x244a,0x2460,0x2461,0x2462,0x2463,
1.1961 + 0x2464,0x2465,0x2466,0x2467,0x2468,0x2469,0x246a,0x246b,0x246c,0x246d,
1.1962 + 0x246e,0x246f,0x2470,0x2471,0x2472,0x2473,0x2474,0x2475,0x2476,0x2477,
1.1963 + 0x2478,0x2479,0x247a,0x247b,0x247c,0x247d,0x247e,0x247f,0x2480,0x2481,
1.1964 + 0x2482,0x2483,0x2484,0x2485,0x2486,0x2487,0x24ea,0x24eb,0x24ec,0x24ed,
1.1965 + 0x24ee,0x24ef,0x24f0,0x24f1,0x24f2,0x24f3,0x24f4,0x24f5,0x24f6,0x24f7,
1.1966 + 0x24f8,0x24f9,0x24fa,0x24fb,0x24fc,0x24fd,0x24fe,0x24ff,0x2500,0x2501,
1.1967 + 0x2502,0x2503,0x2504,0x2505,0x2506,0x2507,0x2508,0x2509,0x250a,0x250b,
1.1968 + 0x250c,0x250d,0x250e,0x250f,0x2510,0x2511,0x2512,0x2513,0x2514,0x2515,
1.1969 + 0x2516,0x2517,0x2518,0x2519,0x251a,0x251b,0x251c,0x251d,0x251e,0x251f,
1.1970 + 0x2520,0x2521,0x2522,0x2523,0x2524,0x2525,0x2526,0x2527,0x2528,0x2529,
1.1971 + 0x252a,0x252b,0x252c,0x252d,0x252e,0x252f,0x2530,0x2531,0x2532,0x2533,
1.1972 + 0x2534,0x2535,0x2536,0x2537,0x2538,0x2539,0x253a,0x253b,0x253c,0x253d,
1.1973 + 0x253e,0x253f,0x2540,0x2541,0x2542,0x2543,0x2544,0x2545,0x2546,0x2547,
1.1974 + 0x2548,0x2549,0x254a,0x254b,0x254c,0x254d,0x254e,0x254f,0x2550,0x2551,
1.1975 + 0x2552,0x2553,0x2554,0x2555,0x2556,0x2557,0x2558,0x2559,0x255a,0x255b,
1.1976 + 0x255c,0x255d,0x255e,0x255f,0x2560,0x2561,0x2562,0x2563,0x2564,0x2565,
1.1977 + 0x2566,0x2567,0x2568,0x2569,0x256a,0x256b,0x256c,0x256d,0x256e,0x256f,
1.1978 + 0x2570,0x2571,0x2572,0x2573,0x2574,0x2575,0x2576,0x2577,0x2578,0x2579,
1.1979 + 0x257a,0x257b,0x257c,0x257d,0x257e,0x257f,0x2580,0x2581,0x2582,0x2583,
1.1980 + 0x2584,0x2585,0x2586,0x2587,0x2588,0x2589,0x258a,0x258b,0x258c,0x258d,
1.1981 + 0x258e,0x258f,0x2590,0x2591,0x2592,0x2593,0x2594,0x2595,0x2596,0x2597,
1.1982 + 0x2598,0x2599,0x259a,0x259b,0x259c,0x259d,0x259e,0x259f,0x25a0,0x25a1,
1.1983 + 0x25a2,0x25a3,0x25a4,0x25a5,0x25a6,0x25a7,0x25a8,0x25a9,0x25aa,0x25ab,
1.1984 + 0x25ac,0x25ad,0x25ae,0x25af,0x25b0,0x25b1,0x25b2,0x25b3,0x25b4,0x25b5,
1.1985 + 0x25b6,0x25b7,0x25b8,0x25b9,0x25ba,0x25bb,0x25bc,0x25bd,0x25be,0x25bf,
1.1986 + 0x25c0,0x25c1,0x25c2,0x25c3,0x25c4,0x25c5,0x25c6,0x25c7,0x25c8,0x25c9,
1.1987 + 0x25ca,0x25cb,0x25cc,0x25cd,0x25ce,0x25cf,0x25d0,0x25d1,0x25d2,0x25d3,
1.1988 + 0x25d4,0x25d5,0x25d6,0x25d7,0x25d8,0x25d9,0x25da,0x25db,0x25dc,0x25dd,
1.1989 + 0x25de,0x25df,0x25e0,0x25e1,0x25e2,0x25e3,0x25e4,0x25e5,0x25e6,0x25e7,
1.1990 + 0x25e8,0x25e9,0x25ea,0x25eb,0x25ec,0x25ed,0x25ee,0x25ef,0x25f0,0x25f1,
1.1991 + 0x25f2,0x25f3,0x25f4,0x25f5,0x25f6,0x25f7,0x25f8,0x25f9,0x25fa,0x25fb,
1.1992 + 0x25fc,0x25fd,0x25fe,0x25ff,0x2600,0x2601,0x2602,0x2603,0x2604,0x2605,
1.1993 + 0x2606,0x2607,0x2608,0x2609,0x260a,0x260b,0x260c,0x260d,0x260e,0x260f,
1.1994 + 0x2610,0x2611,0x2612,0x2613,0x2614,0x2615,0x2616,0x2617,0x2618,0x2619,
1.1995 + 0x261a,0x261b,0x261c,0x261d,0x261e,0x261f,0x2620,0x2621,0x2622,0x2623,
1.1996 + 0x2624,0x2625,0x2626,0x2627,0x2628,0x2629,0x262a,0x262b,0x262c,0x262d,
1.1997 + 0x262e,0x262f,0x2630,0x2631,0x2632,0x2633,0x2634,0x2635,0x2636,0x2637,
1.1998 + 0x2638,0x2639,0x263a,0x263b,0x263c,0x263d,0x263e,0x263f,0x2640,0x2641,
1.1999 + 0x2642,0x2643,0x2644,0x2645,0x2646,0x2647,0x2648,0x2649,0x264a,0x264b,
1.2000 + 0x264c,0x264d,0x264e,0x264f,0x2650,0x2651,0x2652,0x2653,0x2654,0x2655,
1.2001 + 0x2656,0x2657,0x2658,0x2659,0x265a,0x265b,0x265c,0x265d,0x265e,0x265f,
1.2002 + 0x2660,0x2661,0x2662,0x2663,0x2664,0x2665,0x2666,0x2667,0x2668,0x2669,
1.2003 + 0x266a,0x266b,0x266c,0x266d,0x266e,0x266f,0x2670,0x2671,0x2672,0x2673,
1.2004 + 0x2674,0x2675,0x2676,0x2677,0x2678,0x2679,0x267a,0x267b,0x267c,0x267d,
1.2005 + 0x267e,0x267f,0x2680,0x2681,0x2682,0x2683,0x2684,0x2685,0x2686,0x2687,
1.2006 + 0x2688,0x2689,0x268a,0x268b,0x268c,0x268d,0x268e,0x268f,0x2690,0x2691,
1.2007 + 0x2692,0x2693,0x2694,0x2695,0x2696,0x2697,0x2698,0x2699,0x269a,0x269b,
1.2008 + 0x269c,0x26a0,0x26a1,0x26a2,0x26a3,0x26a4,0x26a5,0x26a6,0x26a7,0x26a8,
1.2009 + 0x26a9,0x26aa,0x26ab,0x26ad,0x26ae,0x26af,0x26b0,0x26b1,0x26b2,0x2701,
1.2010 + 0x2702,0x2703,0x2704,0x2706,0x2707,0x2708,0x2709,0x270c,0x270d,0x270e,
1.2011 + 0x270f,0x2710,0x2711,0x2712,0x2713,0x2714,0x2715,0x2716,0x2717,0x2718,
1.2012 + 0x2719,0x271a,0x271b,0x271c,0x271d,0x271e,0x271f,0x2720,0x2721,0x2722,
1.2013 + 0x2723,0x2724,0x2725,0x2726,0x2727,0x2729,0x272a,0x272b,0x272c,0x272d,
1.2014 + 0x272e,0x272f,0x2730,0x2731,0x2732,0x2733,0x2734,0x2735,0x2736,0x2737,
1.2015 + 0x2738,0x2739,0x273a,0x273b,0x273c,0x273d,0x273e,0x273f,0x2740,0x2741,
1.2016 + 0x2742,0x2743,0x2744,0x2745,0x2746,0x2747,0x2748,0x2749,0x274a,0x274b,
1.2017 + 0x274d,0x274f,0x2750,0x2751,0x2752,0x2756,0x2758,0x2759,0x275a,0x275b,
1.2018 + 0x275c,0x275d,0x275e,0x2761,0x2762,0x2763,0x2764,0x2765,0x2766,0x2767,
1.2019 + 0x2768,0x2769,0x276a,0x276b,0x276c,0x276d,0x276e,0x276f,0x2770,0x2771,
1.2020 + 0x2772,0x2773,0x2774,0x2775,0x2776,0x2777,0x2778,0x2779,0x277a,0x277b,
1.2021 + 0x277c,0x277d,0x277e,0x277f,0x2780,0x2781,0x2782,0x2783,0x2784,0x2785,
1.2022 + 0x2786,0x2787,0x2788,0x2789,0x278a,0x278b,0x278c,0x278d,0x278e,0x278f,
1.2023 + 0x2790,0x2791,0x2792,0x2793,0x2794,0x2798,0x2799,0x279a,0x279b,0x279c,
1.2024 + 0x279d,0x279e,0x279f,0x27a0,0x27a1,0x27a2,0x27a3,0x27a4,0x27a5,0x27a6,
1.2025 + 0x27a7,0x27a8,0x27a9,0x27aa,0x27ab,0x27ac,0x27ad,0x27ae,0x27af,0x27b1,
1.2026 + 0x27b2,0x27b3,0x27b4,0x27b5,0x27b6,0x27b7,0x27b8,0x27b9,0x27ba,0x27bb,
1.2027 + 0x27bc,0x27bd,0x27be,0x27c0,0x27c1,0x27c2,0x27c3,0x27c4,0x27c5,0x27c6,
1.2028 + 0x27c7,0x27c8,0x27c9,0x27ca,0x27d0,0x27d1,0x27d2,0x27d3,0x27d4,0x27d5,
1.2029 + 0x27d6,0x27d7,0x27d8,0x27d9,0x27da,0x27db,0x27dc,0x27dd,0x27de,0x27df,
1.2030 + 0x27e0,0x27e1,0x27e2,0x27e3,0x27e4,0x27e5,0x27e6,0x27e7,0x27e8,0x27e9,
1.2031 + 0x27ea,0x27eb,0x27f0,0x27f1,0x27f2,0x27f3,0x27f4,0x27f5,0x27f6,0x27f7,
1.2032 + 0x27f8,0x27f9,0x27fa,0x27fb,0x27fc,0x27fd,0x27fe,0x27ff,0x2900,0x2901,
1.2033 + 0x2902,0x2903,0x2904,0x2905,0x2906,0x2907,0x2908,0x2909,0x290a,0x290b,
1.2034 + 0x290c,0x290d,0x290e,0x290f,0x2910,0x2911,0x2912,0x2913,0x2914,0x2915,
1.2035 + 0x2916,0x2917,0x2918,0x2919,0x291a,0x291b,0x291c,0x291d,0x291e,0x291f,
1.2036 + 0x2920,0x2921,0x2922,0x2923,0x2924,0x2925,0x2926,0x2927,0x2928,0x2929,
1.2037 + 0x292a,0x292b,0x292c,0x292d,0x292e,0x292f,0x2930,0x2931,0x2932,0x2933,
1.2038 + 0x2934,0x2935,0x2936,0x2937,0x2938,0x2939,0x293a,0x293b,0x293c,0x293d,
1.2039 + 0x293e,0x293f,0x2940,0x2941,0x2942,0x2943,0x2944,0x2945,0x2946,0x2947,
1.2040 + 0x2948,0x2949,0x294a,0x294b,0x294c,0x294d,0x294e,0x294f,0x2950,0x2951,
1.2041 + 0x2952,0x2953,0x2954,0x2955,0x2956,0x2957,0x2958,0x2959,0x295a,0x295b,
1.2042 + 0x295c,0x295d,0x295e,0x295f,0x2960,0x2961,0x2962,0x2963,0x2964,0x2965,
1.2043 + 0x2966,0x2967,0x2968,0x2969,0x296a,0x296b,0x296c,0x296d,0x296e,0x296f,
1.2044 + 0x2970,0x2971,0x2972,0x2973,0x2974,0x2975,0x2976,0x2977,0x2978,0x2979,
1.2045 + 0x297a,0x297b,0x297c,0x297d,0x297e,0x297f,0x2980,0x2981,0x2982,0x2983,
1.2046 + 0x2984,0x2985,0x2986,0x2987,0x2988,0x2989,0x298a,0x298b,0x298c,0x298d,
1.2047 + 0x298e,0x298f,0x2990,0x2991,0x2992,0x2993,0x2994,0x2995,0x2996,0x2997,
1.2048 + 0x2998,0x2999,0x299a,0x299b,0x299c,0x299d,0x299e,0x299f,0x29a0,0x29a1,
1.2049 + 0x29a2,0x29a3,0x29a4,0x29a5,0x29a6,0x29a7,0x29a8,0x29a9,0x29aa,0x29ab,
1.2050 + 0x29ac,0x29ad,0x29ae,0x29af,0x29b0,0x29b1,0x29b2,0x29b3,0x29b4,0x29b5,
1.2051 + 0x29b6,0x29b7,0x29b8,0x29b9,0x29ba,0x29bb,0x29bc,0x29bd,0x29be,0x29bf,
1.2052 + 0x29c0,0x29c1,0x29c2,0x29c3,0x29c4,0x29c5,0x29c6,0x29c7,0x29c8,0x29c9,
1.2053 + 0x29ca,0x29cb,0x29cc,0x29cd,0x29ce,0x29cf,0x29d0,0x29d1,0x29d2,0x29d3,
1.2054 + 0x29d4,0x29d5,0x29d6,0x29d7,0x29d8,0x29d9,0x29da,0x29db,0x29dc,0x29dd,
1.2055 + 0x29de,0x29df,0x29e0,0x29e1,0x29e2,0x29e3,0x29e4,0x29e5,0x29e6,0x29e7,
1.2056 + 0x29e8,0x29e9,0x29ea,0x29eb,0x29ec,0x29ed,0x29ee,0x29ef,0x29f0,0x29f1,
1.2057 + 0x29f2,0x29f3,0x29f4,0x29f5,0x29f6,0x29f7,0x29f8,0x29f9,0x29fa,0x29fb,
1.2058 + 0x29fc,0x29fd,0x29fe,0x29ff,0x2a00,0x2a01,0x2a02,0x2a03,0x2a04,0x2a05,
1.2059 + 0x2a06,0x2a07,0x2a08,0x2a09,0x2a0a,0x2a0b,0x2a0c,0x2a0d,0x2a0e,0x2a0f,
1.2060 + 0x2a10,0x2a11,0x2a12,0x2a13,0x2a14,0x2a15,0x2a16,0x2a17,0x2a18,0x2a19,
1.2061 + 0x2a1a,0x2a1b,0x2a1c,0x2a1d,0x2a1e,0x2a1f,0x2a20,0x2a21,0x2a22,0x2a23,
1.2062 + 0x2a24,0x2a25,0x2a26,0x2a27,0x2a28,0x2a29,0x2a2a,0x2a2b,0x2a2c,0x2a2d,
1.2063 + 0x2a2e,0x2a2f,0x2a30,0x2a31,0x2a32,0x2a33,0x2a34,0x2a35,0x2a36,0x2a37,
1.2064 + 0x2a38,0x2a39,0x2a3a,0x2a3b,0x2a3c,0x2a3d,0x2a3e,0x2a3f,0x2a40,0x2a41,
1.2065 + 0x2a42,0x2a43,0x2a44,0x2a45,0x2a46,0x2a47,0x2a48,0x2a49,0x2a4a,0x2a4b,
1.2066 + 0x2a4c,0x2a4d,0x2a4e,0x2a4f,0x2a50,0x2a51,0x2a52,0x2a53,0x2a54,0x2a55,
1.2067 + 0x2a56,0x2a57,0x2a58,0x2a59,0x2a5a,0x2a5b,0x2a5c,0x2a5d,0x2a5e,0x2a5f,
1.2068 + 0x2a60,0x2a61,0x2a62,0x2a63,0x2a64,0x2a65,0x2a66,0x2a67,0x2a68,0x2a69,
1.2069 + 0x2a6a,0x2a6b,0x2a6c,0x2a6d,0x2a6e,0x2a6f,0x2a70,0x2a71,0x2a72,0x2a73,
1.2070 + 0x2a74,0x2a75,0x2a76,0x2a77,0x2a78,0x2a79,0x2a7a,0x2a7b,0x2a7c,0x2a7d,
1.2071 + 0x2a7e,0x2a7f,0x2a80,0x2a81,0x2a82,0x2a83,0x2a84,0x2a85,0x2a86,0x2a87,
1.2072 + 0x2a88,0x2a89,0x2a8a,0x2a8b,0x2a8c,0x2a8d,0x2a8e,0x2a8f,0x2a90,0x2a91,
1.2073 + 0x2a92,0x2a93,0x2a94,0x2a95,0x2a96,0x2a97,0x2a98,0x2a99,0x2a9a,0x2a9b,
1.2074 + 0x2a9c,0x2a9d,0x2a9e,0x2a9f,0x2aa0,0x2aa1,0x2aa2,0x2aa3,0x2aa4,0x2aa5,
1.2075 + 0x2aa6,0x2aa7,0x2aa8,0x2aa9,0x2aaa,0x2aab,0x2aac,0x2aad,0x2aae,0x2aaf,
1.2076 + 0x2ab0,0x2ab1,0x2ab2,0x2ab3,0x2ab4,0x2ab5,0x2ab6,0x2ab7,0x2ab8,0x2ab9,
1.2077 + 0x2aba,0x2abb,0x2abc,0x2abd,0x2abe,0x2abf,0x2ac0,0x2ac1,0x2ac2,0x2ac3,
1.2078 + 0x2ac4,0x2ac5,0x2ac6,0x2ac7,0x2ac8,0x2ac9,0x2aca,0x2acb,0x2acc,0x2acd,
1.2079 + 0x2ace,0x2acf,0x2ad0,0x2ad1,0x2ad2,0x2ad3,0x2ad4,0x2ad5,0x2ad6,0x2ad7,
1.2080 + 0x2ad8,0x2ad9,0x2ada,0x2adb,0x2adc,0x2add,0x2ade,0x2adf,0x2ae0,0x2ae1,
1.2081 + 0x2ae2,0x2ae3,0x2ae4,0x2ae5,0x2ae6,0x2ae7,0x2ae8,0x2ae9,0x2aea,0x2aeb,
1.2082 + 0x2aec,0x2aed,0x2aee,0x2aef,0x2af0,0x2af1,0x2af2,0x2af3,0x2af4,0x2af5,
1.2083 + 0x2af6,0x2af7,0x2af8,0x2af9,0x2afa,0x2afb,0x2afc,0x2afd,0x2afe,0x2aff,
1.2084 + 0x2b00,0x2b01,0x2b02,0x2b03,0x2b04,0x2b05,0x2b06,0x2b07,0x2b08,0x2b09,
1.2085 + 0x2b0a,0x2b0b,0x2b0c,0x2b0d,0x2b0e,0x2b0f,0x2b10,0x2b11,0x2b12,0x2b13,
1.2086 + 0x2b14,0x2b15,0x2b16,0x2b17,0x2b18,0x2b19,0x2b1a,0x2b20,0x2b21,0x2b22,
1.2087 + 0x2b23,0x2ce5,0x2ce6,0x2ce7,0x2ce8,0x2ce9,0x2cea,0x2cf9,0x2cfa,0x2cfb,
1.2088 + 0x2cfc,0x2cfd,0x2cfe,0x2cff,0x2e00,0x2e01,0x2e02,0x2e03,0x2e04,0x2e05,
1.2089 + 0x2e06,0x2e07,0x2e08,0x2e09,0x2e0a,0x2e0b,0x2e0c,0x2e0d,0x2e0e,0x2e0f,
1.2090 + 0x2e10,0x2e11,0x2e12,0x2e13,0x2e14,0x2e15,0x2e16,0x2e17,0x2e1c,0x2e1d,
1.2091 + 0x2e80,0x2e81,0x2e82,0x2e83,0x2e84,0x2e85,0x2e86,0x2e87,0x2e88,0x2e89,
1.2092 + 0x2e8a,0x2e8b,0x2e8c,0x2e8d,0x2e8e,0x2e8f,0x2e90,0x2e91,0x2e92,0x2e93,
1.2093 + 0x2e94,0x2e95,0x2e96,0x2e97,0x2e98,0x2e99,0x2e9b,0x2e9c,0x2e9d,0x2e9e,
1.2094 + 0x2e9f,0x2ea0,0x2ea1,0x2ea2,0x2ea3,0x2ea4,0x2ea5,0x2ea6,0x2ea7,0x2ea8,
1.2095 + 0x2ea9,0x2eaa,0x2eab,0x2eac,0x2ead,0x2eae,0x2eaf,0x2eb0,0x2eb1,0x2eb2,
1.2096 + 0x2eb3,0x2eb4,0x2eb5,0x2eb6,0x2eb7,0x2eb8,0x2eb9,0x2eba,0x2ebb,0x2ebc,
1.2097 + 0x2ebd,0x2ebe,0x2ebf,0x2ec0,0x2ec1,0x2ec2,0x2ec3,0x2ec4,0x2ec5,0x2ec6,
1.2098 + 0x2ec7,0x2ec8,0x2ec9,0x2eca,0x2ecb,0x2ecc,0x2ecd,0x2ece,0x2ecf,0x2ed0,
1.2099 + 0x2ed1,0x2ed2,0x2ed3,0x2ed4,0x2ed5,0x2ed6,0x2ed7,0x2ed8,0x2ed9,0x2eda,
1.2100 + 0x2edb,0x2edc,0x2edd,0x2ede,0x2edf,0x2ee0,0x2ee1,0x2ee2,0x2ee3,0x2ee4,
1.2101 + 0x2ee5,0x2ee6,0x2ee7,0x2ee8,0x2ee9,0x2eea,0x2eeb,0x2eec,0x2eed,0x2eee,
1.2102 + 0x2eef,0x2ef0,0x2ef1,0x2ef2,0x2ef3,0x2f00,0x2f01,0x2f02,0x2f03,0x2f04,
1.2103 + 0x2f05,0x2f06,0x2f07,0x2f08,0x2f09,0x2f0a,0x2f0b,0x2f0c,0x2f0d,0x2f0e,
1.2104 + 0x2f0f,0x2f10,0x2f11,0x2f12,0x2f13,0x2f14,0x2f15,0x2f16,0x2f17,0x2f18,
1.2105 + 0x2f19,0x2f1a,0x2f1b,0x2f1c,0x2f1d,0x2f1e,0x2f1f,0x2f20,0x2f21,0x2f22,
1.2106 + 0x2f23,0x2f24,0x2f25,0x2f26,0x2f27,0x2f28,0x2f29,0x2f2a,0x2f2b,0x2f2c,
1.2107 + 0x2f2d,0x2f2e,0x2f2f,0x2f30,0x2f31,0x2f32,0x2f33,0x2f34,0x2f35,0x2f36,
1.2108 + 0x2f37,0x2f38,0x2f39,0x2f3a,0x2f3b,0x2f3c,0x2f3d,0x2f3e,0x2f3f,0x2f40,
1.2109 + 0x2f41,0x2f42,0x2f43,0x2f44,0x2f45,0x2f46,0x2f47,0x2f48,0x2f49,0x2f4a,
1.2110 + 0x2f4b,0x2f4c,0x2f4d,0x2f4e,0x2f4f,0x2f50,0x2f51,0x2f52,0x2f53,0x2f54,
1.2111 + 0x2f55,0x2f56,0x2f57,0x2f58,0x2f59,0x2f5a,0x2f5b,0x2f5c,0x2f5d,0x2f5e,
1.2112 + 0x2f5f,0x2f60,0x2f61,0x2f62,0x2f63,0x2f64,0x2f65,0x2f66,0x2f67,0x2f68,
1.2113 + 0x2f69,0x2f6a,0x2f6b,0x2f6c,0x2f6d,0x2f6e,0x2f6f,0x2f70,0x2f71,0x2f72,
1.2114 + 0x2f73,0x2f74,0x2f75,0x2f76,0x2f77,0x2f78,0x2f79,0x2f7a,0x2f7b,0x2f7c,
1.2115 + 0x2f7d,0x2f7e,0x2f7f,0x2f80,0x2f81,0x2f82,0x2f83,0x2f84,0x2f85,0x2f86,
1.2116 + 0x2f87,0x2f88,0x2f89,0x2f8a,0x2f8b,0x2f8c,0x2f8d,0x2f8e,0x2f8f,0x2f90,
1.2117 + 0x2f91,0x2f92,0x2f93,0x2f94,0x2f95,0x2f96,0x2f97,0x2f98,0x2f99,0x2f9a,
1.2118 + 0x2f9b,0x2f9c,0x2f9d,0x2f9e,0x2f9f,0x2fa0,0x2fa1,0x2fa2,0x2fa3,0x2fa4,
1.2119 + 0x2fa5,0x2fa6,0x2fa7,0x2fa8,0x2fa9,0x2faa,0x2fab,0x2fac,0x2fad,0x2fae,
1.2120 + 0x2faf,0x2fb0,0x2fb1,0x2fb2,0x2fb3,0x2fb4,0x2fb5,0x2fb6,0x2fb7,0x2fb8,
1.2121 + 0x2fb9,0x2fba,0x2fbb,0x2fbc,0x2fbd,0x2fbe,0x2fbf,0x2fc0,0x2fc1,0x2fc2,
1.2122 + 0x2fc3,0x2fc4,0x2fc5,0x2fc6,0x2fc7,0x2fc8,0x2fc9,0x2fca,0x2fcb,0x2fcc,
1.2123 + 0x2fcd,0x2fce,0x2fcf,0x2fd0,0x2fd1,0x2fd2,0x2fd3,0x2fd4,0x2fd5,0x2ff0,
1.2124 + 0x2ff1,0x2ff2,0x2ff3,0x2ff4,0x2ff5,0x2ff6,0x2ff7,0x2ff8,0x2ff9,0x2ffa,
1.2125 + 0x2ffb,0x3001,0x3002,0x3003,0x3004,0x3008,0x3009,0x300a,0x300b,0x300c,
1.2126 + 0x300d,0x300e,0x300f,0x3010,0x3011,0x3012,0x3013,0x3014,0x3015,0x3016,
1.2127 + 0x3017,0x3018,0x3019,0x301a,0x301b,0x301c,0x301d,0x301e,0x301f,0x3020,
1.2128 + 0x3030,0x3036,0x3037,0x303d,0x303e,0x303f,0x309b,0x309c,0x30a0,0x30fb,
1.2129 + 0x31c0,0x31c1,0x31c2,0x31c3,0x31c4,0x31c5,0x31c6,0x31c7,0x31c8,0x31c9,
1.2130 + 0x31ca,0x31cb,0x31cc,0x31cd,0x31ce,0x31cf,0x321d,0x321e,0x3250,0x3251,
1.2131 + 0x3252,0x3253,0x3254,0x3255,0x3256,0x3257,0x3258,0x3259,0x325a,0x325b,
1.2132 + 0x325c,0x325d,0x325e,0x325f,0x327c,0x327d,0x327e,0x32b1,0x32b2,0x32b3,
1.2133 + 0x32b4,0x32b5,0x32b6,0x32b7,0x32b8,0x32b9,0x32ba,0x32bb,0x32bc,0x32bd,
1.2134 + 0x32be,0x32bf,0x32cc,0x32cd,0x32ce,0x32cf,0x3377,0x3378,0x3379,0x337a,
1.2135 + 0x33de,0x33df,0x33ff,0x4dc0,0x4dc1,0x4dc2,0x4dc3,0x4dc4,0x4dc5,0x4dc6,
1.2136 + 0x4dc7,0x4dc8,0x4dc9,0x4dca,0x4dcb,0x4dcc,0x4dcd,0x4dce,0x4dcf,0x4dd0,
1.2137 + 0x4dd1,0x4dd2,0x4dd3,0x4dd4,0x4dd5,0x4dd6,0x4dd7,0x4dd8,0x4dd9,0x4dda,
1.2138 + 0x4ddb,0x4ddc,0x4ddd,0x4dde,0x4ddf,0x4de0,0x4de1,0x4de2,0x4de3,0x4de4,
1.2139 + 0x4de5,0x4de6,0x4de7,0x4de8,0x4de9,0x4dea,0x4deb,0x4dec,0x4ded,0x4dee,
1.2140 + 0x4def,0x4df0,0x4df1,0x4df2,0x4df3,0x4df4,0x4df5,0x4df6,0x4df7,0x4df8,
1.2141 + 0x4df9,0x4dfa,0x4dfb,0x4dfc,0x4dfd,0x4dfe,0x4dff,0xa490,0xa491,0xa492,
1.2142 + 0xa493,0xa494,0xa495,0xa496,0xa497,0xa498,0xa499,0xa49a,0xa49b,0xa49c,
1.2143 + 0xa49d,0xa49e,0xa49f,0xa4a0,0xa4a1,0xa4a2,0xa4a3,0xa4a4,0xa4a5,0xa4a6,
1.2144 + 0xa4a7,0xa4a8,0xa4a9,0xa4aa,0xa4ab,0xa4ac,0xa4ad,0xa4ae,0xa4af,0xa4b0,
1.2145 + 0xa4b1,0xa4b2,0xa4b3,0xa4b4,0xa4b5,0xa4b6,0xa4b7,0xa4b8,0xa4b9,0xa4ba,
1.2146 + 0xa4bb,0xa4bc,0xa4bd,0xa4be,0xa4bf,0xa4c0,0xa4c1,0xa4c2,0xa4c3,0xa4c4,
1.2147 + 0xa4c5,0xa4c6,0xa700,0xa701,0xa702,0xa703,0xa704,0xa705,0xa706,0xa707,
1.2148 + 0xa708,0xa709,0xa70a,0xa70b,0xa70c,0xa70d,0xa70e,0xa70f,0xa710,0xa711,
1.2149 + 0xa712,0xa713,0xa714,0xa715,0xa716,0xa717,0xa718,0xa719,0xa71a,0xa720,
1.2150 + 0xa721,0xa828,0xa829,0xa82a,0xa82b,0xa874,0xa875,0xa876,0xa877,0xfd3e,
1.2151 + 0xfd3f,0xfdfd,0xfe10,0xfe11,0xfe12,0xfe13,0xfe14,0xfe15,0xfe16,0xfe17,
1.2152 + 0xfe18,0xfe19,0xfe30,0xfe31,0xfe32,0xfe33,0xfe34,0xfe35,0xfe36,0xfe37,
1.2153 + 0xfe38,0xfe39,0xfe3a,0xfe3b,0xfe3c,0xfe3d,0xfe3e,0xfe3f,0xfe40,0xfe41,
1.2154 + 0xfe42,0xfe43,0xfe44,0xfe45,0xfe46,0xfe47,0xfe48,0xfe49,0xfe4a,0xfe4b,
1.2155 + 0xfe4c,0xfe4d,0xfe4e,0xfe4f,0xfe51,0xfe54,0xfe56,0xfe57,0xfe58,0xfe59,
1.2156 + 0xfe5a,0xfe5b,0xfe5c,0xfe5d,0xfe5e,0xfe60,0xfe61,0xfe64,0xfe65,0xfe66,
1.2157 + 0xfe68,0xfe6b,0xff01,0xff02,0xff06,0xff07,0xff08,0xff09,0xff0a,0xff1b,
1.2158 + 0xff1c,0xff1d,0xff1e,0xff1f,0xff20,0xff3b,0xff3c,0xff3d,0xff3e,0xff3f,
1.2159 + 0xff40,0xff5b,0xff5c,0xff5d,0xff5e,0xff5f,0xff60,0xff61,0xff62,0xff63,
1.2160 + 0xff64,0xff65,0xffe2,0xffe3,0xffe4,0xffe8,0xffe9,0xffea,0xffeb,0xffec,
1.2161 + 0xffed,0xffee,0xfff9,0xfffa,0xfffb,0xfffc,0xfffd,0xd800,0xdd01,
1.2162 + 0xd800,0xdd40,0xd800,0xdd41,0xd800,0xdd42,0xd800,0xdd43,0xd800,0xdd44,
1.2163 + 0xd800,0xdd45,0xd800,0xdd46,0xd800,0xdd47,0xd800,0xdd48,0xd800,0xdd49,
1.2164 + 0xd800,0xdd4a,0xd800,0xdd4b,0xd800,0xdd4c,0xd800,0xdd4d,0xd800,0xdd4e,
1.2165 + 0xd800,0xdd4f,0xd800,0xdd50,0xd800,0xdd51,0xd800,0xdd52,0xd800,0xdd53,
1.2166 + 0xd800,0xdd54,0xd800,0xdd55,0xd800,0xdd56,0xd800,0xdd57,0xd800,0xdd58,
1.2167 + 0xd800,0xdd59,0xd800,0xdd5a,0xd800,0xdd5b,0xd800,0xdd5c,0xd800,0xdd5d,
1.2168 + 0xd800,0xdd5e,0xd800,0xdd5f,0xd800,0xdd60,0xd800,0xdd61,0xd800,0xdd62,
1.2169 + 0xd800,0xdd63,0xd800,0xdd64,0xd800,0xdd65,0xd800,0xdd66,0xd800,0xdd67,
1.2170 + 0xd800,0xdd68,0xd800,0xdd69,0xd800,0xdd6a,0xd800,0xdd6b,0xd800,0xdd6c,
1.2171 + 0xd800,0xdd6d,0xd800,0xdd6e,0xd800,0xdd6f,0xd800,0xdd70,0xd800,0xdd71,
1.2172 + 0xd800,0xdd72,0xd800,0xdd73,0xd800,0xdd74,0xd800,0xdd75,0xd800,0xdd76,
1.2173 + 0xd800,0xdd77,0xd800,0xdd78,0xd800,0xdd79,0xd800,0xdd7a,0xd800,0xdd7b,
1.2174 + 0xd800,0xdd7c,0xd800,0xdd7d,0xd800,0xdd7e,0xd800,0xdd7f,0xd800,0xdd80,
1.2175 + 0xd800,0xdd81,0xd800,0xdd82,0xd800,0xdd83,0xd800,0xdd84,0xd800,0xdd85,
1.2176 + 0xd800,0xdd86,0xd800,0xdd87,0xd800,0xdd88,0xd800,0xdd89,0xd800,0xdd8a,
1.2177 + 0xd802,0xdd1f,0xd834,0xde00,0xd834,0xde01,0xd834,0xde02,0xd834,0xde03,
1.2178 + 0xd834,0xde04,0xd834,0xde05,0xd834,0xde06,0xd834,0xde07,0xd834,0xde08,
1.2179 + 0xd834,0xde09,0xd834,0xde0a,0xd834,0xde0b,0xd834,0xde0c,0xd834,0xde0d,
1.2180 + 0xd834,0xde0e,0xd834,0xde0f,0xd834,0xde10,0xd834,0xde11,0xd834,0xde12,
1.2181 + 0xd834,0xde13,0xd834,0xde14,0xd834,0xde15,0xd834,0xde16,0xd834,0xde17,
1.2182 + 0xd834,0xde18,0xd834,0xde19,0xd834,0xde1a,0xd834,0xde1b,0xd834,0xde1c,
1.2183 + 0xd834,0xde1d,0xd834,0xde1e,0xd834,0xde1f,0xd834,0xde20,0xd834,0xde21,
1.2184 + 0xd834,0xde22,0xd834,0xde23,0xd834,0xde24,0xd834,0xde25,0xd834,0xde26,
1.2185 + 0xd834,0xde27,0xd834,0xde28,0xd834,0xde29,0xd834,0xde2a,0xd834,0xde2b,
1.2186 + 0xd834,0xde2c,0xd834,0xde2d,0xd834,0xde2e,0xd834,0xde2f,0xd834,0xde30,
1.2187 + 0xd834,0xde31,0xd834,0xde32,0xd834,0xde33,0xd834,0xde34,0xd834,0xde35,
1.2188 + 0xd834,0xde36,0xd834,0xde37,0xd834,0xde38,0xd834,0xde39,0xd834,0xde3a,
1.2189 + 0xd834,0xde3b,0xd834,0xde3c,0xd834,0xde3d,0xd834,0xde3e,0xd834,0xde3f,
1.2190 + 0xd834,0xde40,0xd834,0xde41,0xd834,0xde45,0xd834,0xdf00,0xd834,0xdf01,
1.2191 + 0xd834,0xdf02,0xd834,0xdf03,0xd834,0xdf04,0xd834,0xdf05,0xd834,0xdf06,
1.2192 + 0xd834,0xdf07,0xd834,0xdf08,0xd834,0xdf09,0xd834,0xdf0a,0xd834,0xdf0b,
1.2193 + 0xd834,0xdf0c,0xd834,0xdf0d,0xd834,0xdf0e,0xd834,0xdf0f,0xd834,0xdf10,
1.2194 + 0xd834,0xdf11,0xd834,0xdf12,0xd834,0xdf13,0xd834,0xdf14,0xd834,0xdf15,
1.2195 + 0xd834,0xdf16,0xd834,0xdf17,0xd834,0xdf18,0xd834,0xdf19,0xd834,0xdf1a,
1.2196 + 0xd834,0xdf1b,0xd834,0xdf1c,0xd834,0xdf1d,0xd834,0xdf1e,0xd834,0xdf1f,
1.2197 + 0xd834,0xdf20,0xd834,0xdf21,0xd834,0xdf22,0xd834,0xdf23,0xd834,0xdf24,
1.2198 + 0xd834,0xdf25,0xd834,0xdf26,0xd834,0xdf27,0xd834,0xdf28,0xd834,0xdf29,
1.2199 + 0xd834,0xdf2a,0xd834,0xdf2b,0xd834,0xdf2c,0xd834,0xdf2d,0xd834,0xdf2e,
1.2200 + 0xd834,0xdf2f,0xd834,0xdf30,0xd834,0xdf31,0xd834,0xdf32,0xd834,0xdf33,
1.2201 + 0xd834,0xdf34,0xd834,0xdf35,0xd834,0xdf36,0xd834,0xdf37,0xd834,0xdf38,
1.2202 + 0xd834,0xdf39,0xd834,0xdf3a,0xd834,0xdf3b,0xd834,0xdf3c,0xd834,0xdf3d,
1.2203 + 0xd834,0xdf3e,0xd834,0xdf3f,0xd834,0xdf40,0xd834,0xdf41,0xd834,0xdf42,
1.2204 + 0xd834,0xdf43,0xd834,0xdf44,0xd834,0xdf45,0xd834,0xdf46,0xd834,0xdf47,
1.2205 + 0xd834,0xdf48,0xd834,0xdf49,0xd834,0xdf4a,0xd834,0xdf4b,0xd834,0xdf4c,
1.2206 + 0xd834,0xdf4d,0xd834,0xdf4e,0xd834,0xdf4f,0xd834,0xdf50,0xd834,0xdf51,
1.2207 + 0xd834,0xdf52,0xd834,0xdf53,0xd834,0xdf54,0xd834,0xdf55,0xd834,0xdf56,
1.2208 + };
1.2209 +static const TUint KOtherNeutralsLength = 2917 + 462;
1.2210 +
1.2211 +//This test data is an extract from the Project Gutenberg version of
1.2212 +//The War Of The Worlds by H G Wells
1.2213 +
1.2214 +static const TUint16 KArab1Data[] =
1.2215 + {
1.2216 + 0xfeff, 0x0623, 0x0633, 0x0627, 0x0633, 0x064b, 0x0627, 0x060c,
1.2217 + 0x0020, 0x000d, 0x000a, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2218 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2219 + 0x0020, 0x062a, 0x062a, 0x0639, 0x0627, 0x0645, 0x0644, 0x0020,
1.2220 + 0x0627, 0x0644, 0x062d, 0x0648, 0x0627, 0x0633, 0x064a, 0x0628,
1.2221 + 0x0020, 0x0641, 0x0642, 0x0637, 0x0020, 0x0645, 0x0639, 0x0020,
1.2222 + 0x0627, 0x0644, 0x0623, 0x0631, 0x0642, 0x0627, 0x0645, 0x060c,
1.2223 + 0x0020, 0x0648, 0x062a, 0x0642, 0x0648, 0x0645, 0x0020, 0x0628,
1.2224 + 0x062a, 0x062e, 0x0632, 0x064a, 0x0646, 0x0020, 0x0627, 0x0644,
1.2225 + 0x0623, 0x062d, 0x0631, 0x0641, 0x0020, 0x0648, 0x0627, 0x0644,
1.2226 + 0x0645, 0x062d, 0x0627, 0x0631, 0x0641, 0x0020, 0x000d, 0x000a,
1.2227 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2228 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0627, 0x0644,
1.2229 + 0x0623, 0x062e, 0x0631, 0x0649, 0x0020, 0x0628, 0x0639, 0x062f,
1.2230 + 0x0020, 0x0623, 0x0646, 0x0020, 0x062a, 0x064f, 0x0639, 0x0637,
1.2231 + 0x064a, 0x0020, 0x0631, 0x0642, 0x0645, 0x0627, 0x0020, 0x0645,
1.2232 + 0x0639, 0x064a, 0x0646, 0x0627, 0x0020, 0x0644, 0x0643, 0x0644,
1.2233 + 0x0020, 0x0648, 0x0627, 0x062d, 0x062f, 0x0020, 0x0645, 0x0646,
1.2234 + 0x0647, 0x0627, 0x002e, 0x0020, 0x0648, 0x0642, 0x0628, 0x0644,
1.2235 + 0x0020, 0x0627, 0x062e, 0x062a, 0x0631, 0x0627, 0x0639, 0x0020,
1.2236 + 0x000d, 0x000a, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2237 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2238 + 0x0022, 0x064a, 0x0648, 0x0646, 0x0650, 0x0643, 0x0648, 0x062f,
1.2239 + 0x0022, 0x060c, 0x0020, 0x0643, 0x0627, 0x0646, 0x0020, 0x0647,
1.2240 + 0x0646, 0x0627, 0x0643, 0x0020, 0x0645, 0x0626, 0x0627, 0x062a,
1.2241 + 0x0020, 0x0627, 0x0644, 0x0623, 0x0646, 0x0638, 0x0645, 0x0629,
1.2242 + 0x0020, 0x0644, 0x0644, 0x062a, 0x0634, 0x0641, 0x064a, 0x0631,
1.2243 + 0x0020, 0x0648, 0x062a, 0x062e, 0x0635, 0x064a, 0x0635, 0x0020,
1.2244 + 0x0647, 0x0630, 0x0647, 0x0020, 0x0627, 0x0644, 0x0623, 0x0631,
1.2245 + 0x0642, 0x0627, 0x0645, 0x0020, 0x000d, 0x000a, 0x0020, 0x0020,
1.2246 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2247 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0644, 0x0644, 0x0645, 0x062d,
1.2248 + 0x0627, 0x0631, 0x0641, 0x060c, 0x0020, 0x0648, 0x0644, 0x0645,
1.2249 + 0x0020, 0x064a, 0x0648, 0x062c, 0x062f, 0x0020, 0x0646, 0x0638,
1.2250 + 0x0627, 0x0645, 0x0020, 0x062a, 0x0634, 0x0641, 0x064a, 0x0631,
1.2251 + 0x0020, 0x0648, 0x0627, 0x062d, 0x062f, 0x0020, 0x064a, 0x062d,
1.2252 + 0x062a, 0x0648, 0x064a, 0x0020, 0x0639, 0x0644, 0x0649, 0x0020,
1.2253 + 0x062c, 0x0645, 0x064a, 0x0639, 0x0020, 0x0627, 0x0644, 0x0645,
1.2254 + 0x062d, 0x0627, 0x0631, 0x0641, 0x0020, 0x0627, 0x0644, 0x0636,
1.2255 + 0x0631, 0x0648, 0x0631, 0x064a, 0x0629, 0x002e, 0x0020, 0x000d,
1.2256 + 0x000a, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2257 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0648,
1.2258 + 0x0639, 0x0644, 0x0649, 0x0020, 0x0633, 0x0628, 0x064a, 0x0644,
1.2259 + 0x0020, 0x0627, 0x0644, 0x0645, 0x062b, 0x0627, 0x0644, 0x060c,
1.2260 + 0x0020, 0x0641, 0x0625, 0x0646, 0x0020, 0x0627, 0x0644, 0x0627,
1.2261 + 0x062a, 0x062d, 0x0627, 0x062f, 0x0020, 0x0627, 0x0644, 0x0623,
1.2262 + 0x0648, 0x0631, 0x0648, 0x0628, 0x064a, 0x0020, 0x0644, 0x0648,
1.2263 + 0x062d, 0x062f, 0x0647, 0x060c, 0x0020, 0x0627, 0x062d, 0x062a,
1.2264 + 0x0648, 0x0649, 0x0020, 0x0627, 0x0644, 0x0639, 0x062f, 0x064a,
1.2265 + 0x062f, 0x0020, 0x0645, 0x0646, 0x0020, 0x000d, 0x000a, 0x0020,
1.2266 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2267 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0627, 0x0644, 0x0634,
1.2268 + 0x0641, 0x0631, 0x0627, 0x062a, 0x0020, 0x0627, 0x0644, 0x0645,
1.2269 + 0x062e, 0x062a, 0x0644, 0x0641, 0x0629, 0x0020, 0x0644, 0x064a,
1.2270 + 0x063a, 0x0637, 0x064a, 0x0020, 0x062c, 0x0645, 0x064a, 0x0639,
1.2271 + 0x0020, 0x0627, 0x0644, 0x0644, 0x063a, 0x0627, 0x062a, 0x0020,
1.2272 + 0x0627, 0x0644, 0x0645, 0x0633, 0x062a, 0x062e, 0x062f, 0x0645,
1.2273 + 0x0629, 0x0020, 0x0641, 0x064a, 0x0020, 0x0627, 0x0644, 0x0627,
1.2274 + 0x062a, 0x062d, 0x0627, 0x062f, 0x002e, 0x0020, 0x0648, 0x062d,
1.2275 + 0x062a, 0x0649, 0x0020, 0x0644, 0x0648, 0x0020, 0x000d, 0x000a,
1.2276 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2277 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0627, 0x0639,
1.2278 + 0x062a, 0x0628, 0x0631, 0x0646, 0x0627, 0x0020, 0x0644, 0x063a,
1.2279 + 0x0629, 0x0020, 0x0648, 0x0627, 0x062d, 0x062f, 0x0629, 0x060c,
1.2280 + 0x0020, 0x0643, 0x0627, 0x0644, 0x0644, 0x063a, 0x0629, 0x0020,
1.2281 + 0x0627, 0x0644, 0x0625, 0x0646, 0x062c, 0x0644, 0x064a, 0x0632,
1.2282 + 0x064a, 0x0629, 0x060c, 0x0020, 0x0641, 0x0625, 0x0646, 0x0020,
1.2283 + 0x062c, 0x062f, 0x0648, 0x0644, 0x0020, 0x0634, 0x0641, 0x0631,
1.2284 + 0x0629, 0x0020, 0x0648, 0x0627, 0x062d, 0x062f, 0x0020, 0x0644,
1.2285 + 0x0645, 0x0020, 0x064a, 0x0643, 0x0641, 0x0020, 0x000d, 0x000a,
1.2286 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2287 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0644, 0x0627,
1.2288 + 0x0633, 0x062a, 0x064a, 0x0639, 0x0627, 0x0628, 0x0020, 0x062c,
1.2289 + 0x0645, 0x064a, 0x0639, 0x0020, 0x0627, 0x0644, 0x0623, 0x062d,
1.2290 + 0x0631, 0x0641, 0x0020, 0x0648, 0x0639, 0x0644, 0x0627, 0x0645,
1.2291 + 0x0627, 0x062a, 0x0020, 0x0627, 0x0644, 0x062a, 0x0631, 0x0642,
1.2292 + 0x064a, 0x0645, 0x0020, 0x0648, 0x0627, 0x0644, 0x0631, 0x0645,
1.2293 + 0x0648, 0x0632, 0x0020, 0x0627, 0x0644, 0x0641, 0x0646, 0x064a,
1.2294 + 0x0629, 0x0020, 0x0648, 0x0627, 0x0644, 0x0639, 0x0644, 0x0645,
1.2295 + 0x064a, 0x0629, 0x0020, 0x000d, 0x000a, 0x0020, 0x0020, 0x0020,
1.2296 + 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020, 0x0020,
1.2297 + 0x0020, 0x0020, 0x0020, 0x0627, 0x0644, 0x0634, 0x0627, 0x0626,
1.2298 + 0x0639, 0x0629, 0x0020, 0x0627, 0x0644, 0x0627, 0x0633, 0x062a,
1.2299 + 0x0639, 0x0645, 0x0627
1.2300 + };
1.2301 +
1.2302 +static const TInt KArab1Length = sizeof(KArab1Data)/sizeof(TUint16);
1.2303 +
1.2304 +static const TPtrC KArab1(KArab1Data, KArab1Length);
1.2305 +
1.2306 +//Test data for Arabic Illegal Linebreaking
1.2307 +
1.2308 +static const TUint16 KArabicDualJoiningLettersData[] =
1.2309 + {
1.2310 + 0x0626, 0x0628, 0x062a, 0x062b, 0x062c, 0x062e, 0x0633, 0x0634, 0x0637, 0x0638, 0x0639, 0x063a,
1.2311 + 0x0641, 0x0642, 0x0643, 0x0644, 0x0645, 0x0647, 0x0648, 0x0649, 0x064a, 0x0678, 0x0679, 0x067a,
1.2312 + 0x067b, 0x067c, 0x067d, 0x067e, 0x067f, 0x0680, 0x0681, 0x0682, 0x0683, 0x0684, 0x0685, 0x0686,
1.2313 + 0x0687, 0x069a, 0x069b, 0x069c, 0x069d, 0x069e, 0x069f, 0x06a0, 0x06a1, 0x06a2, 0x06a3, 0x06a4,
1.2314 + 0x06a5, 0x06a6, 0x06a7, 0x06a9, 0x06aa, 0x06ab, 0x06ac, 0x06ad, 0x06ae, 0x06af, 0x06b0, 0x06b1,
1.2315 + 0x06b2, 0x06b3, 0x06b4, 0x06b5, 0x06b6, 0x06b7, 0x06b8, 0x06b9, 0x06ba, 0x06bb, 0x06bc, 0x06bd,
1.2316 + 0x06be, 0x06bf, 0x06c1, 0x06cc, 0x06ce, 0x06d0, 0x06d1, 0x06fa, 0x06fb, 0x06fc
1.2317 + };
1.2318 +
1.2319 +static const TInt KArabicDualJoiningLettersLength = sizeof(KArabicDualJoiningLettersData)/sizeof(TUint16);
1.2320 +
1.2321 +static const TPtrC KArabicDualJoiningLetters(KArabicDualJoiningLettersData, KArabicDualJoiningLettersLength);
1.2322 +
1.2323 +static const TUint16 KArabicRightJoiningLettersData[] =
1.2324 + {
1.2325 + 0x0622, 0x0623, 0x0624, 0x0625, 0x0627, 0x0629, 0x062f, 0x0630, 0x0631, 0x0632, 0x0648, 0x0671,
1.2326 + 0x0672, 0x0673, 0x0675, 0x0676, 0x0677, 0x0688, 0x0689, 0x068a, 0x068b, 0x068c, 0x068d, 0x068e,
1.2327 + 0x068f, 0x0690, 0x0691, 0x0692, 0x0693, 0x0694, 0x0695, 0x0696, 0x0697, 0x0698, 0x0699, 0x06c0,
1.2328 + 0x06c2, 0x06c3, 0x06c4, 0x06c5, 0x06c6, 0x06c7, 0x06c8, 0x06c9, 0x06ca, 0x06cb, 0x06cd, 0x06cf,
1.2329 + 0x06d2, 0x06d3
1.2330 + };
1.2331 +
1.2332 +static const TInt KArabicRightJoiningLettersLength = sizeof(KArabicRightJoiningLettersData)/sizeof(TUint16);
1.2333 +
1.2334 +static const TPtrC KArabicRightJoiningLetters(KArabicRightJoiningLettersData, KArabicRightJoiningLettersLength);
1.2335 +
1.2336 +static const TUint16 KArabicNonJoiningLettersData[] =
1.2337 + {
1.2338 + 0x0640, 0x0674, 0x06D5
1.2339 + };
1.2340 +
1.2341 +static const TInt KArabicNonJoiningLettersLength = sizeof(KArabicNonJoiningLettersData)/sizeof(TUint16);
1.2342 +
1.2343 +static const TPtrC KArabicNonJoiningLetters(KArabicNonJoiningLettersData, KArabicNonJoiningLettersLength);
1.2344 +
1.2345 +static const TUint16 KAlefJoiningGroupData[] =
1.2346 + {
1.2347 + 0x0622, 0x0623, 0x0625, 0x0671, 0x0672, 0x0673, 0x0675
1.2348 + };
1.2349 +
1.2350 +static const TInt KAlefJoiningGroupLength = sizeof(KAlefJoiningGroupData)/sizeof(TUint16);
1.2351 +
1.2352 +static const TPtrC KAlefJoiningGroup(KAlefJoiningGroupData, KAlefJoiningGroupLength);
1.2353 +
1.2354 +static const TUint16 KWawJoiningGroupData[] =
1.2355 + {
1.2356 + 0x0624, 0x0648, 0x0676, 0x0677, 0x06c4, 0x06c5, 0x06c6, 0x06c7, 0x06c8, 0x06c9, 0x06ca, 0x06cb,
1.2357 + 0x06cf
1.2358 + };
1.2359 +
1.2360 +static const TInt KWawJoiningGroupLength = sizeof(KWawJoiningGroupData)/sizeof(TUint16);
1.2361 +
1.2362 +static const TPtrC KWawJoiningGroup(KWawJoiningGroupData, KWawJoiningGroupLength);
1.2363 +
1.2364 +
1.2365 +static const TUint16 KYehJoiningGroupData[] =
1.2366 + {
1.2367 + 0x0626, 0x0649, 0x064a, 0x0678, 0x06cc, 0x06ce, 0x06d0, 0x06d1
1.2368 + };
1.2369 +
1.2370 +
1.2371 +static const TInt KYehJoiningGroupLength = sizeof(KYehJoiningGroupData)/sizeof(TUint16);
1.2372 +
1.2373 +static const TPtrC KYehJoiningGroup(KYehJoiningGroupData, KYehJoiningGroupLength);
1.2374 +
1.2375 +static const TUint16 KBehJoiningGroupData[] =
1.2376 + {
1.2377 + 0x0628, 0x062a, 0x062b, 0x0679, 0x067a, 0x067b, 0x067c, 0x067d, 0x067e, 0x067f, 0x0680
1.2378 + };
1.2379 +
1.2380 +static const TInt KBehJoiningGroupLength = sizeof(KBehJoiningGroupData)/sizeof(TUint16);
1.2381 +
1.2382 +static const TPtrC KBehJoiningGroup(KBehJoiningGroupData, KBehJoiningGroupLength);
1.2383 +
1.2384 +static const TUint16 KTehMarbutaJoiningGroupData[] =
1.2385 + {
1.2386 + 0x0629, 0x06c0
1.2387 + };
1.2388 +
1.2389 +static const TInt KTehMarbutaJoiningGroupLength = sizeof(KTehMarbutaJoiningGroupData)/sizeof(TUint16);
1.2390 +
1.2391 +static const TPtrC KTehMarbutaJoiningGroup(KTehMarbutaJoiningGroupData, KTehMarbutaJoiningGroupLength);
1.2392 +
1.2393 +static const TUint16 KHahJoiningGroupData[] =
1.2394 + {
1.2395 + 0x062c, 0x062d, 0x062e, 0x0681, 0x0682, 0x0683, 0x0684, 0x0685, 0x0686, 0x0687
1.2396 + };
1.2397 +
1.2398 +static const TInt KHahJoiningGroupLength = sizeof(KHahJoiningGroupData)/sizeof(TUint16);
1.2399 +
1.2400 +static const TPtrC KHahJoiningGroup(KHahJoiningGroupData, KHahJoiningGroupLength);
1.2401 +
1.2402 +static const TUint16 KDalJoiningGroupData[] =
1.2403 + {
1.2404 + 0x062f, 0x0688, 0x0689, 0x068a, 0x068b, 0x068c, 0x068d, 0x068e, 0x068f, 0x0690
1.2405 + };
1.2406 +
1.2407 +static const TInt KDalJoiningGroupLength = sizeof(KDalJoiningGroupData)/sizeof(TUint16);
1.2408 +
1.2409 +static const TPtrC KDalJoiningGroup(KDalJoiningGroupData, KDalJoiningGroupLength);
1.2410 +
1.2411 +
1.2412 +static const TUint16 KRehJoiningGroupData[] =
1.2413 + {
1.2414 + 0x0631, 0x0632, 0x0691, 0x0692, 0x0693, 0x0694, 0x0695, 0x0696, 0x0697, 0x0698, 0x0699
1.2415 + };
1.2416 +
1.2417 +static const TInt KRehJoiningGroupLength = sizeof(KRehJoiningGroupData)/sizeof(TUint16);
1.2418 +
1.2419 +static const TPtrC KRehJoiningGroup(KRehJoiningGroupData, KRehJoiningGroupLength);
1.2420 +
1.2421 +static const TUint16 KSeenJoiningGroupData[] =
1.2422 + {
1.2423 + 0x0633, 0x0634, 0x069a, 0x069b, 0x069c, 0x06fa
1.2424 + };
1.2425 +
1.2426 +static const TInt KSeenJoiningGroupLength = sizeof(KSeenJoiningGroupData)/sizeof(TUint16);
1.2427 +
1.2428 +static const TPtrC KSeenJoiningGroup(KSeenJoiningGroupData, KSeenJoiningGroupLength);
1.2429 +
1.2430 +static const TUint16 KSadJoiningGroupData[] =
1.2431 + {
1.2432 + 0x0635, 0x0636, 0x069d, 0x069e, 0x06fb
1.2433 + };
1.2434 +
1.2435 +static const TInt KSadJoiningGroupLength = sizeof(KSadJoiningGroupData)/sizeof(TUint16);
1.2436 +
1.2437 +static const TPtrC KSadJoiningGroup(KSadJoiningGroupData, KSadJoiningGroupLength);
1.2438 +
1.2439 +static const TUint16 KTahJoiningGroupData[] =
1.2440 + {
1.2441 + 0x0637, 0x0638, 0x069f
1.2442 + };
1.2443 +
1.2444 +static const TInt KTahJoiningGroupLength = sizeof(KTahJoiningGroupData)/sizeof(TUint16);
1.2445 +
1.2446 +static const TPtrC KTahJoiningGroup(KTahJoiningGroupData, KTahJoiningGroupLength);
1.2447 +
1.2448 +static const TUint16 KAinJoiningGroupData[] =
1.2449 + {
1.2450 + 0x0639, 0x063a, 0x6a0, 0x06fc
1.2451 + };
1.2452 +
1.2453 +static const TInt KAinJoiningGroupLength = sizeof(KAinJoiningGroupData)/sizeof(TUint16);
1.2454 +
1.2455 +static const TPtrC KAinJoiningGroup(KAinJoiningGroupData, KAinJoiningGroupLength);
1.2456 +
1.2457 +static const TUint16 KFehJoiningGroupData[] =
1.2458 + {
1.2459 + 0x0641, 0x06a1, 0x06a2, 0x06a3, 0x06a4, 0x06a5, 0x06a6
1.2460 + };
1.2461 +
1.2462 +
1.2463 +static const TInt KFehJoiningGroupLength = sizeof(KFehJoiningGroupData)/sizeof(TUint16);
1.2464 +
1.2465 +static const TPtrC KFehJoiningGroup(KFehJoiningGroupData, KFehJoiningGroupLength);
1.2466 +
1.2467 +static const TUint16 KQafJoiningGroupData[] =
1.2468 + {
1.2469 + 0x0642, 0x06a7, 0x06a8
1.2470 + };
1.2471 +
1.2472 +static const TInt KQafJoiningGroupLength = sizeof(KQafJoiningGroupData)/sizeof(TUint16);
1.2473 +
1.2474 +static const TPtrC KQafJoiningGroup(KQafJoiningGroupData, KQafJoiningGroupLength);
1.2475 +
1.2476 +static const TUint16 KKafJoiningGroupData[] =
1.2477 + {
1.2478 + 0x0643, 0x06aa, 0x06ac, 0x06ad, 0x06ae
1.2479 + };
1.2480 +
1.2481 +static const TInt KKafJoiningGroupLength = sizeof(KKafJoiningGroupData)/sizeof(TUint16);
1.2482 +
1.2483 +static const TPtrC KKafJoiningGroup(KKafJoiningGroupData, KKafJoiningGroupLength);
1.2484 +
1.2485 +static const TUint16 KLamJoiningGroupData[] =
1.2486 + {
1.2487 + 0x0644, 0x06b5, 0x06b6, 0x06b7, 0x06b8
1.2488 + };
1.2489 +
1.2490 +static const TInt KLamJoiningGroupLength = sizeof(KLamJoiningGroupData)/sizeof(TUint16);
1.2491 +
1.2492 +static const TPtrC KLamJoiningGroup(KLamJoiningGroupData, KLamJoiningGroupLength);
1.2493 +
1.2494 +static const TUint16 KMeemJoiningGroupData[] =
1.2495 + {
1.2496 + 0x0645
1.2497 + };
1.2498 +
1.2499 +static const TInt KMeemJoiningGroupLength = sizeof(KMeemJoiningGroupData)/sizeof(TUint16);
1.2500 +
1.2501 +static const TPtrC KMeemJoiningGroup(KMeemJoiningGroupData, KMeemJoiningGroupLength);
1.2502 +
1.2503 +static const TUint16 KNoonJoiningGroupData[] =
1.2504 + {
1.2505 + 0x0646, 0x06b9, 0x06ba, 0x06bb, 0x06bc, 0x06bd
1.2506 + };
1.2507 +
1.2508 +static const TInt KNoonJoiningGroupLength = sizeof(KNoonJoiningGroupData)/sizeof(TUint16);
1.2509 +
1.2510 +static const TPtrC KNoonJoiningGroup(KNoonJoiningGroupData, KNoonJoiningGroupLength);
1.2511 +
1.2512 +static const TUint16 KHehJoiningGroupData[] =
1.2513 + {
1.2514 + 0x0647
1.2515 + };
1.2516 +
1.2517 +static const TInt KHehJoiningGroupLength = sizeof(KHehJoiningGroupData)/sizeof(TUint16);
1.2518 +
1.2519 +static const TPtrC KHehJoiningGroup(KHehJoiningGroupData, KHehJoiningGroupLength);
1.2520 +
1.2521 +static const TUint16 KGafJoiningGroupData[] =
1.2522 + {
1.2523 + 0x06a9, 0x06ab, 0x06af, 0x06b0, 0x06b1, 0x06b2, 0x06b3, 0x06b4
1.2524 + };
1.2525 +
1.2526 +static const TInt KGafJoiningGroupLength = sizeof(KGafJoiningGroupData)/sizeof(TUint16);
1.2527 +
1.2528 +static const TPtrC KGafJoiningGroup(KGafJoiningGroupData, KGafJoiningGroupLength);
1.2529 +
1.2530 +static const TUint16 KKnottedHehJoiningGroupData[] =
1.2531 + {
1.2532 + 0x06be
1.2533 + };
1.2534 +
1.2535 +static const TInt KKnottedHehJoiningGroupLength = sizeof(KKnottedHehJoiningGroupData)/sizeof(TUint16);
1.2536 +
1.2537 +static const TPtrC KKnottedHehJoiningGroup(KKnottedHehJoiningGroupData, KKnottedHehJoiningGroupLength);
1.2538 +
1.2539 +static const TUint16 KHehGoalJoiningGroupData[] =
1.2540 + {
1.2541 + 0x06c1
1.2542 + };
1.2543 +
1.2544 +static const TInt KHehGoalJoiningGroupLength = sizeof(KHehGoalJoiningGroupData)/sizeof(TUint16);
1.2545 +
1.2546 +static const TPtrC KHehGoalJoiningGroup(KHehGoalJoiningGroupData, KHehGoalJoiningGroupLength);
1.2547 +
1.2548 +static const TUint16 KHamzaOnHehGoalJoiningGroupData[] =
1.2549 + {
1.2550 + 0x06c2, 0x06c3
1.2551 + };
1.2552 +
1.2553 +static const TInt KHamzaOnHehGoalJoiningGroupLength = sizeof(KHamzaOnHehGoalJoiningGroupData)/sizeof(TUint16);
1.2554 +
1.2555 +static const TPtrC KHamzaOnHehGoalJoiningGroup(KHamzaOnHehGoalJoiningGroupData, KHamzaOnHehGoalJoiningGroupLength);
1.2556 +
1.2557 +static const TUint16 KYehWithTailJoiningGroupData[] =
1.2558 + {
1.2559 + 0x06cd
1.2560 + };
1.2561 +
1.2562 +static const TInt KYehWithTailJoiningGroupLength = sizeof(KYehWithTailJoiningGroupData)/sizeof(TUint16);
1.2563 +
1.2564 +static const TPtrC KYehWithTailJoiningGroup(KYehWithTailJoiningGroupData, KYehWithTailJoiningGroupLength);
1.2565 +
1.2566 +static const TUint16 KYehBarreeJoiningGroupData[] =
1.2567 + {
1.2568 + 0x06d2, 0x06d3
1.2569 + };
1.2570 +
1.2571 +static const TInt KYehBarreeJoiningGroupLength = sizeof(KYehBarreeJoiningGroupData)/sizeof(TUint16);
1.2572 +
1.2573 +static const TPtrC KYehBarreeJoiningGroup(KYehBarreeJoiningGroupData, KYehBarreeJoiningGroupLength);
1.2574 +
1.2575 +enum JoiningGroupType
1.2576 + {
1.2577 + EAlefJoiningGroup,
1.2578 + EWawJoiningGroup,
1.2579 + EYehJoiningGroup,
1.2580 + EBehJoiningGroup,
1.2581 + ETehMarbutaJoiningGroup,
1.2582 + EHahJoiningGroup,
1.2583 + EDalJoiningGroup,
1.2584 + ERehJoiningGroup,
1.2585 + ESeenJoiningGroup,
1.2586 + ESadJoiningGroup,
1.2587 + ETahJoiningGroup,
1.2588 + EAinJoiningGroup,
1.2589 + EFehJoiningGroup,
1.2590 + EQafJoiningGroup,
1.2591 + EKafJoiningGroup,
1.2592 + ELamJoiningGroup,
1.2593 + EMeemJoiningGroup,
1.2594 + ENoonJoiningGroup,
1.2595 + EHehJoiningGroup,
1.2596 + EGafJoiningGroup,
1.2597 + EKnottedHehJoiningGroup,
1.2598 + EHehGoalJoiningGroup,
1.2599 + EHamzaOnHehGoalJoiningGroup,
1.2600 + EYehWithTailJoiningGroup,
1.2601 + EYehBarreeJoiningGroup
1.2602 + };
1.2603 +
1.2604 +struct JoiningGroupListData
1.2605 + {
1.2606 + TInt iGroupType;
1.2607 + const TPtrC* iGroup;
1.2608 + };
1.2609 +
1.2610 +// Structure to hold basic shape glyph values
1.2611 +
1.2612 +struct ArabicLetterShapes
1.2613 + {
1.2614 + TUint16 iCode; //base Unicode value for character
1.2615 + TUint16 iIsolated;
1.2616 + TUint16 iFinal;
1.2617 + TUint16 iInitial;
1.2618 + TUint16 iMedial;
1.2619 + };
1.2620 +
1.2621 +static const ArabicLetterShapes KArabicShapeList[] =
1.2622 + {
1.2623 + { 0x0622, 0xfe81, 0xfe82, 0x0622, 0x0622 },
1.2624 + { 0x0623, 0xfe83, 0xfe84, 0x0623, 0x0623 },
1.2625 + { 0x0624, 0xfe85, 0xfe86, 0x0624, 0x0624 },
1.2626 + { 0x0625, 0xfe87, 0xfe88, 0x0625, 0x0625 },
1.2627 + { 0x0626, 0xfe89, 0xfe8a, 0xfe8b, 0xfe8c },
1.2628 + { 0x0627, 0xfe8d, 0xfe8e, 0x0627, 0x0627 },
1.2629 + { 0x0628, 0xfe8f, 0xfe90, 0xfe91, 0xfe92 },
1.2630 + { 0x0629, 0xfe93, 0xfe94, 0x0629, 0x0629 },
1.2631 + { 0x062a, 0xfe95, 0xfe96, 0xfe97, 0xfe98 },
1.2632 + { 0x062b, 0xfe99, 0xfe9a, 0xfe9b, 0xfe9c },
1.2633 + { 0x062c, 0xfe9d, 0xfe9e, 0xfe9f, 0xfea0 },
1.2634 + { 0x062d, 0xfea1, 0xfea2, 0xfea3, 0xfea4 },
1.2635 + { 0x062e, 0xfea5, 0xfea6, 0xfea7, 0xfea8 },
1.2636 + { 0x062f, 0xfea9, 0xfeaa, 0x062f, 0x062f },
1.2637 + { 0x0630, 0xfeab, 0xfeac, 0x0630, 0x0630 },
1.2638 + { 0x0631, 0xfead, 0xfeae, 0x0631, 0x0631 },
1.2639 + { 0x0632, 0xfeaf, 0xfeb0, 0x0632, 0x0632 },
1.2640 + { 0x0633, 0xfeb1, 0xfeb2, 0xfeb3, 0xfeb4 },
1.2641 + { 0x0634, 0xfeb5, 0xfeb6, 0xfeb7, 0xfeb8 },
1.2642 + { 0x0635, 0xfeb9, 0xfeba, 0xfebb, 0xfebc },
1.2643 + { 0x0636, 0xfebd, 0xfebe, 0xfebf, 0xfec0 },
1.2644 + { 0x0637, 0xfec1, 0xfec2, 0xfec3, 0xfec4 },
1.2645 + { 0x0638, 0xfec5, 0xfec6, 0xfec7, 0xfec8 },
1.2646 + { 0x0639, 0xfec9, 0xfeca, 0xfecb, 0xfecc },
1.2647 + { 0x063a, 0xfecd, 0xfece, 0xfecf, 0xfed0 },
1.2648 + { 0x0641, 0xfed1, 0xfed2, 0xfed3, 0xfed4 },
1.2649 + { 0x0642, 0xfed5, 0xfed6, 0xfed7, 0xfed8 },
1.2650 + { 0x0643, 0xfed9, 0xfeda, 0xfedb, 0xfedc },
1.2651 + { 0x0644, 0xfedd, 0xfede, 0xfedf, 0xfee0 },
1.2652 + { 0x0645, 0xfee1, 0xfee2, 0xfee3, 0xfee4 },
1.2653 + { 0x0646, 0xfee5, 0xfee6, 0xfee7, 0xfee8 },
1.2654 + { 0x0647, 0xfee9, 0xfeea, 0xfeeb, 0xfeec },
1.2655 + { 0x0648, 0xfeed, 0xfeee, 0x0648, 0x0648 },
1.2656 + { 0x0649, 0xfeef, 0xfef0, 0xfbe8, 0xfbe9 },
1.2657 + { 0x064a, 0xfef1, 0xfef2, 0xfef3, 0xfef4 },
1.2658 + { 0x0671, 0xfb50, 0xfb51, 0x0671, 0x0671 },
1.2659 + { 0x0677, 0xfbdd, 0x0677, 0x0677, 0x0677 },
1.2660 + { 0x0679, 0xfb66, 0xfb67, 0xfb68, 0xfb69 },
1.2661 + { 0x067a, 0xfb5e, 0xfb5f, 0xfb60, 0xfb61 },
1.2662 + { 0x067b, 0xfb52, 0xfb53, 0xfb54, 0xfb55 },
1.2663 + { 0x067e, 0xfb56, 0xfb57, 0xfb58, 0xfb59 },
1.2664 + { 0x067f, 0xfb62, 0xfb63, 0xfb64, 0xfb65 },
1.2665 + { 0x0680, 0xfb5a, 0xfb5b, 0xfb5c, 0xfb5d },
1.2666 + { 0x0683, 0xfb76, 0xfb77, 0xfb78, 0xfb79 },
1.2667 + { 0x0684, 0xfb72, 0xfb73, 0xfb74, 0xfb75 },
1.2668 + { 0x0686, 0xfb7a, 0xfb7b, 0xfb7c, 0xfb7d },
1.2669 + { 0x0687, 0xfb7e, 0xfb7f, 0xfb80, 0xfb81 },
1.2670 + { 0x0688, 0xfb88, 0xfb89, 0x0688, 0x0688 },
1.2671 + { 0x068c, 0xfb84, 0xfb85, 0x068c, 0x068c },
1.2672 + { 0x068d, 0xfb82, 0xfb83, 0x068d, 0x068d },
1.2673 + { 0x068e, 0xfb86, 0xfb87, 0x068e, 0x068e },
1.2674 + { 0x0691, 0xfb8c, 0xfb8d, 0x0691, 0x0691 },
1.2675 + { 0x0698, 0xfb8a, 0xfb8b, 0x0698, 0x0698 },
1.2676 + { 0x06a4, 0xfb6a, 0xfb6b, 0xfb6c, 0xfb6d },
1.2677 + { 0x06a6, 0xfb6e, 0xfb6f, 0xfb70, 0xfb71 },
1.2678 + { 0x06a9, 0xfb8e, 0xfb8f, 0xfb90, 0xfb91 },
1.2679 + { 0x06ad, 0xfbd3, 0xfbd4, 0xfbd5, 0xfbd6 },
1.2680 + { 0x06af, 0xfb92, 0xfb93, 0xfb94, 0xfb95 },
1.2681 + { 0x06b1, 0xfb9a, 0xfb9b, 0xfb9c, 0xfb9d },
1.2682 + { 0x06b3, 0xfb96, 0xfb97, 0xfb98, 0xfb99 },
1.2683 + { 0x06ba, 0xfb9e, 0xfb9f, 0x06ba, 0x06ba },
1.2684 + { 0x06bb, 0xfba0, 0xfba1, 0xfba2, 0xfba3 },
1.2685 + { 0x06be, 0xfbaa, 0xfbab, 0xfbac, 0xfbad },
1.2686 + { 0x06c0, 0xfba4, 0xfba5, 0x06c0, 0x06c0 },
1.2687 + { 0x06c1, 0xfba6, 0xfba7, 0xfba8, 0xfba9 },
1.2688 + { 0x06c5, 0xfbe0, 0xfbe1, 0x06c5, 0x06c5 },
1.2689 + { 0x06c6, 0xfbd9, 0xfbda, 0x06c6, 0x06c6 },
1.2690 + { 0x06c7, 0xfbd7, 0xfbd8, 0x06c7, 0x06c7 },
1.2691 + { 0x06c8, 0xfbdb, 0xfbdc, 0x06c8, 0x06c8 },
1.2692 + { 0x06c9, 0xfbe2, 0xfbe3, 0x06c9, 0x06c9 },
1.2693 + { 0x06cb, 0xfbde, 0xfbdf, 0x06cb, 0x06cb },
1.2694 + { 0x06cc, 0xfbfc, 0xfbfd, 0xfbfe, 0xfbff },
1.2695 + { 0x06d0, 0xfbe4, 0xfbe5, 0xfbe6, 0xfbe7 },
1.2696 + { 0x06d2, 0xfbae, 0xfbaf, 0x06d2, 0x06d2 },
1.2697 + { 0x06d3, 0xfbb0, 0xfbb1, 0x06d3, 0x06d3 }
1.2698 + };
1.2699 +
1.2700 +static const TInt KArabicShapeListLength = sizeof(KArabicShapeList) / sizeof (ArabicLetterShapes);
1.2701 +
1.2702 +LOCAL_C TInt GetArabicShapeDataIndex(const TUint16 aCode )
1.2703 + {
1.2704 + for (TInt i = 0 ; i < KArabicShapeListLength ; ++i)
1.2705 + {
1.2706 + if (aCode == KArabicShapeList[i].iCode)
1.2707 + {
1.2708 + return i;
1.2709 + }
1.2710 + }
1.2711 + return -1;//not found
1.2712 + }
1.2713 +
1.2714 +#ifdef USE_ISOLATED
1.2715 +LOCAL_C TUint16 GetIsolatedForm(const TUint16 aCode)
1.2716 + {
1.2717 + TInt index = GetArabicShapeDataIndex(aCode);
1.2718 + return (index >= 0) ? KArabicShapeList[index].iIsolated : aCode;
1.2719 + }
1.2720 +#endif /* USE_ISOLATED */
1.2721 +
1.2722 +LOCAL_C TUint16 GetFinalForm(const TUint16 aCode)
1.2723 + {
1.2724 + TInt index = GetArabicShapeDataIndex(aCode);
1.2725 + return (index >= 0) ? KArabicShapeList[index].iFinal : aCode;
1.2726 + }
1.2727 +
1.2728 +LOCAL_C TUint16 GetInitialForm(const TUint16 aCode)
1.2729 + {
1.2730 + TInt index = GetArabicShapeDataIndex(aCode);
1.2731 + return (index >= 0) ? KArabicShapeList[index].iInitial : aCode;
1.2732 + }
1.2733 +
1.2734 +LOCAL_C TUint16 GetMedialForm(const TUint16 aCode)
1.2735 + {
1.2736 + TInt index = GetArabicShapeDataIndex(aCode);
1.2737 + return (index >= 0) ? KArabicShapeList[index].iMedial : aCode;
1.2738 + }
1.2739 +
1.2740 +// Utility functions to show contents of test data using aTest->INFO_PRINTF1
1.2741 +
1.2742 +_LIT(KAddressMarker, "> ");
1.2743 +_LIT(KSpace, " ");
1.2744 +_LIT(KLength, ", Length of Data = %d 16-bit words\r\n");
1.2745 +_LIT(KSpaces, " ");
1.2746 +_LIT(KPeriod, ".");
1.2747 +_LIT(KSingleString, "%s\r\n");
1.2748 +_LIT(KDoubleString, "%s <%s>\r\n");
1.2749 +
1.2750 +
1.2751 +
1.2752 +class MOOMTest
1.2753 + {
1.2754 +public:
1.2755 + virtual TInt ConsecutivePassesRequired() const { return 1; }
1.2756 + virtual void SetUpL() = 0;
1.2757 + virtual void ManipulateL() = 0;
1.2758 + virtual void TestLeftCleanlyL(CTGraphicsBase* /*aTest*/) {};
1.2759 + virtual void TestIfPassedL(CTGraphicsBase* /*aTest*/) {};
1.2760 + virtual void TearDown() = 0;
1.2761 + };
1.2762 +
1.2763 +// Test the internals of the algorithm for Unicode compliance.
1.2764 +class TBdLevelTest
1.2765 + {
1.2766 +public:
1.2767 + TChar::TBdCategory iCat;
1.2768 + TInt iLevel; // or -1 for "no test"
1.2769 + TChar::TBdCategory iChangedCat;
1.2770 + };
1.2771 +
1.2772 +class CTBiDi : public CTGraphicsBase
1.2773 + {
1.2774 +public:
1.2775 + CTBiDi(CTestStep* aStep);
1.2776 +
1.2777 + void DoTestTextDrawPanic();
1.2778 + TInt DoTestPanicSetTextL();
1.2779 + TInt DoTestPanicMinimumSizeLineGap();
1.2780 + TInt DoTestPanicMinimumSizeMaxLines();
1.2781 + TInt DoTestPanicMinimumSizeWidth();
1.2782 + TInt DoTestPanicMinimumNumberOfLinesL();
1.2783 + static void FillRunArray(const TBdLevelTest* aTests, TBidirectionalState::TRunInfo* aRuns, TInt aArraySize, TBidirectionalState::TReorderContext& aContext);
1.2784 + static void SetContext(TBidirectionalState::TReorderContext& aContext, TChar::TBdCategory aCat);
1.2785 +protected:
1.2786 +//from CTGraphicsStep
1.2787 + virtual void RunTestCaseL(TInt aCurTestCase);
1.2788 +private:
1.2789 + void PrintTestData (const TDesC& aTitle , const TDesC16& aData);
1.2790 + void PrintTestData(const TDesC& aTitle, const TText16* aDataBuffer, const TInt aSize);
1.2791 + void TestReorderTextL();
1.2792 + void TestOOML(MOOMTest& aOOMTest);
1.2793 + void PrintRunCategories(const TBidirectionalState::TRunInfo* aRunArray, const TInt aRuns, const TText* aText, const TBool aInternal);
1.2794 + void PrintRunArray(const TBidirectionalState::TRunInfo* aRunArray, const TInt aRuns, const TText* aText);
1.2795 + void DoTestRRunInfoArrayInternalsL();
1.2796 + void DoTestTBidiTextNewL();
1.2797 + void DoTestTBidiTextSetTextL();
1.2798 + void DoTestTBidiTextMinimumSizeL();
1.2799 + void DoTestTBidiTextMinimumSizePanics();
1.2800 + void TestCrApos69qd7nL();
1.2801 + void TUnicodeExampleTestL();
1.2802 + void NoLineBreakDrawTestL();
1.2803 + void RightToLeftArabicDrawTestL();
1.2804 + void TRunInfoCompactReorderTest();
1.2805 + void TBidiLogicalToVisualGetVisualLineTest();
1.2806 + void TestScriptDirectionality();
1.2807 + void LeftToRightDrawTestL();
1.2808 + TBool GlyphTestL(const TDesC16& aTitle, const TDesC16& aOriginal, const TDesC16& aDesired, const TInt aWrapWidth);
1.2809 + void LigatureTestsL();
1.2810 + void ArabicIllegalLinebreakTestsL();
1.2811 + TInt TestPanic(TThreadFunction aFunction);
1.2812 + void DEF043323L();
1.2813 + void DEF052191L();
1.2814 + void TestBidiTextClassL();
1.2815 + void TestBidiLogicalToVisualClassL();
1.2816 + void TestCatToNumber(TInt aIn, TInt aOut);
1.2817 + void CheckRunResults(const TBdLevelTest* aTests, TBidirectionalState::TRunInfo* aRuns,
1.2818 + TInt aArraySize);
1.2819 + void TestTBidirectionalStateInternalsL();
1.2820 + void DoXTests(TBidirectionalState& aState,
1.2821 + TBidirectionalState::TReorderContext& aContext,
1.2822 + TBidirectionalState::TRunInfo* aRuns);
1.2823 + void DoKW123TestsLeft(TBidirectionalState& aState,
1.2824 + TBidirectionalState::TReorderContext& aContext,
1.2825 + TBidirectionalState::TRunInfo* aRuns) ;
1.2826 + void DoKW123TestsRight(TBidirectionalState& aState,
1.2827 + TBidirectionalState::TReorderContext& aContext,
1.2828 + TBidirectionalState::TRunInfo* aRuns);
1.2829 + void DoKW456Tests(TBidirectionalState& aState,
1.2830 + TBidirectionalState::TReorderContext& aContext,
1.2831 + TBidirectionalState::TRunInfo* aRuns);
1.2832 + void DoKW7TestsLeft(TBidirectionalState& aState,
1.2833 + TBidirectionalState::TReorderContext& aContext,
1.2834 + TBidirectionalState::TRunInfo* aRuns);
1.2835 + void DoKW7TestsRight(TBidirectionalState& aState,
1.2836 + TBidirectionalState::TReorderContext& aContext,
1.2837 + TBidirectionalState::TRunInfo* aRuns) ;
1.2838 + void DoKN12TestsLeft(TBidirectionalState& aState,
1.2839 + TBidirectionalState::TReorderContext& aContext,
1.2840 + TBidirectionalState::TRunInfo* aRuns) ;
1.2841 + void DoKN12TestsRight(TBidirectionalState& aState,
1.2842 + TBidirectionalState::TReorderContext& aContext,
1.2843 + TBidirectionalState::TRunInfo* aRuns) ;
1.2844 + void DoKN12TestsRRL(TBidirectionalState& aState,
1.2845 + TBidirectionalState::TReorderContext& aContext,
1.2846 + TBidirectionalState::TRunInfo* aRuns) ;
1.2847 + void DoKN12TestsLRR(TBidirectionalState& aState,
1.2848 + TBidirectionalState::TReorderContext& aContext,
1.2849 + TBidirectionalState::TRunInfo* aRuns) ;
1.2850 + void DoKN12TestsLRP(TBidirectionalState& aState,
1.2851 + TBidirectionalState::TReorderContext& aContext,
1.2852 + TBidirectionalState::TRunInfo* aRuns) ;
1.2853 + void DoKN12TestsRLP(TBidirectionalState& aState,
1.2854 + TBidirectionalState::TReorderContext& aContext,
1.2855 + TBidirectionalState::TRunInfo* aRuns) ;
1.2856 + void DoCarryOverTest1(TBidirectionalState& aState,
1.2857 + TBidirectionalState::TReorderContext& aContext,
1.2858 + TBidirectionalState::TRunInfo* aRuns);
1.2859 + void INC086135TestL();
1.2860 +
1.2861 + TInt iTestThreadCounter;
1.2862 + };
1.2863 +
1.2864 +void CTBiDi::PrintTestData (const TDesC& aTitle , const TDesC16& aData)
1.2865 + {
1.2866 + TInt i;
1.2867 + TInt j;
1.2868 + TInt end;
1.2869 +
1.2870 + TInt length = aData.Length();
1.2871 +
1.2872 + TBuf<80> buffer;
1.2873 +
1.2874 + buffer.Zero();
1.2875 + buffer.Append(aTitle);
1.2876 + buffer.Append(KLength);
1.2877 +
1.2878 + INFO_PRINTF2(buffer, length);
1.2879 +
1.2880 + for (i = 0 ; i < length ; i += 8)
1.2881 + {
1.2882 + buffer.Zero();
1.2883 + buffer.AppendNumFixedWidth(i, EHex, 8);
1.2884 + buffer += KAddressMarker;
1.2885 +
1.2886 + end = ((length-i) >= 8) ? i+8 : length;
1.2887 +
1.2888 + for (j = i ; j < end ; ++j)
1.2889 + {
1.2890 + buffer.AppendNumFixedWidth(aData[j], EHex, 4);
1.2891 + buffer += KSpace;
1.2892 + }
1.2893 + buffer += TPtrC(KSpaces().Ptr(), ((8-(j-i))*5)+4);
1.2894 +
1.2895 + for (j = i ; j < end ; ++j)
1.2896 + {
1.2897 + if (aData[j] >= 32)
1.2898 + {
1.2899 + buffer.Append(aData[j]);
1.2900 + }
1.2901 + else
1.2902 + {
1.2903 + buffer += KPeriod;
1.2904 + }
1.2905 + }
1.2906 + buffer.ZeroTerminate();
1.2907 + INFO_PRINTF2(KSingleString, buffer.Ptr());
1.2908 + }
1.2909 +
1.2910 + }
1.2911 +
1.2912 +void CTBiDi::PrintTestData(const TDesC& aTitle, const TText16* aDataBuffer, const TInt aSize)
1.2913 + {
1.2914 + PrintTestData(aTitle, TPtrC16(aDataBuffer, aSize));
1.2915 + }
1.2916 +
1.2917 +_LIT(KArabicFontName, ""); //any name will do
1.2918 +
1.2919 +//This replicates the definition in TBidirectionalState
1.2920 +//because TCategory is declared as private there
1.2921 +enum TCategory
1.2922 + {
1.2923 + ELeftToRight = 1 << TChar::ELeftToRight,
1.2924 + ELeftToRightEmbedding = 1 << TChar::ELeftToRightEmbedding,
1.2925 + ELeftToRightOverride = 1 << TChar::ELeftToRightOverride,
1.2926 + ERightToLeft = 1 << TChar::ERightToLeft,
1.2927 + ERightToLeftArabic = 1 << TChar::ERightToLeftArabic,
1.2928 + ERightToLeftEmbedding = 1 << TChar::ERightToLeftEmbedding,
1.2929 + ERightToLeftOverride = 1 << TChar::ERightToLeftOverride,
1.2930 + EPopDirectionalFormat = 1 << TChar::EPopDirectionalFormat,
1.2931 + EEuropeanNumber = 1 << TChar::EEuropeanNumber,
1.2932 + EEuropeanNumberSeparator = 1 << TChar::EEuropeanNumberSeparator,
1.2933 + EEuropeanNumberTerminator = 1 << TChar::EEuropeanNumberTerminator,
1.2934 + EArabicNumber = 1 << TChar::EArabicNumber,
1.2935 + ECommonNumberSeparator = 1 << TChar::ECommonNumberSeparator,
1.2936 + ENonSpacingMark = 1 << TChar::ENonSpacingMark,
1.2937 + EBoundaryNeutral = 1 << TChar::EBoundaryNeutral,
1.2938 + EParagraphSeparator = 1 << TChar::EParagraphSeparator,
1.2939 + ESegmentSeparator = 1 << TChar::ESegmentSeparator,
1.2940 + EWhitespace = 1 << TChar::EWhitespace,
1.2941 + EOtherNeutral = 1 << TChar::EOtherNeutral,
1.2942 +
1.2943 + // categories used internally by the bidirectional algorithm
1.2944 + EStartOfParagraph = 1 << (TChar::EOtherNeutral + 1),
1.2945 + EEndOfParagraph = 1 << (TChar::EOtherNeutral + 2),
1.2946 +
1.2947 + // useful groups
1.2948 + EBdControlsGroup = ELeftToRightEmbedding | ERightToLeftEmbedding |
1.2949 + ELeftToRightOverride | ERightToLeftOverride | EPopDirectionalFormat,
1.2950 + ELeftToRightGroup = ELeftToRight | EEuropeanNumber | ELeftToRightOverride | ELeftToRightEmbedding,
1.2951 + ERightToLeftGroup = ERightToLeft | EArabicNumber | ERightToLeftArabic | ERightToLeftOverride |
1.2952 + ERightToLeftEmbedding,
1.2953 + };
1.2954 +
1.2955 +// Helper function
1.2956 +void AppendCharacter(HBufC *aDes, TUint aChar)
1.2957 + {
1.2958 + if (IsSupplementary(aChar))
1.2959 + {
1.2960 + TText16 high = GetHighSurrogate(aChar);
1.2961 + TText16 low = GetLowSurrogate(aChar);
1.2962 + aDes->Des().Append(high);
1.2963 + aDes->Des().Append(low);
1.2964 + }
1.2965 + else
1.2966 + {
1.2967 + aDes->Des().Append(aChar);
1.2968 + }
1.2969 + }
1.2970 +
1.2971 +void AppendCharacter(TBuf<24> *aDes, TUint aChar)
1.2972 + {
1.2973 + if (IsSupplementary(aChar))
1.2974 + {
1.2975 + TText16 high = GetHighSurrogate(aChar);
1.2976 + TText16 low = GetLowSurrogate(aChar);
1.2977 + aDes->Append(high);
1.2978 + aDes->Append(low);
1.2979 + }
1.2980 + else
1.2981 + {
1.2982 + aDes->Append(aChar);
1.2983 + }
1.2984 + }
1.2985 +
1.2986 +//Class to store the start and end of a run of characters
1.2987 +class TTestDataRun
1.2988 + {
1.2989 +public:
1.2990 + TInt iStart;
1.2991 + TInt iLength;
1.2992 + };
1.2993 +
1.2994 +
1.2995 +class TestTBidirectionalState
1.2996 + {
1.2997 +public:
1.2998 + enum
1.2999 + {
1.3000 + EParaLToR = EFalse,
1.3001 + EParaRToL = ETrue
1.3002 + };
1.3003 +
1.3004 +/**
1.3005 + *
1.3006 + * Checks that two blocks of 16-bit text contain the same characters in the same order
1.3007 + * NOT a collating function!.
1.3008 + *
1.3009 + *
1.3010 + * @param "const TText* aOldText"
1.3011 + * Pointer to block of text
1.3012 + * @param "const TText* aNewText"
1.3013 + * Pointer to block of text.
1.3014 + * This may point to the same buffer as oldText.
1.3015 + * @param "const TUint aSize"
1.3016 + * Unsigned integer representing size of text blocks.
1.3017 + *
1.3018 + * @return ETrue: test succeeded EFalse: test failed.
1.3019 + *
1.3020 + */
1.3021 + static TBool TextInSameOrder (const TText* aOldText , const TText* aNewText, const TUint aSize)
1.3022 + {
1.3023 +
1.3024 + __ASSERT_ALWAYS(aOldText, User::Invariant());
1.3025 + __ASSERT_ALWAYS(aNewText, User::Invariant());
1.3026 + __ASSERT_ALWAYS(0 < aSize, User::Invariant());
1.3027 +
1.3028 + if (aOldText == aNewText)
1.3029 + {
1.3030 + //By definition, if both point to the same buffer, it's identical!
1.3031 + return ETrue;
1.3032 + }
1.3033 +
1.3034 + for (TUint i = 0 ; i < aSize ; ++i)
1.3035 + {
1.3036 + if (aOldText[i] != aNewText[i])
1.3037 + {
1.3038 + return EFalse;
1.3039 + }
1.3040 + }
1.3041 +
1.3042 + return ETrue;
1.3043 + }
1.3044 +
1.3045 +/**
1.3046 + *
1.3047 + * Checks that two blocks of 16-bit text contain the same characters but in reverse order
1.3048 + * NOT a collating function.
1.3049 + *
1.3050 + *
1.3051 + * @param "const TText* aOldText"
1.3052 + * Pointer to block of text
1.3053 + * @param "const TText* aNewText"
1.3054 + * Pointer to block of text.
1.3055 + * This may point to the same buffer as oldText.
1.3056 + * @param "const TUint aSize"
1.3057 + * The size of the text blocks.
1.3058 + *
1.3059 + * @return ETrue: test succeeded EFalse: test failed.
1.3060 + *
1.3061 + */
1.3062 + static TBool TextInReverseOrder (const TText* aOldText , const TText* aNewText, const TUint aSize, CTGraphicsBase* aTest=NULL)
1.3063 + {
1.3064 + __ASSERT_ALWAYS(aOldText, User::Invariant());
1.3065 + __ASSERT_ALWAYS(aNewText, User::Invariant());
1.3066 + __ASSERT_ALWAYS(0 < aSize, User::Invariant());
1.3067 +
1.3068 + TUint i = 0; // index into aOldText
1.3069 + TUint j = aSize - 1; // index into aNewText
1.3070 + while (i < aSize)
1.3071 + {
1.3072 + if (IsHighSurrogate(aOldText[i]))
1.3073 + {
1.3074 + if (aOldText[i] != aNewText[j-1] || aOldText[i+1] != aNewText[j])
1.3075 + {
1.3076 + if (aTest)
1.3077 + {
1.3078 + _LIT(KMismatchFormat, "TextInReverseOrder report mismatch: aOldText[%d]=%04X != aNewText[%d]=%04X || aOldText[%d]=%04X != aNewText[%d]=%04X\r\n");
1.3079 + aTest->Logger().LogExtra(((TText8*)__FILE__), __LINE__, ESevrWarn, KMismatchFormat,
1.3080 + i, aOldText[i], j-1, aNewText[j-1], i+1, aOldText[i+1], j, aNewText[j]);
1.3081 + }
1.3082 + return EFalse;
1.3083 + }
1.3084 + i += 2;
1.3085 + j -= 2;
1.3086 + }
1.3087 + else
1.3088 + {
1.3089 + if (aOldText[i] != aNewText[j])
1.3090 + {
1.3091 + if (aTest)
1.3092 + {
1.3093 + _LIT(KMismatchFormat, "TextInReverseOrder report mismatch: aOldText[%d]=%04X != aNewText[%d]=%04X\r\n");
1.3094 + aTest->INFO_PRINTF5(KMismatchFormat, i, aOldText[i], j, aNewText[j]);
1.3095 + }
1.3096 + return EFalse;
1.3097 + }
1.3098 + i++;
1.3099 + j--;
1.3100 + }
1.3101 + }
1.3102 +
1.3103 + return ETrue;
1.3104 + }
1.3105 +
1.3106 +/**
1.3107 + *
1.3108 + * Checks that two blocks of 16-bit text contain the same characters but in
1.3109 + * reverse order, skipping any zero-width joiners in aNewText.
1.3110 + *
1.3111 + * @param "const TText* aOldText"
1.3112 + * Pointer to block of text
1.3113 + * @param "const TText* aNewText"
1.3114 + * Pointer to block of text.
1.3115 + * This may point to the same buffer as oldText.
1.3116 + * @param "const TUint aSize"
1.3117 + * The size of aOldText.
1.3118 + *
1.3119 + * @return
1.3120 + * 0 if the text did not match, or a pointer one past the end of aNewText's
1.3121 + * match if it did.
1.3122 + *
1.3123 + */
1.3124 + static const TText* TextInReverseOrderIgnoringJoiners(
1.3125 + const TText* aOldText , const TText* aNewText, const TUint aSize)
1.3126 + {
1.3127 + __ASSERT_ALWAYS(aOldText, User::Invariant());
1.3128 + __ASSERT_ALWAYS(aNewText, User::Invariant());
1.3129 + __ASSERT_ALWAYS(0 < aSize, User::Invariant());
1.3130 +
1.3131 + const TText* newText = aNewText;
1.3132 + for (const TText* old = aOldText + aSize - 1;
1.3133 + aOldText <= old;
1.3134 + --old, ++newText)
1.3135 + {
1.3136 + while (*newText == KUnicodeZeroWidthJoiner)
1.3137 + ++newText;
1.3138 + if (*newText != *old)
1.3139 + return 0;
1.3140 + }
1.3141 +
1.3142 + while (*newText == KUnicodeZeroWidthJoiner)
1.3143 + ++newText;
1.3144 + return newText;
1.3145 + }
1.3146 +
1.3147 +/**
1.3148 + *
1.3149 + * Compares two pointers.
1.3150 + * If the second pointer does not point to the same place as the first, the
1.3151 + * block of memory it points to is deleted as an array.
1.3152 + *
1.3153 + *
1.3154 + * @param "const TText* aOldText"
1.3155 + * Pointer to block of text
1.3156 + * @param "TText*& aNewText"
1.3157 + * Pointer to block of text.
1.3158 + * This may point to the same buffer as aOldText.
1.3159 + * @param "CTGraphicsBase* aTest"
1.3160 + * Pointer to the test object
1.3161 + */
1.3162 +
1.3163 + static void DeleteText( const TText* aOldText, TText*& aNewText, CTGraphicsBase* aTest)
1.3164 + {
1.3165 + if (aNewText != aOldText)
1.3166 + {
1.3167 + TInt diff;
1.3168 + if (aNewText > aOldText)
1.3169 + {
1.3170 + diff = aNewText-aOldText;
1.3171 + }
1.3172 + else
1.3173 + {
1.3174 + diff = aOldText-aNewText;
1.3175 + }
1.3176 + if (diff < KBufferSize)
1.3177 + {
1.3178 + aTest->INFO_PRINTF2(_L("Bad free detected - diff %d\r\n"), diff);
1.3179 + aTest->TEST(EFalse);
1.3180 + }
1.3181 +
1.3182 + delete[] aNewText;
1.3183 + aNewText = 0;
1.3184 + }
1.3185 + }
1.3186 +/**
1.3187 + *
1.3188 + * Test Internalization and Externalization of TBidirectionalState class.
1.3189 + *
1.3190 + *
1.3191 + * @param "TBidirectionalState& aState"
1.3192 + * Reference to a TBidirectionalState object.
1.3193 + * The state object is assumed not to be newly created, i.e. it has
1.3194 + * non-default internal state.
1.3195 + *
1.3196 + * @param "TBidirectionalState& aState2"
1.3197 + * Reference to a TBidirectionalState object.
1.3198 + * The state object is assumed not to be newly created, i.e. it has
1.3199 + * non-default internal state. This state is also assumed to be
1.3200 + * different to that of aState
1.3201 + *
1.3202 + * @param "CTGraphicsBase* aTest"
1.3203 + * Pointer to the test object
1.3204 + */
1.3205 + static void TestInternalizeL(TBidirectionalState& aState, TBidirectionalState& aState2, CTGraphicsBase* aTest)
1.3206 + {
1.3207 + //Now test internalization and externalization functions
1.3208 +
1.3209 + //Create memory-based streams to externalize into
1.3210 +
1.3211 + CBufStore* rStore = CBufStore::NewLC(KBufferSize);
1.3212 + CBufStore* lStore = CBufStore::NewLC(KBufferSize);
1.3213 +
1.3214 + RStoreWriteStream lWStream;
1.3215 + RStoreWriteStream rWStream;
1.3216 +
1.3217 + TStreamId lStreamID = lWStream.CreateLC(*lStore);
1.3218 + TStreamId rStreamID = rWStream.CreateLC(*rStore);
1.3219 +
1.3220 + //Now externalize the states.
1.3221 +
1.3222 + aState.ExternalizeL(lWStream);
1.3223 + aState2.ExternalizeL(rWStream);
1.3224 +
1.3225 + lWStream.Close();
1.3226 + rWStream.Close();
1.3227 +
1.3228 + //Now read the externalised streams into two new state objects
1.3229 +
1.3230 + TBidirectionalState newLState;
1.3231 + TBidirectionalState newRState;
1.3232 +
1.3233 + RStoreReadStream rRStream;
1.3234 + RStoreReadStream lRStream;
1.3235 +
1.3236 + lRStream.OpenLC(*lStore, lStreamID);
1.3237 + rRStream.OpenLC(*rStore, rStreamID);
1.3238 +
1.3239 + newLState.InternalizeL(lRStream);
1.3240 + newRState.InternalizeL(rRStream);
1.3241 +
1.3242 + //Now establish that the internalization has changed the state
1.3243 +
1.3244 + aTest->TEST(!newLState.IsDefault());
1.3245 + aTest->TEST(!newRState.IsDefault());
1.3246 +
1.3247 + //Make sure that two distinct sets of data exist
1.3248 +
1.3249 + aTest->TEST(!(newLState == newRState));
1.3250 +
1.3251 + //check that the new state objects are equivalent to the old ones
1.3252 +
1.3253 + aTest->TEST(newLState == aState);
1.3254 + aTest->TEST(newRState == aState2);
1.3255 +
1.3256 + //Now check that the externalization / internalization has
1.3257 + //produced true copies, i.e. that there are no shared buffers
1.3258 + //anywhere
1.3259 +
1.3260 + aState.Reset();
1.3261 + aTest->TEST (aState.IsDefault());
1.3262 + aTest->TEST (!(aState2 == aState));
1.3263 + aTest->TEST (!(aState == aState2));
1.3264 + aTest->TEST (!(aState == newLState));
1.3265 + aTest->TEST(!newLState.IsDefault());
1.3266 + aTest->TEST(!newRState.IsDefault());
1.3267 +
1.3268 + aState2.Reset();
1.3269 + aTest->TEST (aState2.IsDefault());
1.3270 + aTest->TEST (aState == aState2);
1.3271 + aTest->TEST (aState2 == aState);
1.3272 + aTest->TEST (!(aState2 == newRState));
1.3273 + aTest->TEST(!newLState.IsDefault());
1.3274 + aTest->TEST(!newRState.IsDefault());
1.3275 +
1.3276 + //End of tests - deal with cleanup stack
1.3277 +
1.3278 + CleanupStack::PopAndDestroy(6);
1.3279 + }
1.3280 +
1.3281 +/**
1.3282 + *
1.3283 + * Test API of TBidirectionalState class.
1.3284 + *
1.3285 + * with the exception of BidirectionalState::ReorderText
1.3286 + *
1.3287 + * @param "CTGraphicsBase* aTest"
1.3288 + * Pointer to the test object
1.3289 + *
1.3290 + */
1.3291 + static void TestAPIL(CTGraphicsBase* aTest)
1.3292 + {
1.3293 + TInt run;
1.3294 + TInt i;
1.3295 +
1.3296 + //General tests for the DLL API to TBidirectionalState
1.3297 +
1.3298 + aTest->INFO_PRINTF1(_L("TBidirectionalState general exported API test\r\n"));
1.3299 +
1.3300 +#ifdef PRINT_RUNS
1.3301 + _LIT(KRunTitle, "Populating aOldText buffer with embedded runs of characters as follows:\r\n");
1.3302 + _LIT(KRunFormat, "Run %d begins with %04x\r\n");
1.3303 + _LIT(KEndRunFormat, "End of Run %d begins with %04x\r\n");
1.3304 +
1.3305 +#endif // PRINT_RUNS
1.3306 +
1.3307 + const TInt KRuns = 64;
1.3308 + const TInt KRunSize = ((KBufferSize/KRuns)/2 );
1.3309 +
1.3310 + //Create buffer to hold test data
1.3311 +
1.3312 + HBufC* oldTextBufPtr = HBufC::NewLC(KBufferSize);
1.3313 +
1.3314 + for (i = 0 ; i < KBufferSize ; ++i)
1.3315 + {
1.3316 + oldTextBufPtr->Des().Append(0);
1.3317 + }
1.3318 +
1.3319 + TPtr oldText(oldTextBufPtr->Des());
1.3320 +
1.3321 +
1.3322 + TBidirectionalState::TRunInfo* lRunInfoArray = new(ELeave) TBidirectionalState::TRunInfo[KRuns];
1.3323 + CleanupArrayDeletePushL(lRunInfoArray);
1.3324 + TBidirectionalState::TRunInfo* rRunInfoArray = new(ELeave) TBidirectionalState::TRunInfo[KRuns];
1.3325 + CleanupArrayDeletePushL(rRunInfoArray);
1.3326 +
1.3327 +
1.3328 + //Build up a lot of levels of L-R and R-L text
1.3329 +
1.3330 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.3331 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.3332 +
1.3333 + //Loop through all available test data
1.3334 + //There are more Left-To-Right characters than Right-To-Left, so
1.3335 + //use ltorIterator as the guide
1.3336 +
1.3337 + while (!ltorIterator.Wrapped())
1.3338 + {
1.3339 + //Build up runs
1.3340 + TInt index = 0;
1.3341 + #ifdef PRINT_RUNS
1.3342 + aTest->INFO_PRINTF1(KRunTitle);
1.3343 + #endif // PRINT_RUNS
1.3344 + for (run = 0 ; run < KRuns ; run++)
1.3345 + {
1.3346 + TUint first;
1.3347 + lRunInfoArray[run].iStart = rRunInfoArray[run].iStart = index;
1.3348 + lRunInfoArray[run].iIndex = rRunInfoArray[run].iIndex = 0;
1.3349 + lRunInfoArray[run].iEmbeddingLevel = rRunInfoArray[run].iEmbeddingLevel = 0;
1.3350 +
1.3351 + if ((run & 1) == 0)
1.3352 + {
1.3353 + //Odd values of Run use R-L, even use L-R
1.3354 +
1.3355 + first = ltorIterator.NextChar();
1.3356 + #ifdef PRINT_RUNS
1.3357 + aTest->INFO_PRINTF3(KRunFormat, run, first);
1.3358 + #endif // PRINT_RUNS
1.3359 + ltorIterator.NextCharInto(oldText, index, -1, ETrue, EFalse);
1.3360 + for (i = 1; i < KRunSize ; ++i)
1.3361 + {
1.3362 + if (!ltorIterator.NextCharInto(oldText, index))
1.3363 + break;
1.3364 + }
1.3365 + lRunInfoArray[run].iDirection = rRunInfoArray[run].iDirection = 0;
1.3366 + #ifdef PRINT_RUNS
1.3367 + aTest->INFO_PRINTF4(KRunFormat, run, (first & 0xffff), 0);
1.3368 + #endif // PRINT_RUN
1.3369 +
1.3370 + }
1.3371 + else
1.3372 + {
1.3373 + first = rtolIterator.NextChar();
1.3374 + oldText[index++] = first;
1.3375 + for (i = 1; i < KRunSize ; ++i)
1.3376 + {
1.3377 + oldText[index++] = rtolIterator.NextChar();
1.3378 + }
1.3379 + lRunInfoArray[run].iDirection = rRunInfoArray[run].iDirection = 1;
1.3380 + }
1.3381 + #ifdef PRINT_RUNS
1.3382 + aTest->INFO_PRINTF4(KRunFormat, run, (first & 0xffff) , 1);
1.3383 + #endif // PRINT_RUNS
1.3384 + lRunInfoArray[run].iCategory = rRunInfoArray[run].iCategory = TChar(first).GetBdCategory();
1.3385 + lRunInfoArray[run].iLength = rRunInfoArray[run].iLength = KRunSize;
1.3386 + }
1.3387 +
1.3388 +#ifdef PRINT_ARRAYS
1.3389 + _LIT(KArrayData, "Data\r\n");
1.3390 + PrintTestData(KArrayData, oldText.Ptr(), KBufferSize);
1.3391 +#endif // PRINT_ARRAYS
1.3392 +
1.3393 + TBidirectionalState lState;
1.3394 + TBidirectionalState rState;
1.3395 +
1.3396 + //Check that newly created state objects match IsDefault
1.3397 + aTest->TEST (lState.IsDefault());
1.3398 + aTest->TEST (rState.IsDefault());
1.3399 +
1.3400 + //Check that default state objects work with operator==
1.3401 + aTest->TEST (lState == rState);
1.3402 + aTest->TEST (rState == lState);
1.3403 +
1.3404 + //Call ReorderLine to both populate lRunInfoArray and change
1.3405 + //the internal state of lState
1.3406 + lState.ReorderLine(lRunInfoArray, KRuns, ETrue, ETrue, EParaLToR,
1.3407 + TChar::EOtherNeutral, TChar::EOtherNeutral);
1.3408 +
1.3409 + //Check that the state object is no longer in default state
1.3410 + aTest->TEST (!lState.IsDefault());
1.3411 +
1.3412 + //Check that operator== can detect that
1.3413 + aTest->TEST (!(lState == rState));
1.3414 +
1.3415 + //Call ReorderLine to both populate rRunInfoArray and change
1.3416 + //the internal state of RState
1.3417 + rState.ReorderLine(rRunInfoArray, KRuns, ETrue, ETrue, EParaRToL,
1.3418 + TChar::EOtherNeutral, TChar::EOtherNeutral);
1.3419 +
1.3420 + //now rState should not be in default state
1.3421 + aTest->TEST(!rState.IsDefault());
1.3422 +
1.3423 + //Test that lSTate and rState are not the same.
1.3424 + //Make sure that lState.operator== and rState.operator== give
1.3425 + //the same answer.
1.3426 +
1.3427 + aTest->TEST (!(lState == rState));
1.3428 + aTest->TEST (!(rState == lState));
1.3429 +
1.3430 +
1.3431 +#ifdef PRINT_RUNS
1.3432 + //Print the contents of kRunInfo in epocwind.out
1.3433 + _LIT(KRunInfo1, "run Category Embedding Level Direction Index Start Length\r\n");
1.3434 + _LIT(KRunInfo2, " %d %d %d %d %d %d %d\r\n");
1.3435 +
1.3436 + //Temp - print contents of arrays
1.3437 + aTest->INFO_PRINTF1(_L("Left-To-Right Paragraph\r\n"));
1.3438 + aTest->INFO_PRINTF1(KRunInfo1);
1.3439 + for (run = 0 ; run < KRuns ; ++run)
1.3440 + {
1.3441 + aTest->Logger().LogExtra(((TText8*)__FILE__), __LINE__, ESevrInfo,
1.3442 + KRunInfo2, run, lRunInfoArray[run].iCategory,
1.3443 + lRunInfoArray[run].iEmbeddingLevel, lRunInfoArray[run].iDirection,
1.3444 + lRunInfoArray[run].iIndex, lRunInfoArray[run].iStart, lRunInfoArray[run].iLength);
1.3445 + }
1.3446 + aTest->INFO_PRINTF1(_L("Right-to-Left Paragraph\r\n"));
1.3447 + aTest->INFO_PRINTF1(KRunInfo1);
1.3448 + for (run = 0 ; run < KRuns ; ++run)
1.3449 + {
1.3450 + aTest->Logger().LogExtra(((TText8*)__FILE__), __LINE__, ESevrInfo,
1.3451 + KRunInfo2, run, rRunInfoArray[run].iCategory,
1.3452 + rRunInfoArray[run].iEmbeddingLevel, rRunInfoArray[run].iDirection,
1.3453 + rRunInfoArray[run].iIndex, rRunInfoArray[run].iStart, rRunInfoArray[run].iLength);
1.3454 + }
1.3455 +
1.3456 +#endif // PRINT_RUNS
1.3457 +
1.3458 + //With the test data presented, there should be 64 runs in ascending order
1.3459 + //when processed in a left-to-right context and in descending order when processed
1.3460 + //as right-to-left, corresponding to each run being printed in entry order in
1.3461 + //the former case and in reverse order in the latter case.
1.3462 +
1.3463 + for (run = 0 ; run < KRuns ; ++run)
1.3464 + {
1.3465 + aTest->TEST(lRunInfoArray[run].iIndex == run);
1.3466 + aTest->TEST(rRunInfoArray[KRuns - run - 1].iIndex == run);
1.3467 + }
1.3468 +
1.3469 +
1.3470 + TestInternalizeL(lState,rState, aTest);
1.3471 + }
1.3472 +
1.3473 +
1.3474 + CleanupStack::PopAndDestroy(rRunInfoArray);
1.3475 + CleanupStack::PopAndDestroy(lRunInfoArray);
1.3476 + CleanupStack::PopAndDestroy();
1.3477 + }
1.3478 +
1.3479 +/**
1.3480 + *
1.3481 + * Tests that the Bidirectional Algorithm leaves left to right text alone.
1.3482 + *
1.3483 + *
1.3484 + * @param "TDes& aOldText"
1.3485 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3486 + *
1.3487 + * @param "CTGraphicsBase* aTest"
1.3488 + * Pointer to the test object
1.3489 + *
1.3490 + */
1.3491 + static void LeftToRightReorderTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3492 + {//LeftToRight test - are left-to-right character strings preserved?
1.3493 + TText* lText = 0;
1.3494 + TText* rText = 0;
1.3495 + TInt lretval = KErrNone;
1.3496 + TInt rretval = KErrNone;
1.3497 +
1.3498 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.3499 +
1.3500 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3501 + while (!ltorIterator.Wrapped())
1.3502 + {
1.3503 + for (TInt i = 0 ; i < KBufferSize; )
1.3504 + {
1.3505 + if (!ltorIterator.NextCharInto(aOldText, i))
1.3506 + break;
1.3507 + }
1.3508 +
1.3509 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, lText);
1.3510 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaRToL, rText);
1.3511 +
1.3512 + aTest->TEST(lretval == KErrNone);
1.3513 + aTest->TEST(rretval == KErrNone);
1.3514 +
1.3515 + //LtoR characters should remain unchanged in either paragraph direction
1.3516 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, KBufferSize));
1.3517 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), rText, KBufferSize));
1.3518 +
1.3519 + DeleteText(aOldText.Ptr(), lText, aTest);
1.3520 + DeleteText(aOldText.Ptr(), rText, aTest);
1.3521 +
1.3522 + }
1.3523 + }
1.3524 +/**
1.3525 + *
1.3526 + * Tests that the Bidirectional Algorithm leaves european numbers alone
1.3527 + *
1.3528 + *
1.3529 + * @param "TDes& aOldText"
1.3530 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3531 + *
1.3532 + * @param "CTGraphicsBase* aTest"
1.3533 + * Pointer to the test object
1.3534 + *
1.3535 + */
1.3536 + static void SimpleEuropeanNumberTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3537 + {//European number test - are left-to-right character strings preserved?
1.3538 +
1.3539 + TText* lText = 0;
1.3540 + TText* rText = 0;
1.3541 + TInt lretval = KErrNone;
1.3542 + TInt rretval = KErrNone;
1.3543 +
1.3544 +
1.3545 + TextIterator numIterator(KEuropeanNumber, KEuropeanNumberLength);
1.3546 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3547 +
1.3548 + while (!numIterator.Wrapped())
1.3549 + {
1.3550 + for (TInt i = 0 ; i < KBufferSize; ++i)
1.3551 + {
1.3552 + aOldText[i] = numIterator.NextChar();
1.3553 + }
1.3554 +
1.3555 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, lText);
1.3556 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaRToL, rText);
1.3557 +
1.3558 + aTest->TEST(lretval == KErrNone);
1.3559 + aTest->TEST(rretval == KErrNone);
1.3560 +
1.3561 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, KBufferSize));
1.3562 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), rText, KBufferSize));
1.3563 +
1.3564 + DeleteText(aOldText.Ptr(), lText, aTest);
1.3565 + DeleteText(aOldText.Ptr(), rText, aTest);
1.3566 + }
1.3567 +
1.3568 + }
1.3569 +/**
1.3570 + *
1.3571 + * Tests that the Bidirectional Algorithm reverses right-to-left text.
1.3572 + *
1.3573 + * @param "TDes& aOldText"
1.3574 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3575 + *
1.3576 + * @param "CTGraphicsBase* aTest"
1.3577 + * Pointer to the test object
1.3578 + *
1.3579 + */
1.3580 + static void SimpleRightToLeftTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3581 + {// Basic Right-to-Left test
1.3582 +
1.3583 + TText* lText = 0;
1.3584 + TText* rText = 0;
1.3585 + TInt lretval = KErrNone;
1.3586 + TInt rretval = KErrNone;
1.3587 + TInt oldTextLength = aOldText.Length();
1.3588 +
1.3589 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.3590 +
1.3591 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3592 +
1.3593 + while (!rtolIterator.Wrapped())
1.3594 + {
1.3595 + TInt i = 0;
1.3596 + rtolIterator.FillInto(aOldText, i, KBufferSize);
1.3597 + aOldText.SetLength(i);
1.3598 +
1.3599 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.3600 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.3601 +
1.3602 + aTest->TEST(lretval == KErrNone);
1.3603 + aTest->TEST(rretval == KErrNone);
1.3604 +
1.3605 + //RightToLeft characters should be reversed in order
1.3606 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, i));
1.3607 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), rText, i));
1.3608 +
1.3609 + DeleteText(aOldText.Ptr(), lText, aTest);
1.3610 + DeleteText(aOldText.Ptr(), rText, aTest);
1.3611 + aOldText.SetLength(oldTextLength);
1.3612 + }
1.3613 + }
1.3614 +
1.3615 +/**
1.3616 + *
1.3617 + * Tests that the Bidirectional Algorithm reverses right-to-left Arabic text.
1.3618 + *
1.3619 + * @param "TDes& aOldText"
1.3620 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3621 + *
1.3622 + * @param "CTGraphicsBase* aTest"
1.3623 + * Pointer to the test object
1.3624 + *
1.3625 + */
1.3626 + static void SimpleRightToLeftArabicTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3627 + {// Basic Right-to-Left Arabic test
1.3628 +
1.3629 + TText* lText = 0;
1.3630 + TText* rText = 0;
1.3631 + TInt lretval = KErrNone;
1.3632 + TInt rretval = KErrNone;
1.3633 +
1.3634 + // Basic Right-to-Left Arabic test
1.3635 +
1.3636 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.3637 +
1.3638 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3639 +
1.3640 + while (!rtolIterator.Wrapped())
1.3641 + {
1.3642 + for (TInt i = 0 ; i < KBufferSize; ++i)
1.3643 + {
1.3644 + aOldText[i] = rtolIterator.NextChar();
1.3645 + }
1.3646 +
1.3647 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, lText);
1.3648 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaRToL, rText);
1.3649 +
1.3650 + aTest->TEST(lretval == KErrNone);
1.3651 + aTest->TEST(rretval == KErrNone);
1.3652 +
1.3653 + //RightToLeftArabic characters should be reversed
1.3654 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, KBufferSize));
1.3655 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), rText, KBufferSize));
1.3656 +
1.3657 + DeleteText(aOldText.Ptr(), lText, aTest);
1.3658 + DeleteText(aOldText.Ptr(), rText, aTest);
1.3659 +
1.3660 +
1.3661 + }
1.3662 + }
1.3663 +
1.3664 +/**
1.3665 + *
1.3666 + * Tests that characters that have mirrors are replaced by their mirrors
1.3667 + * when right-to-left Arabic text is reversed.
1.3668 + *
1.3669 + * @param "TDes& aOldText"
1.3670 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3671 + *
1.3672 + * @param "CTGraphicsBase* aTest"
1.3673 + * Pointer to the test object
1.3674 + *
1.3675 + */
1.3676 + static void MirroredCharacterTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3677 + {
1.3678 + TText* lText = 0;
1.3679 + TText* rText = 0;
1.3680 + TInt lretval = KErrNone;
1.3681 + TInt rretval = KErrNone;
1.3682 +
1.3683 + // Mirrored Characters Test
1.3684 +
1.3685 + //Some Arabic test is interspersed with characters that have Mirror versions.
1.3686 +
1.3687 + //After reordering the text should be reversed and the mirror characters substituted
1.3688 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.3689 + TextIterator mirrorsIterator(KMirrors().Ptr(), KMirrors().Length());
1.3690 + TextIterator mirrordIterator(KMirrord().Ptr(), KMirrord().Length());
1.3691 +
1.3692 + while (!rtolIterator.Wrapped())
1.3693 + {
1.3694 + TInt i;
1.3695 + TInt j;
1.3696 + for (i = 0 ; i < (KBufferSize-3); i+=4)
1.3697 + {
1.3698 + aOldText[i] = rtolIterator.NextChar();
1.3699 + aOldText[i+1] = mirrorsIterator.NextChar();
1.3700 + aOldText[i+2] = mirrorsIterator.NextChar();
1.3701 + aOldText[i+3] = rtolIterator.NextChar();
1.3702 + }
1.3703 +
1.3704 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, lText);
1.3705 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaRToL, rText);
1.3706 +
1.3707 + aTest->TEST(lretval == KErrNone);
1.3708 + aTest->TEST(rretval == KErrNone);
1.3709 +#ifdef PRINT_DATA
1.3710 + _LIT(KOTitleT, "Original (Top)");
1.3711 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.3712 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.3713 + _LIT(KOTitleB, "Original (Bottom)");
1.3714 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.3715 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.3716 +
1.3717 +
1.3718 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.3719 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.3720 +
1.3721 + PrintTestData(KLTitleT, lText, 32);
1.3722 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.3723 +
1.3724 + PrintTestData(KRTitleT, rText, 32);
1.3725 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.3726 +
1.3727 +#endif
1.3728 +
1.3729 + for (i = 0 ; i < (KBufferSize-3) ; i+=4)
1.3730 + {
1.3731 + j = KBufferSize - i - 1;
1.3732 + aTest->TEST(aOldText[i] == lText[j]);
1.3733 + aTest->TEST(aOldText[i] == rText[j]);
1.3734 + aTest->TEST(aOldText[i+3] == lText[j-3]);
1.3735 + aTest->TEST(aOldText[i+3] == rText[j-3]);
1.3736 +
1.3737 + TText16 nextMirror = mirrordIterator.NextChar();
1.3738 +
1.3739 + aTest->TEST(nextMirror == lText[j-1]);
1.3740 + aTest->TEST(nextMirror == rText[j-1]);
1.3741 +
1.3742 + nextMirror = mirrordIterator.NextChar();
1.3743 +
1.3744 + aTest->TEST(nextMirror == lText[j-2]);
1.3745 + aTest->TEST(nextMirror == rText[j-2]);
1.3746 + }
1.3747 +
1.3748 +
1.3749 + DeleteText(aOldText.Ptr(), lText, aTest);
1.3750 + DeleteText(aOldText.Ptr(), rText, aTest);
1.3751 +
1.3752 +
1.3753 + }
1.3754 + }
1.3755 +/**
1.3756 + *
1.3757 + * Tests the effect of LeftToRightOverride on left-to-right text.
1.3758 + *
1.3759 + * @param "TDes& aOldText"
1.3760 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3761 + *
1.3762 + * @param "CTGraphicsBase* aTest"
1.3763 + * Pointer to the test object
1.3764 + *
1.3765 + */
1.3766 + static void LROLeftToRightTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3767 + {
1.3768 + TText* newText = 0;
1.3769 + TInt retval = KErrNone;
1.3770 +
1.3771 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3772 + //LRO test - are left-to-right character strings preserved?
1.3773 +
1.3774 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.3775 + while (ltorIterator.Wrapped())
1.3776 + {
1.3777 + aOldText[0] = KLeftToRightOverride[0];
1.3778 + for (TInt i = 1 ; i < (KBufferSize-1); ++i)
1.3779 + {
1.3780 + aOldText[i] = ltorIterator.NextChar();
1.3781 + }
1.3782 +
1.3783 + aOldText[KBufferSize-1] = KPopDirectionalFormat[0];
1.3784 + retval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, newText);
1.3785 +
1.3786 + aTest->TEST(retval == KErrNone);
1.3787 +
1.3788 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), newText, KBufferSize));
1.3789 +
1.3790 + DeleteText(aOldText.Ptr(), newText, aTest);
1.3791 +
1.3792 + }
1.3793 + }
1.3794 +
1.3795 +/**
1.3796 + *
1.3797 + * Tests the effect of LeftToRightOverride on right-to-left text.
1.3798 + *
1.3799 + * @param "TDes& aOldText"
1.3800 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3801 + *
1.3802 + * @param "CTGraphicsBase* aTest"
1.3803 + * Pointer to the test object
1.3804 + *
1.3805 + */
1.3806 + static void LRORightToLeftTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3807 + {
1.3808 + TText* newText = 0;
1.3809 + TInt retval = KErrNone;
1.3810 +
1.3811 +
1.3812 + //LRO test - are right-to-left character strings overidden?
1.3813 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.3814 +
1.3815 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3816 + while (!rtolIterator.Wrapped())
1.3817 + {
1.3818 + aOldText[0] = KLeftToRightOverride[0];
1.3819 + for (TInt i = 1 ; i < (KBufferSize-1); ++i)
1.3820 + {
1.3821 + aOldText[i] = rtolIterator.NextChar();
1.3822 + }
1.3823 +
1.3824 + aOldText[KBufferSize-1] = KPopDirectionalFormat[0];
1.3825 + retval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, newText);
1.3826 +
1.3827 + aTest->TEST(retval == KErrNone);
1.3828 +
1.3829 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), newText, KBufferSize));
1.3830 +
1.3831 + DeleteText(aOldText.Ptr(),newText, aTest);
1.3832 + }
1.3833 + }
1.3834 +
1.3835 +/**
1.3836 + *
1.3837 + * Tests the effect of RightToLeftOverride on right-to-left text.
1.3838 + *
1.3839 + * @param "TDes& aOldText"
1.3840 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3841 + *
1.3842 + * @param "CTGraphicsBase* aTest"
1.3843 + * Pointer to the test object
1.3844 + *
1.3845 + */
1.3846 + static void RLORightToLeftTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3847 + {
1.3848 + TText* newText = 0;
1.3849 + TInt retval = KErrNone;
1.3850 + TInt oldTextLength = aOldText.Length();
1.3851 +
1.3852 + // RLO Test - are right-to-left characters unaffected?
1.3853 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.3854 +
1.3855 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3856 +
1.3857 + while (!rtolIterator.Wrapped())
1.3858 + {
1.3859 + aOldText[0] = KRightToLeftOverride[0];
1.3860 +
1.3861 + TInt i = 1;
1.3862 + rtolIterator.FillInto(aOldText, i, KBufferSize-1);
1.3863 + aOldText[i++] = KPopDirectionalFormat[0];
1.3864 + aOldText.SetLength(i);
1.3865 +
1.3866 + retval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, newText);
1.3867 +
1.3868 + aTest->TEST(retval == KErrNone);
1.3869 +
1.3870 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), newText, i));
1.3871 +
1.3872 + DeleteText(aOldText.Ptr(), newText, aTest);
1.3873 + aOldText.SetLength(oldTextLength);
1.3874 + }
1.3875 + }
1.3876 +
1.3877 +/**
1.3878 + *
1.3879 + * Tests the effect of RightToLeftOverride on right-to-left Arabic text.
1.3880 + *
1.3881 + * @param "TDes& aOldText"
1.3882 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3883 + *
1.3884 + * @param "CTGraphicsBase* aTest"
1.3885 + * Pointer to the test object
1.3886 + *
1.3887 + */
1.3888 + static void RLORightToLeftArabicTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3889 + {
1.3890 + TText* newText = 0;
1.3891 + TInt retval = KErrNone;
1.3892 +
1.3893 + // RLO Test - are right-to-left Arabic characters unaffected?
1.3894 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.3895 +
1.3896 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3897 +
1.3898 + while (!rtolIterator.Wrapped())
1.3899 + {
1.3900 + aOldText[0] = KRightToLeftOverride[0];
1.3901 +
1.3902 + for (TInt i = 1 ; i < (KBufferSize-1); ++i)
1.3903 + {
1.3904 + aOldText[i] = rtolIterator.NextChar();
1.3905 + }
1.3906 +
1.3907 + aOldText[KBufferSize-1] = KPopDirectionalFormat[0];
1.3908 +
1.3909 + retval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaRToL, newText);
1.3910 +
1.3911 + aTest->TEST(retval == KErrNone);
1.3912 +
1.3913 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), newText, KBufferSize));
1.3914 +
1.3915 + DeleteText(aOldText.Ptr(), newText, aTest);
1.3916 +
1.3917 + }
1.3918 + }
1.3919 +
1.3920 +/**
1.3921 + *
1.3922 + * Tests the effect of RightToLeftOverride on left-to-right text.
1.3923 + *
1.3924 + * @param "TDes& aOldText"
1.3925 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3926 + *
1.3927 + * @param "CTGraphicsBase* aTest"
1.3928 + * Pointer to the test object
1.3929 + *
1.3930 + */
1.3931 + static void RLOLeftToRightTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3932 + {
1.3933 + TText* newText = 0;
1.3934 + TInt retval = KErrNone;
1.3935 + TInt oldTextLength = aOldText.Length();
1.3936 +
1.3937 + // RLO Test - are left-to-right characters overriden?
1.3938 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.3939 +
1.3940 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3941 +
1.3942 + while (!ltorIterator.Wrapped())
1.3943 + {
1.3944 + aOldText[0] = KRightToLeftOverride[0];
1.3945 +
1.3946 + TInt i;
1.3947 + for (i = 1 ; i < (KBufferSize-1); )
1.3948 + {
1.3949 + if (!ltorIterator.NextCharInto(aOldText, i, KBufferSize-1))
1.3950 + break;
1.3951 + }
1.3952 +
1.3953 + aOldText[i] = KPopDirectionalFormat[0];
1.3954 + TInt newLength = i + 1;
1.3955 + aOldText.SetLength(newLength);
1.3956 +
1.3957 + retval = TBidirectionalState::ReorderText(aOldText.Ptr(), newLength, EParaRToL, newText);
1.3958 +
1.3959 + aTest->TEST(retval == KErrNone);
1.3960 +
1.3961 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), newText, newLength, aTest));
1.3962 +
1.3963 + DeleteText(aOldText.Ptr(), newText, aTest);
1.3964 + aOldText.SetLength(oldTextLength);
1.3965 + }
1.3966 + }
1.3967 +
1.3968 +/**
1.3969 + *
1.3970 + * Tests the effect of putting Left To Right text by Right To Left text.
1.3971 + *
1.3972 + * @param "TDes& aOldText"
1.3973 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.3974 + *
1.3975 + * @param "CTGraphicsBase* aTest"
1.3976 + * Pointer to the test object
1.3977 + *
1.3978 + */
1.3979 + static void LToRThenRToLTest(TDes& aOldText, CTGraphicsBase* aTest)
1.3980 + {
1.3981 + TText* lText = 0;
1.3982 + TText* rText = 0;
1.3983 + TInt lretval = KErrNone;
1.3984 + TInt rretval = KErrNone;
1.3985 + TInt oldTextLength = aOldText.Length();
1.3986 +
1.3987 + // Mixing L-R & R-L without embed codes - L-R at start, R-L at end
1.3988 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.3989 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.3990 +
1.3991 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.3992 +
1.3993 + while (!ltorIterator.Wrapped())
1.3994 + {
1.3995 + TInt i = 0;
1.3996 + ltorIterator.FillInto(aOldText, i, KHalfBufferSize);
1.3997 + TInt realSize1 = i;
1.3998 +
1.3999 + rtolIterator.FillInto(aOldText, i, KBufferSize);
1.4000 + TInt realSize2 = i - realSize1;
1.4001 + aOldText.SetLength(i);
1.4002 +
1.4003 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4004 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, rText);
1.4005 +
1.4006 + aTest->TEST(lretval == KErrNone);
1.4007 + aTest->TEST(rretval == KErrNone);
1.4008 +
1.4009 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, realSize1));
1.4010 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize1], &lText[realSize1], realSize2));
1.4011 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), rText, realSize1));
1.4012 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize1], &rText[realSize1], realSize2));
1.4013 +
1.4014 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4015 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4016 + aOldText.SetLength(oldTextLength);
1.4017 + }
1.4018 + }
1.4019 +
1.4020 +/**
1.4021 + *
1.4022 + * Tests the effect of putting Left To Right text by Right To Left Arabic text.
1.4023 + *
1.4024 + * @param "TDes& aOldText"
1.4025 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4026 + *
1.4027 + * @param "CTGraphicsBase* aTest"
1.4028 + * Pointer to the test object
1.4029 + *
1.4030 + */
1.4031 + static void LToRThenRToLATest(TDes& aOldText, CTGraphicsBase* aTest)
1.4032 + {
1.4033 + TText* lText = 0;
1.4034 + TText* rText = 0;
1.4035 + TInt lretval = KErrNone;
1.4036 + TInt rretval = KErrNone;
1.4037 + TInt oldTextLength = aOldText.Length();
1.4038 +
1.4039 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4040 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.4041 +
1.4042 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4043 + while (!ltorIterator.Wrapped())
1.4044 + {
1.4045 + TInt i;
1.4046 +
1.4047 + for (i = 0 ; i < KHalfBufferSize; )
1.4048 + {
1.4049 + if (!ltorIterator.NextCharInto(aOldText, i, KHalfBufferSize))
1.4050 + break;
1.4051 + }
1.4052 + TInt realSize1 = i;
1.4053 +
1.4054 + for (; i < KBufferSize; ++i)
1.4055 + {
1.4056 + aOldText[i] = rtolIterator.NextChar();
1.4057 + }
1.4058 + TInt realSize2 = i - realSize1;
1.4059 + aOldText.SetLength(i);
1.4060 +
1.4061 +
1.4062 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4063 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, rText);
1.4064 +
1.4065 + aTest->TEST(lretval == KErrNone);
1.4066 + aTest->TEST(rretval == KErrNone);
1.4067 +
1.4068 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, realSize1));
1.4069 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize1], &lText[realSize1], realSize2));
1.4070 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), rText, realSize1));
1.4071 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize1], &rText[realSize1], realSize2));
1.4072 +
1.4073 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4074 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4075 + aOldText.SetLength(oldTextLength);
1.4076 + }
1.4077 + }
1.4078 +/**
1.4079 + *
1.4080 + * Tests the effect of putting Right To Left Arabic by Left To Right text.
1.4081 + *
1.4082 + * @param "TDes& aOldText"
1.4083 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4084 + *
1.4085 + * @param "CTGraphicsBase* aTest"
1.4086 + * Pointer to the test object
1.4087 + *
1.4088 + */
1.4089 + static void RToLAThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4090 + {
1.4091 + TText* lText = 0;
1.4092 + TText* rText = 0;
1.4093 + TInt lretval = KErrNone;
1.4094 + TInt rretval = KErrNone;
1.4095 + TInt oldTextLength = aOldText.Length();
1.4096 +
1.4097 + // Mixing L-R & R-LA without embed codes - R-LA at start, L-R at end
1.4098 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4099 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.4100 +
1.4101 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4102 +
1.4103 + while (!ltorIterator.Wrapped())
1.4104 + {
1.4105 + TInt i = 0;
1.4106 +
1.4107 + rtolIterator.FillInto(aOldText, i, KHalfBufferSize);
1.4108 + TInt realSize1 = i;
1.4109 +
1.4110 + ltorIterator.FillInto(aOldText, i, KBufferSize);
1.4111 + TInt realSize2 = i - realSize1;
1.4112 + aOldText.SetLength(i);
1.4113 +
1.4114 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4115 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4116 +
1.4117 + aTest->TEST(lretval == KErrNone);
1.4118 + aTest->TEST(rretval == KErrNone);
1.4119 +
1.4120 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, realSize1));
1.4121 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize1], &lText[realSize1] , realSize2));
1.4122 +
1.4123 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), &rText[realSize2], realSize1));
1.4124 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize1], rText, realSize2));
1.4125 +
1.4126 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4127 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4128 + aOldText.SetLength(oldTextLength);
1.4129 + }
1.4130 + }
1.4131 +
1.4132 +/**
1.4133 + *
1.4134 + * Tests the effect of interspersing right to left and left to right text
1.4135 + *
1.4136 + * @param "TDes& aOldText"
1.4137 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4138 + *
1.4139 + * @param "CTGraphicsBase* aTest"
1.4140 + * Pointer to the test object
1.4141 + *
1.4142 + */
1.4143 + static void LToRThenRToLThenLToRThenRToLTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4144 + {
1.4145 + TText* lText = 0;
1.4146 + TText* rText = 0;
1.4147 + TInt lretval = KErrNone;
1.4148 + TInt rretval = KErrNone;
1.4149 + TInt oldTextLength = aOldText.Length();
1.4150 +
1.4151 + // Mixing L-R & R-L without embed codes - quarter buffers L-R R-L L-R R-L
1.4152 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4153 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.4154 +
1.4155 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4156 +
1.4157 + while (!ltorIterator.Wrapped())
1.4158 + {
1.4159 + TInt i = 0;
1.4160 +
1.4161 + ltorIterator.FillInto(aOldText, i, KQuarterBufferSize);
1.4162 + TInt realSize1 = i;
1.4163 +
1.4164 + rtolIterator.FillInto(aOldText, i, KHalfBufferSize);
1.4165 + TInt realSize2 = i - realSize1;
1.4166 + TInt realSize12 = i;
1.4167 +
1.4168 + ltorIterator.FillInto(aOldText, i, KThreeQuarterBufferSize);
1.4169 + TInt realSize3 = i - realSize12;
1.4170 + TInt realSize123 = i;
1.4171 +
1.4172 + rtolIterator.FillInto(aOldText, i, KBufferSize);
1.4173 + TInt realSize4 = i - realSize123;
1.4174 + TInt realSize34 = i - realSize12;
1.4175 + TInt realSize234 = i - realSize1;
1.4176 +
1.4177 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4178 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4179 +
1.4180 + aTest->TEST(lretval == KErrNone);
1.4181 + aTest->TEST(rretval == KErrNone);
1.4182 +
1.4183 + // source: L1 R2 L3 R4
1.4184 + // l should be: L1 L2 L3 L4
1.4185 + // r should be: R4 R3 R2 R1
1.4186 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, realSize1));
1.4187 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize1], &lText[realSize1], realSize2));
1.4188 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize12], &lText[realSize12], realSize3));
1.4189 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize123], &lText[realSize123], realSize4));
1.4190 +
1.4191 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize123], rText, realSize4));
1.4192 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize12], &rText[realSize4], realSize3));
1.4193 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize1], &rText[realSize34], realSize2));
1.4194 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), &rText[realSize234], realSize1));
1.4195 +
1.4196 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4197 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4198 + aOldText.SetLength(oldTextLength);
1.4199 + }
1.4200 + }
1.4201 +
1.4202 +/**
1.4203 + *
1.4204 + * Tests the effect of interspersing right to left and left to right text
1.4205 + *
1.4206 + * @param "TDes& aOldText"
1.4207 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4208 + *
1.4209 + * @param "CTGraphicsBase* aTest"
1.4210 + * Pointer to the test object
1.4211 + *
1.4212 + */
1.4213 + static void RToLThenLToRThenRToLThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4214 + {
1.4215 + TText* lText = 0;
1.4216 + TText* rText = 0;
1.4217 + TInt lretval = KErrNone;
1.4218 + TInt rretval = KErrNone;
1.4219 + TInt oldTextLength = aOldText.Length();
1.4220 +
1.4221 + // Mixing L-R & R-L without embed codes - quarter buffers R-L L-R R-L L-R
1.4222 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4223 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.4224 +
1.4225 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4226 +
1.4227 + while (!ltorIterator.Wrapped())
1.4228 + {
1.4229 + TInt i = 0;
1.4230 +
1.4231 + rtolIterator.FillInto(aOldText, i, KQuarterBufferSize);
1.4232 + TInt realSize1 = i;
1.4233 +
1.4234 + ltorIterator.FillInto(aOldText, i, KHalfBufferSize);
1.4235 + TInt realSize2 = i - realSize1;
1.4236 + TInt realSize12 = i;
1.4237 +
1.4238 + rtolIterator.FillInto(aOldText, i, KThreeQuarterBufferSize);
1.4239 + TInt realSize3 = i - realSize12;
1.4240 + TInt realSize123 = i;
1.4241 +
1.4242 + ltorIterator.FillInto(aOldText, i, KBufferSize);
1.4243 + TInt realSize4 = i - realSize123;
1.4244 + TInt realSize34 = i - realSize12;
1.4245 + TInt realSize234 = i - realSize1;
1.4246 +
1.4247 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4248 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4249 +
1.4250 + aTest->TEST(lretval == KErrNone);
1.4251 + aTest->TEST(rretval == KErrNone);
1.4252 +
1.4253 + // source: R1 L2 R3 L4
1.4254 + // l should be: L1 L2 L3 L4
1.4255 + // r should be: L4 L3 L2 L1
1.4256 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, realSize1));
1.4257 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize1], &lText[realSize1], realSize2));
1.4258 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize12], &lText[realSize12], realSize3));
1.4259 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize123], &lText[realSize123], realSize4));
1.4260 +
1.4261 + aTest->TEST( TextInSameOrder(&aOldText.Ptr()[realSize123], rText, realSize4));
1.4262 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[realSize12], &rText[realSize4], realSize3));
1.4263 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize1], &rText[realSize34], realSize2));
1.4264 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), &rText[realSize234], realSize1));
1.4265 +
1.4266 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4267 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4268 +
1.4269 + aOldText.SetLength(oldTextLength);
1.4270 + }
1.4271 + }
1.4272 +
1.4273 +/**
1.4274 + *
1.4275 + * Tests the effect of mixing blocks of right to left text, left to right text,
1.4276 + * European numbers and Arabic numbers
1.4277 + *
1.4278 + * @param "TDes& aOldText"
1.4279 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4280 + *
1.4281 + * @param "CTGraphicsBase* aTest"
1.4282 + * Pointer to the test object
1.4283 + *
1.4284 + */
1.4285 + static void SimpleNumberTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4286 + {
1.4287 + TText* lText = 0;
1.4288 + TText* rText = 0;
1.4289 + TInt lretval = KErrNone;
1.4290 + TInt rretval = KErrNone;
1.4291 + TInt oldTextLength = aOldText.Length();
1.4292 +
1.4293 + // Now mix in some numbers
1.4294 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4295 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.4296 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4297 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4298 +
1.4299 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4300 +
1.4301 + while (!ltorIterator.Wrapped())
1.4302 + {
1.4303 + TInt i = 0;
1.4304 + rtolIterator.FillInto(aOldText, i, KQuarterBufferSize);
1.4305 + TInt realSize1 = i;
1.4306 +
1.4307 + ltorIterator.FillInto(aOldText, i, KHalfBufferSize);
1.4308 + TInt realSize2 = i - realSize1;
1.4309 + TInt realSize12 = i;
1.4310 +
1.4311 + euronIterator.FillInto(aOldText, i, KThreeQuarterBufferSize);
1.4312 + TInt realSize3 = i - realSize12;
1.4313 + TInt realSize123 = i;
1.4314 + TInt realSize23 = realSize123 - realSize1;
1.4315 +
1.4316 + arabnIterator.FillInto(aOldText, i, KBufferSize);
1.4317 + TInt realSize4 = i - realSize123;
1.4318 + TInt realSize234 = i - realSize1;
1.4319 +
1.4320 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4321 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4322 +
1.4323 + aTest->TEST(lretval == KErrNone);
1.4324 + aTest->TEST(rretval == KErrNone);
1.4325 +
1.4326 + // source: 1 2 3 4
1.4327 + // l should be: 2 3 4 -1
1.4328 + // r should be: -1 2 3 4
1.4329 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize1], rText, realSize2));
1.4330 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize12], &rText[realSize2], realSize3));
1.4331 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize123], &rText[realSize23], realSize4));
1.4332 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), &rText[realSize234], realSize1));
1.4333 +
1.4334 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, realSize1));
1.4335 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize1], &lText[realSize1], realSize2));
1.4336 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize12], &lText[realSize12], realSize3));
1.4337 + aTest->TEST(TextInSameOrder(&aOldText.Ptr()[realSize123], &lText[realSize123], realSize4));
1.4338 +
1.4339 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4340 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4341 + }
1.4342 + }
1.4343 +
1.4344 +/**
1.4345 + *
1.4346 + * Tests what happens when Arabic and European numbers are surrounded by Arabic letters
1.4347 + *
1.4348 + * @param "TDes& aOldText"
1.4349 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4350 + *
1.4351 + * @param "CTGraphicsBase* aTest"
1.4352 + * Pointer to the test object
1.4353 + *
1.4354 + */
1.4355 + static void RToLAThenANThenENThenRToLATest(TDes& aOldText, CTGraphicsBase* aTest)
1.4356 + {
1.4357 + TText* lText = 0;
1.4358 + TText* rText = 0;
1.4359 + TInt lretval = KErrNone;
1.4360 + TInt rretval = KErrNone;
1.4361 + TInt oldTextLength = aOldText.Length();
1.4362 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.4363 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.4364 +
1.4365 + // Now mix in some numbers
1.4366 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.4367 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4368 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4369 +
1.4370 + while (!rtolIterator.Wrapped())
1.4371 + {
1.4372 + TInt i;
1.4373 + TInt lasti = 0;
1.4374 + TUint ch0, ch1, ch2, ch3;
1.4375 + for (i = 0 ; i < KBufferSize-3; )
1.4376 + {
1.4377 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.4378 + break;
1.4379 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.4380 + break;
1.4381 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.4382 + break;
1.4383 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.4384 + break;
1.4385 +
1.4386 + lasti = i;
1.4387 + AppendCharacter(lResult, ch0);
1.4388 + AppendCharacter(lResult, ch2);
1.4389 + AppendCharacter(lResult, ch1);
1.4390 + AppendCharacter(lResult, ch3);
1.4391 +
1.4392 + AppendCharacter(rResult, ch0);
1.4393 + AppendCharacter(rResult, ch2);
1.4394 + AppendCharacter(rResult, ch1);
1.4395 + AppendCharacter(rResult, ch3);
1.4396 + }
1.4397 + i = lasti;
1.4398 + aOldText.SetLength(i);
1.4399 + ASSERT(lResult->Des().Length() == i);
1.4400 + ASSERT(rResult->Des().Length() == i);
1.4401 +
1.4402 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4403 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4404 +
1.4405 + aTest->TEST(lretval == KErrNone);
1.4406 + aTest->TEST(rretval == KErrNone);
1.4407 +#ifdef PRINT_DATA
1.4408 +
1.4409 + _LIT(KOTitle, "Original");
1.4410 + _LIT(KLTitle, "Left-to-Right");
1.4411 + _LIT(KRTitle, "Right-to-Left");
1.4412 +
1.4413 +
1.4414 + PrintTestData(KOTitle, aOldText);
1.4415 + PrintTestData(KLTitle, lText, KBufferSize);
1.4416 + PrintTestData(KRTitle, rText, KBufferSize);
1.4417 +
1.4418 +#endif
1.4419 + aTest->TEST(TextInReverseOrder(lResult->Ptr(), lText, i));
1.4420 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.4421 +
1.4422 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4423 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4424 +
1.4425 + aOldText.SetLength(oldTextLength);
1.4426 + lResult->Des().SetLength(0);
1.4427 + rResult->Des().SetLength(0);
1.4428 + }
1.4429 + CleanupStack::PopAndDestroy(rResult);
1.4430 + CleanupStack::PopAndDestroy(lResult);
1.4431 + }
1.4432 +/**
1.4433 + *
1.4434 + * Tests what happens when Arabic and European numbers are surrounded by Arabic letters
1.4435 + *
1.4436 + * @param "TDes& aOldText"
1.4437 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4438 + *
1.4439 + * @param "CTGraphicsBase* aTest"
1.4440 + * Pointer to the test object
1.4441 + *
1.4442 + */
1.4443 + static void RToLAThenENThenANThenRToLATest(TDes& aOldText, CTGraphicsBase* aTest)
1.4444 + {
1.4445 + TText* lText = 0;
1.4446 + TText* rText = 0;
1.4447 + TInt lretval = KErrNone;
1.4448 + TInt rretval = KErrNone;
1.4449 + TInt oldTextLength = aOldText.Length();
1.4450 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.4451 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.4452 +
1.4453 + // Now mix in some numbers
1.4454 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.4455 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4456 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4457 +
1.4458 + while (!rtolIterator.Wrapped())
1.4459 + {
1.4460 + TInt i;
1.4461 + TInt lasti = 0;
1.4462 + TUint ch0, ch1, ch2, ch3;
1.4463 + for (i = 0 ; i < KBufferSize-3; )
1.4464 + {
1.4465 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.4466 + break;
1.4467 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.4468 + break;
1.4469 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.4470 + break;
1.4471 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.4472 + break;
1.4473 +
1.4474 + lasti = i;
1.4475 + AppendCharacter(lResult, ch0);
1.4476 + AppendCharacter(lResult, ch2);
1.4477 + AppendCharacter(lResult, ch1);
1.4478 + AppendCharacter(lResult, ch3);
1.4479 +
1.4480 + AppendCharacter(rResult, ch0);
1.4481 + AppendCharacter(rResult, ch2);
1.4482 + AppendCharacter(rResult, ch1);
1.4483 + AppendCharacter(rResult, ch3);
1.4484 + }
1.4485 + i = lasti;
1.4486 + aOldText.SetLength(i);
1.4487 + ASSERT(lResult->Des().Length() == i);
1.4488 + ASSERT(rResult->Des().Length() == i);
1.4489 +
1.4490 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4491 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4492 +
1.4493 + aTest->TEST(lretval == KErrNone);
1.4494 + aTest->TEST(rretval == KErrNone);
1.4495 +#ifdef PRINT_DATA
1.4496 +
1.4497 + _LIT(KOTitle, "Original");
1.4498 + _LIT(KLTitle, "Left-to-Right");
1.4499 + _LIT(KRTitle, "Right-to-Left");
1.4500 +
1.4501 +
1.4502 + PrintTestData(KOTitle, aOldText);
1.4503 + PrintTestData(KLTitle, lText, KBufferSize);
1.4504 + PrintTestData(KRTitle, rText, KBufferSize);
1.4505 +
1.4506 +#endif
1.4507 + aTest->TEST(TextInReverseOrder(lResult->Ptr(), lText, i));
1.4508 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.4509 +
1.4510 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4511 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4512 +
1.4513 + aOldText.SetLength(oldTextLength);
1.4514 + lResult->Des().SetLength(0);
1.4515 + rResult->Des().SetLength(0);
1.4516 + }
1.4517 + CleanupStack::PopAndDestroy(rResult);
1.4518 + CleanupStack::PopAndDestroy(lResult);
1.4519 + }
1.4520 +/**
1.4521 + *
1.4522 + * Tests what happens when Arabic and European numbers are surrounded by right-to-left letters
1.4523 + *
1.4524 + * @param "TDes& aOldText"
1.4525 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4526 + *
1.4527 + * @param "CTGraphicsBase* aTest"
1.4528 + * Pointer to the test object
1.4529 + *
1.4530 + */
1.4531 + static void RToLThenANThenENThenRToLTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4532 + {
1.4533 + TText* lText = 0;
1.4534 + TText* rText = 0;
1.4535 + TInt oldTextLength = aOldText.Length();
1.4536 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.4537 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.4538 +
1.4539 + // Now mix in some numbers
1.4540 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.4541 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4542 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4543 +
1.4544 + while (!rtolIterator.Wrapped())
1.4545 + {
1.4546 + TInt i;
1.4547 + TInt lasti = 0;
1.4548 + TUint ch0, ch1, ch2, ch3;
1.4549 + for (i = 0 ; i < KBufferSize-3; )
1.4550 + {
1.4551 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.4552 + break;
1.4553 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.4554 + break;
1.4555 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.4556 + break;
1.4557 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.4558 + break;
1.4559 +
1.4560 + lasti = i;
1.4561 + AppendCharacter(lResult, ch0);
1.4562 + AppendCharacter(lResult, ch2);
1.4563 + AppendCharacter(lResult, ch1);
1.4564 + AppendCharacter(lResult, ch3);
1.4565 +
1.4566 + AppendCharacter(rResult, ch0);
1.4567 + AppendCharacter(rResult, ch2);
1.4568 + AppendCharacter(rResult, ch1);
1.4569 + AppendCharacter(rResult, ch3);
1.4570 + }
1.4571 + i = lasti;
1.4572 + aOldText.SetLength(i);
1.4573 + ASSERT(lResult->Des().Length() == i);
1.4574 + ASSERT(rResult->Des().Length() == i);
1.4575 +
1.4576 + TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4577 + TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4578 +
1.4579 +#ifdef PRINT_DATA
1.4580 +
1.4581 + _LIT(KOTitle, "Original");
1.4582 + _LIT(KLTitle, "Left-to-Right");
1.4583 + _LIT(KRTitle, "Right-to-Left");
1.4584 +
1.4585 +
1.4586 + PrintTestData(KOTitle, aOldText);
1.4587 + PrintTestData(KLTitle, lText, KBufferSize);
1.4588 + PrintTestData(KRTitle, rText, KBufferSize);
1.4589 +
1.4590 +#endif
1.4591 + aTest->TEST(TextInReverseOrder(lResult->Ptr(), lText, i, aTest));
1.4592 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.4593 +
1.4594 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4595 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4596 + aOldText.SetLength(oldTextLength);
1.4597 + lResult->Des().SetLength(0);
1.4598 + rResult->Des().SetLength(0);
1.4599 + }
1.4600 + CleanupStack::PopAndDestroy(rResult);
1.4601 + CleanupStack::PopAndDestroy(lResult);
1.4602 + }
1.4603 +
1.4604 +/**
1.4605 + *
1.4606 + * Tests what happens when Arabic and European numbers are surrounded by right-to-left letters
1.4607 + *
1.4608 + * @param "TDes& aOldText"
1.4609 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4610 + *
1.4611 + * @param "CTGraphicsBase* aTest"
1.4612 + * Pointer to the test object
1.4613 + *
1.4614 + */
1.4615 + static void RToLThenENThenANThenRToLTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4616 + {
1.4617 + TText* lText = 0;
1.4618 + TText* rText = 0;
1.4619 + TInt lretval = KErrNone;
1.4620 + TInt rretval = KErrNone;
1.4621 + TInt oldTextLength = aOldText.Length();
1.4622 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.4623 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.4624 +
1.4625 + // Now mix in some numbers
1.4626 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.4627 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4628 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4629 +
1.4630 + while (!rtolIterator.Wrapped())
1.4631 + {
1.4632 + TInt i;
1.4633 + TInt lasti = 0;
1.4634 + TUint ch0, ch1, ch2, ch3;
1.4635 + for (i = 0 ; i < KBufferSize-3; )
1.4636 + {
1.4637 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.4638 + break;
1.4639 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.4640 + break;
1.4641 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.4642 + break;
1.4643 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.4644 + break;
1.4645 +
1.4646 + lasti = i;
1.4647 + AppendCharacter(lResult, ch0);
1.4648 + AppendCharacter(lResult, ch2);
1.4649 + AppendCharacter(lResult, ch1);
1.4650 + AppendCharacter(lResult, ch3);
1.4651 +
1.4652 + AppendCharacter(rResult, ch0);
1.4653 + AppendCharacter(rResult, ch2);
1.4654 + AppendCharacter(rResult, ch1);
1.4655 + AppendCharacter(rResult, ch3);
1.4656 + }
1.4657 + i = lasti;
1.4658 + aOldText.SetLength(i);
1.4659 + ASSERT(lResult->Des().Length() == i);
1.4660 + ASSERT(rResult->Des().Length() == i);
1.4661 +
1.4662 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4663 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4664 +
1.4665 + aTest->TEST(lretval == KErrNone);
1.4666 + aTest->TEST(rretval == KErrNone);
1.4667 +#ifdef PRINT_DATA
1.4668 +
1.4669 + _LIT(KOTitle, "Original");
1.4670 + _LIT(KLTitle, "Left-to-Right");
1.4671 + _LIT(KRTitle, "Right-to-Left");
1.4672 +
1.4673 +
1.4674 + PrintTestData(KOTitle, aOldText);
1.4675 + PrintTestData(KLTitle, lText, KBufferSize);
1.4676 + PrintTestData(KRTitle, rText, KBufferSize);
1.4677 +
1.4678 +#endif
1.4679 +
1.4680 + aTest->TEST(TextInReverseOrder(lResult->Ptr(), lText, i, aTest));
1.4681 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.4682 +
1.4683 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4684 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4685 +
1.4686 + aOldText.SetLength(oldTextLength);
1.4687 + lResult->Des().SetLength(0);
1.4688 + rResult->Des().SetLength(0);
1.4689 + }
1.4690 + CleanupStack::PopAndDestroy(rResult);
1.4691 + CleanupStack::PopAndDestroy(lResult);
1.4692 + }
1.4693 +/**
1.4694 + *
1.4695 + * Tests what happens when Arabic and European numbers are surrounded by Left to Right letters
1.4696 + *
1.4697 + * @param "TDes& aOldText"
1.4698 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4699 + *
1.4700 + * @param "CTGraphicsBase* aTest"
1.4701 + * Pointer to the test object
1.4702 + *
1.4703 + */
1.4704 + static void LToRThenANThenENThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4705 + {
1.4706 + TText* lText = 0;
1.4707 + TText* rText = 0;
1.4708 + TInt lretval = KErrNone;
1.4709 + TInt rretval = KErrNone;
1.4710 + TInt oldTextLength = aOldText.Length();
1.4711 +
1.4712 + // Now mix in some numbers
1.4713 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4714 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4715 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4716 +
1.4717 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4718 + while (!ltorIterator.Wrapped())
1.4719 + {
1.4720 + TInt i;
1.4721 +
1.4722 + for (i = 0 ; i < KBufferSize-3; )
1.4723 + {
1.4724 + if (!ltorIterator.NextCharInto(aOldText, i))
1.4725 + break;
1.4726 + if (!arabnIterator.NextCharInto(aOldText, i))
1.4727 + break;
1.4728 + if (!euronIterator.NextCharInto(aOldText, i))
1.4729 + break;
1.4730 + if (!ltorIterator.NextCharInto(aOldText, i))
1.4731 + break;
1.4732 + }
1.4733 + aOldText.SetLength(i);
1.4734 +
1.4735 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4736 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4737 +
1.4738 + aTest->TEST(lretval == KErrNone);
1.4739 + aTest->TEST(rretval == KErrNone);
1.4740 +#ifdef PRINT_DATA
1.4741 +
1.4742 + _LIT(KOTitle, "Original");
1.4743 + _LIT(KLTitle, "Left-to-Right");
1.4744 + _LIT(KRTitle, "Right-to-Left");
1.4745 +
1.4746 +
1.4747 + PrintTestData(KOTitle, aOldText);
1.4748 + PrintTestData(KLTitle, lText, KBufferSize);
1.4749 + PrintTestData(KRTitle, rText, KBufferSize);
1.4750 +
1.4751 +#endif
1.4752 +
1.4753 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, i));
1.4754 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), rText, i));
1.4755 +
1.4756 +
1.4757 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4758 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4759 +
1.4760 + aOldText.SetLength(oldTextLength);
1.4761 + }
1.4762 + }
1.4763 +
1.4764 +/**
1.4765 + *
1.4766 + * Tests what happens when Arabic and European numbers are surrounded by Left To Right letters
1.4767 + *
1.4768 + * @param "TDes& aOldText"
1.4769 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4770 + *
1.4771 + * @param "CTGraphicsBase* aTest"
1.4772 + * Pointer to the test object
1.4773 + *
1.4774 + */
1.4775 + static void LToRThenENThenANThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4776 + {
1.4777 + TText* lText = 0;
1.4778 + TText* rText = 0;
1.4779 + TInt lretval = KErrNone;
1.4780 + TInt rretval = KErrNone;
1.4781 + TInt oldTextLength = aOldText.Length();
1.4782 +
1.4783 + // Now mix in some numbers
1.4784 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4785 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4786 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4787 +
1.4788 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4789 +
1.4790 + while (!ltorIterator.Wrapped())
1.4791 + {
1.4792 + TInt i;
1.4793 +
1.4794 + for (i = 0 ; i < KBufferSize-3; )
1.4795 + {
1.4796 + if (!ltorIterator.NextCharInto(aOldText, i))
1.4797 + break;
1.4798 + if (!arabnIterator.NextCharInto(aOldText, i))
1.4799 + break;
1.4800 + if (!euronIterator.NextCharInto(aOldText, i))
1.4801 + break;
1.4802 + if (!ltorIterator.NextCharInto(aOldText, i))
1.4803 + break;
1.4804 + }
1.4805 + aOldText.SetLength(i);
1.4806 +
1.4807 +
1.4808 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4809 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4810 +
1.4811 +
1.4812 + aTest->TEST(lretval == KErrNone);
1.4813 + aTest->TEST(rretval == KErrNone);
1.4814 +
1.4815 +#ifdef PRINT_DATA
1.4816 +
1.4817 + _LIT(KOTitle, "Original");
1.4818 + _LIT(KLTitle, "Left-to-Right");
1.4819 + _LIT(KRTitle, "Right-to-Left");
1.4820 +
1.4821 +
1.4822 + PrintTestData(KOTitle, aOldText);
1.4823 + PrintTestData(KLTitle, lText, KBufferSize);
1.4824 + PrintTestData(KRTitle, rText, KBufferSize);
1.4825 +
1.4826 +#endif
1.4827 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, i));
1.4828 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), rText, i));
1.4829 +
1.4830 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4831 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4832 +
1.4833 + aOldText.SetLength(oldTextLength);
1.4834 + }
1.4835 + }
1.4836 +
1.4837 +/**
1.4838 + *
1.4839 + * Tests what happens when Arabic and European numbers are preceded by Left To Right
1.4840 + * and succeeded by Right To Left letters
1.4841 + *
1.4842 + * @param "TDes& aOldText"
1.4843 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4844 + *
1.4845 + * @param "CTGraphicsBase* aTest"
1.4846 + * Pointer to the test object
1.4847 + *
1.4848 + */
1.4849 + static void LToRThenANThenENThenRToLTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4850 + {
1.4851 + TText* lText = 0;
1.4852 + TText* rText = 0;
1.4853 + TInt lretval = KErrNone;
1.4854 + TInt rretval = KErrNone;
1.4855 + TInt oldTextLength = aOldText.Length();
1.4856 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.4857 +
1.4858 + // Now mix in some numbers
1.4859 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4860 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4861 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4862 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.4863 +
1.4864 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.4865 +
1.4866 + while (!ltorIterator.Wrapped())
1.4867 + {
1.4868 + TInt i;
1.4869 + TInt lasti = 0;
1.4870 + TUint ch0, ch1, ch2, ch3;
1.4871 + for (i = 0 ; i < KBufferSize-3; )
1.4872 + {
1.4873 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.4874 + break;
1.4875 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.4876 + break;
1.4877 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.4878 + break;
1.4879 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.4880 + break;
1.4881 + lasti = i;
1.4882 + AppendCharacter(rResult, ch2);
1.4883 + AppendCharacter(rResult, ch1);
1.4884 + AppendCharacter(rResult, ch0);
1.4885 + AppendCharacter(rResult, ch3);
1.4886 + }
1.4887 + i = lasti;
1.4888 + aOldText.SetLength(i);
1.4889 + ASSERT(rResult->Des().Length() == i);
1.4890 +
1.4891 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4892 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4893 +
1.4894 + aTest->TEST(lretval == KErrNone);
1.4895 + aTest->TEST(rretval == KErrNone);
1.4896 +
1.4897 +#ifdef PRINT_DATA
1.4898 +
1.4899 + _LIT(KOTitle, "Original");
1.4900 + _LIT(KLTitle, "Left-to-Right");
1.4901 + _LIT(KRTitle, "Right-to-Left");
1.4902 +
1.4903 +
1.4904 + PrintTestData(KOTitle, aOldText);
1.4905 + PrintTestData(KLTitle, lText, KBufferSize);
1.4906 + PrintTestData(KRTitle, rText, KBufferSize);
1.4907 +
1.4908 +#endif
1.4909 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, i));
1.4910 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.4911 +
1.4912 + DeleteText(aOldText.Ptr(), lText, aTest);
1.4913 + DeleteText(aOldText.Ptr(), rText, aTest);
1.4914 +
1.4915 + aOldText.SetLength(oldTextLength);
1.4916 + rResult->Des().SetLength(0);
1.4917 + }
1.4918 + CleanupStack::PopAndDestroy(rResult);
1.4919 + }
1.4920 +
1.4921 +/**
1.4922 + *
1.4923 + * Tests what happens when Arabic and European numbers are preceded by Left To Right
1.4924 + * and succeeded by Right To Left letters
1.4925 + *
1.4926 + * @param "TDes& aOldText"
1.4927 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.4928 + *
1.4929 + * @param "CTGraphicsBase* aTest"
1.4930 + * Pointer to the test object
1.4931 + *
1.4932 + */
1.4933 + static void LToRThenENThenANThenRToLTest(TDes& aOldText, CTGraphicsBase* aTest)
1.4934 + {
1.4935 + TText* lText = 0;
1.4936 + TText* rText = 0;
1.4937 + TInt lretval = KErrNone;
1.4938 + TInt rretval = KErrNone;
1.4939 + TInt oldTextLength = aOldText.Length();
1.4940 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.4941 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.4942 +
1.4943 + // Now mix in some numbers
1.4944 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.4945 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.4946 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.4947 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.4948 +
1.4949 + while (!ltorIterator.Wrapped())
1.4950 + {
1.4951 + TInt i;
1.4952 + TInt lasti = 0;
1.4953 + TUint ch0, ch1, ch2, ch3;
1.4954 + for (i = 0 ; i < KBufferSize-3; )
1.4955 + {
1.4956 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.4957 + break;
1.4958 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.4959 + break;
1.4960 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.4961 + break;
1.4962 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.4963 + break;
1.4964 +
1.4965 + lasti = i;
1.4966 + AppendCharacter(lResult, ch0);
1.4967 + AppendCharacter(lResult, ch1);
1.4968 + AppendCharacter(lResult, ch3);
1.4969 + AppendCharacter(lResult, ch2);
1.4970 +
1.4971 + AppendCharacter(rResult, ch2);
1.4972 + AppendCharacter(rResult, ch1);
1.4973 + AppendCharacter(rResult, ch0);
1.4974 + AppendCharacter(rResult, ch3);
1.4975 + }
1.4976 + i = lasti;
1.4977 + aOldText.SetLength(i);
1.4978 + ASSERT(lResult->Des().Length() == i);
1.4979 + ASSERT(rResult->Des().Length() == i);
1.4980 +
1.4981 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.4982 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.4983 + aTest->TEST(lretval == KErrNone);
1.4984 + aTest->TEST(rretval == KErrNone);
1.4985 +
1.4986 +#ifdef PRINT_DATA
1.4987 +
1.4988 + _LIT(KOTitle, "Original");
1.4989 + _LIT(KLTitle, "Left-to-Right");
1.4990 + _LIT(KRTitle, "Right-to-Left");
1.4991 +
1.4992 +
1.4993 + PrintTestData(KOTitle, aOldText);
1.4994 + PrintTestData(KLTitle, lText, KBufferSize);
1.4995 + PrintTestData(KRTitle, rText, KBufferSize);
1.4996 +
1.4997 +#endif
1.4998 + aTest->TEST(TextInSameOrder(lResult->Ptr(), lText, i));
1.4999 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5000 +
1.5001 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5002 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5003 + aOldText.SetLength(oldTextLength);
1.5004 + lResult->Des().SetLength(0);
1.5005 + rResult->Des().SetLength(0);
1.5006 + }
1.5007 + CleanupStack::PopAndDestroy(rResult);
1.5008 + CleanupStack::PopAndDestroy(lResult);
1.5009 + }
1.5010 +/**
1.5011 + *
1.5012 + * Tests what happens when Arabic and European numbers are preceded by Left To Right
1.5013 + * and succeeded by Right To Left Arabic letters
1.5014 + *
1.5015 + * @param "TDes& aOldText"
1.5016 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5017 + *
1.5018 + * @param "CTGraphicsBase* aTest"
1.5019 + * Pointer to the test object
1.5020 + *
1.5021 + */
1.5022 + static void LToRThenANThenENThenRToLATest(TDes& aOldText, CTGraphicsBase* aTest)
1.5023 + {
1.5024 + TText* lText = 0;
1.5025 + TText* rText = 0;
1.5026 + TInt lretval = KErrNone;
1.5027 + TInt rretval = KErrNone;
1.5028 + TInt oldTextLength = aOldText.Length();
1.5029 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.5030 +
1.5031 + // Now mix in some numbers
1.5032 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.5033 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5034 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5035 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.5036 +
1.5037 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.5038 +
1.5039 + while (!ltorIterator.Wrapped())
1.5040 + {
1.5041 + TInt i;
1.5042 + TInt lasti = 0;
1.5043 + TUint ch0, ch1, ch2, ch3;
1.5044 +
1.5045 + for (i = 0 ; i < KBufferSize-3; )
1.5046 + {
1.5047 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.5048 + break;
1.5049 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.5050 + break;
1.5051 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.5052 + break;
1.5053 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.5054 + break;
1.5055 +
1.5056 + lasti = i;
1.5057 + AppendCharacter(rResult, ch2);
1.5058 + AppendCharacter(rResult, ch1);
1.5059 + AppendCharacter(rResult, ch0);
1.5060 + AppendCharacter(rResult, ch3);
1.5061 + }
1.5062 + i = lasti;
1.5063 + aOldText.SetLength(i);
1.5064 + ASSERT(rResult->Des().Length() == i);
1.5065 +
1.5066 +
1.5067 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5068 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5069 +
1.5070 + aTest->TEST(lretval == KErrNone);
1.5071 + aTest->TEST(rretval == KErrNone);
1.5072 +
1.5073 +#ifdef PRINT_DATA
1.5074 +
1.5075 + _LIT(KOTitleT, "Original (Top)");
1.5076 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5077 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5078 + _LIT(KOTitleB, "Original (Bottom)");
1.5079 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5080 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5081 +
1.5082 +
1.5083 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5084 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5085 +
1.5086 + PrintTestData(KLTitleT, lText, 32);
1.5087 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5088 +
1.5089 + PrintTestData(KRTitleT, rText, 32);
1.5090 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5091 +
1.5092 +#endif
1.5093 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, i));
1.5094 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5095 +
1.5096 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5097 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5098 +
1.5099 + aOldText.SetLength(oldTextLength);
1.5100 + rResult->Des().SetLength(0);
1.5101 + }
1.5102 + CleanupStack::PopAndDestroy(rResult);
1.5103 + }
1.5104 +/**
1.5105 + *
1.5106 + * Tests what happens when Arabic and European numbers are preceded by Left To Right
1.5107 + * and succeeded by Right To Left Arabic letters
1.5108 + *
1.5109 + * @param "TDes& aOldText"
1.5110 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5111 + *
1.5112 + * @param "CTGraphicsBase* aTest"
1.5113 + * Pointer to the test object
1.5114 + *
1.5115 + */
1.5116 + static void LToRThenENThenANThenRToLATest(TDes& aOldText, CTGraphicsBase* aTest)
1.5117 + {
1.5118 + TText* lText = 0;
1.5119 + TText* rText = 0;
1.5120 + TInt lretval = KErrNone;
1.5121 + TInt rretval = KErrNone;
1.5122 + TInt oldTextLength = aOldText.Length();
1.5123 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.5124 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.5125 +
1.5126 + // Now mix in some numbers
1.5127 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.5128 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5129 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5130 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.5131 +
1.5132 + while (!ltorIterator.Wrapped())
1.5133 + {
1.5134 + TInt i;
1.5135 + TInt lasti = 0;
1.5136 + TUint ch0, ch1, ch2, ch3;
1.5137 + for (i = 0 ; i < KBufferSize-3; )
1.5138 + {
1.5139 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.5140 + break;
1.5141 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.5142 + break;
1.5143 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.5144 + break;
1.5145 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.5146 + break;
1.5147 +
1.5148 + lasti = i;
1.5149 + AppendCharacter(lResult, ch0);
1.5150 + AppendCharacter(lResult, ch1);
1.5151 + AppendCharacter(lResult, ch3);
1.5152 + AppendCharacter(lResult, ch2);
1.5153 +
1.5154 + AppendCharacter(rResult, ch2);
1.5155 + AppendCharacter(rResult, ch1);
1.5156 + AppendCharacter(rResult, ch0);
1.5157 + AppendCharacter(rResult, ch3);
1.5158 + }
1.5159 + i = lasti;
1.5160 + aOldText.SetLength(i);
1.5161 + ASSERT(lResult->Des().Length() == i);
1.5162 + ASSERT(rResult->Des().Length() == i);
1.5163 +
1.5164 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5165 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5166 +
1.5167 + aTest->TEST(lretval == KErrNone);
1.5168 + aTest->TEST(rretval == KErrNone);
1.5169 +
1.5170 +#ifdef PRINT_DATA
1.5171 + _LIT(KOTitleT, "Original (Top)");
1.5172 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5173 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5174 + _LIT(KOTitleB, "Original (Bottom)");
1.5175 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5176 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5177 +
1.5178 +
1.5179 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5180 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5181 +
1.5182 + PrintTestData(KLTitleT, lText, 32);
1.5183 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5184 +
1.5185 + PrintTestData(KRTitleT, rText, 32);
1.5186 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5187 +
1.5188 +#endif
1.5189 + aTest->TEST(TextInSameOrder(lResult->Ptr(), lText, i));
1.5190 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5191 +
1.5192 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5193 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5194 +
1.5195 + aOldText.SetLength(oldTextLength);
1.5196 + lResult->Des().SetLength(0);
1.5197 + rResult->Des().SetLength(0);
1.5198 + }
1.5199 + CleanupStack::PopAndDestroy(rResult);
1.5200 + CleanupStack::PopAndDestroy(lResult);
1.5201 + }
1.5202 +/**
1.5203 + *
1.5204 + * Tests what happens when Arabic and European numbers are preceded by Right to Left
1.5205 + * and succeeded by Left To Right letters
1.5206 + *
1.5207 + * @param "TDes& aOldText"
1.5208 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5209 + *
1.5210 + * @param "CTGraphicsBase* aTest"
1.5211 + * Pointer to the test object
1.5212 + *
1.5213 + */
1.5214 + static void RToLThenANThenENThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5215 + {
1.5216 + TText* lText = 0;
1.5217 + TText* rText = 0;
1.5218 + TInt lretval = KErrNone;
1.5219 + TInt rretval = KErrNone;
1.5220 + TInt oldTextLength = aOldText.Length();
1.5221 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.5222 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.5223 +
1.5224 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-L AN EN L-R test\r\n"));
1.5225 +
1.5226 + // Now mix in some numbers
1.5227 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.5228 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5229 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5230 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.5231 +
1.5232 + while (!ltorIterator.Wrapped())
1.5233 + {
1.5234 + TInt i;
1.5235 + TInt lasti = 0;
1.5236 + TUint ch0, ch1, ch2, ch3;
1.5237 + for (i = 0 ; i < KBufferSize-3; )
1.5238 + {
1.5239 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.5240 + break;
1.5241 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.5242 + break;
1.5243 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.5244 + break;
1.5245 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.5246 + break;
1.5247 +
1.5248 + lasti = i;
1.5249 + AppendCharacter(lResult, ch1);
1.5250 + AppendCharacter(lResult, ch2);
1.5251 + AppendCharacter(lResult, ch0);
1.5252 + AppendCharacter(lResult, ch3);
1.5253 +
1.5254 + AppendCharacter(rResult, ch0);
1.5255 + AppendCharacter(rResult, ch3);
1.5256 + AppendCharacter(rResult, ch2);
1.5257 + AppendCharacter(rResult, ch1);
1.5258 + }
1.5259 + i = lasti;
1.5260 + aOldText.SetLength(i);
1.5261 + ASSERT(lResult->Des().Length() == i);
1.5262 + ASSERT(rResult->Des().Length() == i);
1.5263 +
1.5264 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5265 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5266 + aTest->TEST(lretval == KErrNone);
1.5267 + aTest->TEST(rretval == KErrNone);
1.5268 +#ifdef PRINT_DATA
1.5269 + _LIT(KOTitleT, "Original (Top)");
1.5270 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5271 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5272 + _LIT(KOTitleB, "Original (Bottom)");
1.5273 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5274 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5275 +
1.5276 +
1.5277 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5278 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5279 +
1.5280 + PrintTestData(KLTitleT, lText, 32);
1.5281 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5282 +
1.5283 + PrintTestData(KRTitleT, rText, 32);
1.5284 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5285 +
1.5286 +#endif
1.5287 +
1.5288 + aTest->TEST(TextInSameOrder(lResult->Ptr(), lText, i));
1.5289 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5290 +
1.5291 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5292 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5293 +
1.5294 + aOldText.SetLength(oldTextLength);
1.5295 + lResult->Des().SetLength(0);
1.5296 + rResult->Des().SetLength(0);
1.5297 + }
1.5298 + CleanupStack::PopAndDestroy(rResult);
1.5299 + CleanupStack::PopAndDestroy(lResult);
1.5300 + }
1.5301 +
1.5302 +/**
1.5303 + *
1.5304 + * Tests what happens when Arabic and European numbers are preceded by Right to Left
1.5305 + * and succeeded by Left To Right letters
1.5306 + *
1.5307 + * @param "TDes& aOldText"
1.5308 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5309 + *
1.5310 + * @param "CTGraphicsBase* aTest"
1.5311 + * Pointer to the test object
1.5312 + *
1.5313 + */
1.5314 + static void RToLThenENThenANThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5315 + {
1.5316 + TText* lText = 0;
1.5317 + TText* rText = 0;
1.5318 + TInt lretval = KErrNone;
1.5319 + TInt rretval = KErrNone;
1.5320 + TInt oldTextLength = aOldText.Length();
1.5321 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.5322 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.5323 +
1.5324 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-L EN AN L-R test\r\n"));
1.5325 +
1.5326 + // Now mix in some numbers
1.5327 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.5328 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5329 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5330 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.5331 +
1.5332 + while (!ltorIterator.Wrapped())
1.5333 + {
1.5334 + TInt i;
1.5335 + TInt lasti = 0;
1.5336 + TUint ch0, ch1, ch2, ch3;
1.5337 + for (i = 0 ; i < KBufferSize-3; )
1.5338 + {
1.5339 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.5340 + break;
1.5341 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.5342 + break;
1.5343 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.5344 + break;
1.5345 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.5346 + break;
1.5347 +
1.5348 + lasti = i;
1.5349 + AppendCharacter(lResult, ch1);
1.5350 + AppendCharacter(lResult, ch2);
1.5351 + AppendCharacter(lResult, ch0);
1.5352 + AppendCharacter(lResult, ch3);
1.5353 +
1.5354 + AppendCharacter(rResult, ch0);
1.5355 + AppendCharacter(rResult, ch3);
1.5356 + AppendCharacter(rResult, ch2);
1.5357 + AppendCharacter(rResult, ch1);
1.5358 + }
1.5359 + i = lasti;
1.5360 + aOldText.SetLength(i);
1.5361 + ASSERT(lResult->Des().Length() == i);
1.5362 + ASSERT(rResult->Des().Length() == i);
1.5363 +
1.5364 +
1.5365 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5366 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5367 +
1.5368 + aTest->TEST(lretval == KErrNone);
1.5369 + aTest->TEST(rretval == KErrNone);
1.5370 +#ifdef PRINT_DATA
1.5371 + _LIT(KOTitleT, "Original (Top)");
1.5372 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5373 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5374 + _LIT(KOTitleB, "Original (Bottom)");
1.5375 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5376 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5377 +
1.5378 +
1.5379 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5380 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5381 +
1.5382 + PrintTestData(KLTitleT, lText, 32);
1.5383 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5384 +
1.5385 + PrintTestData(KRTitleT, rText, 32);
1.5386 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5387 +
1.5388 +#endif
1.5389 +
1.5390 + aTest->TEST(TextInSameOrder(lResult->Ptr(), lText, i));
1.5391 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5392 +
1.5393 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5394 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5395 +
1.5396 + aOldText.SetLength(oldTextLength);
1.5397 + lResult->Des().SetLength(0);
1.5398 + rResult->Des().SetLength(0);
1.5399 + }
1.5400 + CleanupStack::PopAndDestroy(rResult);
1.5401 + CleanupStack::PopAndDestroy(lResult);
1.5402 + }
1.5403 +/**
1.5404 + *
1.5405 + * Tests what happens when Arabic and European numbers are preceded by Right to Left Arabic
1.5406 + * and succeeded by Left To Right letters
1.5407 + *
1.5408 + * @param "TDes& aOldText"
1.5409 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5410 + *
1.5411 + * @param "CTGraphicsBase* aTest"
1.5412 + * Pointer to the test object
1.5413 + *
1.5414 + */
1.5415 + static void RToLAThenANThenENThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5416 + {
1.5417 + TText* lText = 0;
1.5418 + TText* rText = 0;
1.5419 + TInt lretval = KErrNone;
1.5420 + TInt rretval = KErrNone;
1.5421 + TInt oldTextLength = aOldText.Length();
1.5422 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.5423 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.5424 +
1.5425 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-LA AN EN L-R test\r\n"));
1.5426 +
1.5427 + // Now mix in some numbers
1.5428 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.5429 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5430 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5431 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.5432 +
1.5433 + while (!ltorIterator.Wrapped())
1.5434 + {
1.5435 + TInt i;
1.5436 + TInt lasti = 0;
1.5437 + TUint ch0, ch1, ch2, ch3;
1.5438 + for (i = 0 ; i < KBufferSize-3; )
1.5439 + {
1.5440 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.5441 + break;
1.5442 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.5443 + break;
1.5444 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.5445 + break;
1.5446 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.5447 + break;
1.5448 +
1.5449 + lasti = i;
1.5450 + AppendCharacter(lResult, ch1);
1.5451 + AppendCharacter(lResult, ch2);
1.5452 + AppendCharacter(lResult, ch0);
1.5453 + AppendCharacter(lResult, ch3);
1.5454 +
1.5455 + AppendCharacter(rResult, ch0);
1.5456 + AppendCharacter(rResult, ch3);
1.5457 + AppendCharacter(rResult, ch2);
1.5458 + AppendCharacter(rResult, ch1);
1.5459 + }
1.5460 + i = lasti;
1.5461 + aOldText.SetLength(i);
1.5462 + ASSERT(lResult->Des().Length() == i);
1.5463 + ASSERT(rResult->Des().Length() == i);
1.5464 +
1.5465 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5466 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5467 +
1.5468 + aTest->TEST(lretval == KErrNone);
1.5469 + aTest->TEST(rretval == KErrNone);
1.5470 +#ifdef PRINT_DATA
1.5471 + _LIT(KOTitleT, "Original (Top)");
1.5472 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5473 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5474 + _LIT(KOTitleB, "Original (Bottom)");
1.5475 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5476 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5477 +
1.5478 +
1.5479 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5480 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5481 +
1.5482 + PrintTestData(KLTitleT, lText, 32);
1.5483 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5484 +
1.5485 + PrintTestData(KRTitleT, rText, 32);
1.5486 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5487 +
1.5488 +#endif
1.5489 +
1.5490 + aTest->TEST(TextInSameOrder(lResult->Ptr(), lText, i));
1.5491 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5492 +
1.5493 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5494 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5495 +
1.5496 + aOldText.SetLength(oldTextLength);
1.5497 + lResult->Des().SetLength(0);
1.5498 + rResult->Des().SetLength(0);
1.5499 + }
1.5500 + CleanupStack::PopAndDestroy(rResult);
1.5501 + CleanupStack::PopAndDestroy(lResult);
1.5502 + }
1.5503 +
1.5504 +/**
1.5505 + *
1.5506 + * Tests what happens when Arabic and European numbers are preceded by Right to Left Arabic
1.5507 + * and succeeded by Left To Right letters
1.5508 + *
1.5509 + * @param "TDes& aOldText"
1.5510 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5511 + *
1.5512 + * @param "CTGraphicsBase* aTest"
1.5513 + * Pointer to the test object
1.5514 + *
1.5515 + */
1.5516 + static void RToLAThenENThenANThenLToRTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5517 + {
1.5518 + TText* lText = 0;
1.5519 + TText* rText = 0;
1.5520 + TInt lretval = KErrNone;
1.5521 + TInt rretval = KErrNone;
1.5522 + TInt oldTextLength = aOldText.Length();
1.5523 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.5524 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.5525 +
1.5526 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-LA EN AN L-R test\r\n"));
1.5527 +
1.5528 + // Now mix in some numbers
1.5529 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.5530 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5531 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5532 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.5533 +
1.5534 + while (!ltorIterator.Wrapped())
1.5535 + {
1.5536 + TInt i;
1.5537 + TInt lasti = 0;
1.5538 + TUint ch0, ch1, ch2, ch3;
1.5539 + for (i = 0 ; i < KBufferSize-3; )
1.5540 + {
1.5541 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.5542 + break;
1.5543 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.5544 + break;
1.5545 + if (!arabnIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.5546 + break;
1.5547 + if (!ltorIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.5548 + break;
1.5549 +
1.5550 + lasti = i;
1.5551 + AppendCharacter(lResult, ch1);
1.5552 + AppendCharacter(lResult, ch2);
1.5553 + AppendCharacter(lResult, ch0);
1.5554 + AppendCharacter(lResult, ch3);
1.5555 +
1.5556 + AppendCharacter(rResult, ch0);
1.5557 + AppendCharacter(rResult, ch3);
1.5558 + AppendCharacter(rResult, ch2);
1.5559 + AppendCharacter(rResult, ch1);
1.5560 + }
1.5561 + i = lasti;
1.5562 + aOldText.SetLength(i);
1.5563 + ASSERT(lResult->Des().Length() == i);
1.5564 + ASSERT(rResult->Des().Length() == i);
1.5565 +
1.5566 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5567 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5568 +
1.5569 + aTest->TEST(lretval == KErrNone);
1.5570 + aTest->TEST(rretval == KErrNone);
1.5571 +#ifdef PRINT_DATA
1.5572 + _LIT(KOTitleT, "Original (Top)");
1.5573 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5574 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5575 + _LIT(KOTitleB, "Original (Bottom)");
1.5576 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5577 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5578 +
1.5579 +
1.5580 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5581 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5582 +
1.5583 + PrintTestData(KLTitleT, lText, 32);
1.5584 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5585 +
1.5586 + PrintTestData(KRTitleT, rText, 32);
1.5587 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5588 +
1.5589 +#endif
1.5590 +
1.5591 + aTest->TEST(TextInSameOrder(lResult->Ptr(), lText, i));
1.5592 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5593 +
1.5594 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5595 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5596 +
1.5597 + aOldText.SetLength(oldTextLength);
1.5598 + lResult->Des().SetLength(0);
1.5599 + rResult->Des().SetLength(0);
1.5600 + }
1.5601 + CleanupStack::PopAndDestroy(rResult);
1.5602 + CleanupStack::PopAndDestroy(lResult);
1.5603 + }
1.5604 +
1.5605 +/**
1.5606 + *
1.5607 + * Tests what happens to European Terminators in a pair of European Numbers
1.5608 + * when the first character is a Right To Left letter
1.5609 + *
1.5610 + * @param "TDes& aOldText"
1.5611 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5612 + *
1.5613 + * @param "CTGraphicsBase* aTest"
1.5614 + * Pointer to the test object
1.5615 + *
1.5616 + */
1.5617 + static void RToLThenENThenETThenENTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5618 + {
1.5619 + TText* lText = 0;
1.5620 + TText* rText = 0;
1.5621 + TInt lretval = KErrNone;
1.5622 + TInt rretval = KErrNone;
1.5623 + TInt oldTextLength = aOldText.Length();
1.5624 + HBufC *lResult = HBufC::NewLC(KBufferSize);
1.5625 + HBufC *rResult = HBufC::NewLC(KBufferSize);
1.5626 +
1.5627 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-L EN ET EN test\r\n"));
1.5628 +
1.5629 + // Now mix in some numbers
1.5630 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.5631 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5632 + TextIterator eurotIterator(KEuropeanNumberTerminator, KEuropeanNumberTerminatorLength);
1.5633 +
1.5634 + while(!rtolIterator.Wrapped())
1.5635 + {
1.5636 + TInt i;
1.5637 + TInt lasti = 0;
1.5638 + TUint ch0, ch1, ch2, ch3;
1.5639 + for (i = 0 ; i < KBufferSize-3; )
1.5640 + {
1.5641 + if (!rtolIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch0))
1.5642 + break;
1.5643 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch1))
1.5644 + break;
1.5645 + if (!eurotIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch2))
1.5646 + break;
1.5647 + if (!euronIterator.NextCharInto(aOldText, i, -1, ETrue, ETrue, &ch3))
1.5648 + break;
1.5649 +
1.5650 + lasti = i;
1.5651 + AppendCharacter(lResult, ch0);
1.5652 + AppendCharacter(lResult, ch3);
1.5653 + AppendCharacter(lResult, ch2);
1.5654 + AppendCharacter(lResult, ch1);
1.5655 +
1.5656 + AppendCharacter(rResult, ch0);
1.5657 + AppendCharacter(rResult, ch3);
1.5658 + AppendCharacter(rResult, ch2);
1.5659 + AppendCharacter(rResult, ch1);
1.5660 + }
1.5661 + i = lasti;
1.5662 + aOldText.SetLength(i);
1.5663 + ASSERT(lResult->Des().Length() == i);
1.5664 + ASSERT(rResult->Des().Length() == i);
1.5665 +
1.5666 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5667 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5668 +
1.5669 + aTest->TEST(lretval == KErrNone);
1.5670 + aTest->TEST(rretval == KErrNone);
1.5671 +#ifdef PRINT_DATA
1.5672 + _LIT(KOTitleT, "Original (Top)");
1.5673 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5674 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5675 + _LIT(KOTitleB, "Original (Bottom)");
1.5676 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5677 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5678 +
1.5679 +
1.5680 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5681 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5682 +
1.5683 + PrintTestData(KLTitleT, lText, 32);
1.5684 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5685 +
1.5686 + PrintTestData(KRTitleT, rText, 32);
1.5687 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5688 +
1.5689 +#endif
1.5690 + aTest->TEST(TextInReverseOrder(lResult->Ptr(), lText, i));
1.5691 + aTest->TEST(TextInReverseOrder(rResult->Ptr(), rText, i, aTest));
1.5692 +
1.5693 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5694 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5695 +
1.5696 + aOldText.SetLength(oldTextLength);
1.5697 + lResult->Des().SetLength(0);
1.5698 + rResult->Des().SetLength(0);
1.5699 + }
1.5700 + CleanupStack::PopAndDestroy(rResult);
1.5701 + CleanupStack::PopAndDestroy(lResult);
1.5702 + }
1.5703 +/**
1.5704 + *
1.5705 + * Tests what happens to European Terminators in a pair of Arabic Numbers
1.5706 + * when the first character is a Right To Left letter
1.5707 + *
1.5708 + * @param "TDes& aOldText"
1.5709 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5710 + *
1.5711 + * @param "CTGraphicsBase* aTest"
1.5712 + * Pointer to the test object
1.5713 + *
1.5714 + */
1.5715 + static void RToLThenANThenETThenANTest(TDes& aOldText, CTGraphicsBase *aTest)
1.5716 + {
1.5717 + TText* lText = 0;
1.5718 + TText* rText = 0;
1.5719 + TInt lretval = KErrNone;
1.5720 + TInt rretval = KErrNone;
1.5721 + TInt oldTextLength = aOldText.Length();
1.5722 +
1.5723 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-L AN ET AN test\r\n"));
1.5724 +
1.5725 + // Now mix in some numbers
1.5726 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.5727 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5728 + TextIterator eurotIterator(KEuropeanNumberTerminator, KEuropeanNumberTerminatorLength);
1.5729 +
1.5730 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.5731 +
1.5732 + while(!rtolIterator.Wrapped())
1.5733 + {
1.5734 + TInt i;
1.5735 + for (i = 0 ; i < KBufferSize-3; )
1.5736 + {
1.5737 + if (!rtolIterator.NextCharInto(aOldText, i))
1.5738 + break;
1.5739 + if (!arabnIterator.NextCharInto(aOldText, i))
1.5740 + break;
1.5741 + if (!eurotIterator.NextCharInto(aOldText, i))
1.5742 + break;
1.5743 + if (!arabnIterator.NextCharInto(aOldText, i))
1.5744 + break;
1.5745 + }
1.5746 + aOldText.SetLength(i);
1.5747 +
1.5748 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5749 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5750 +
1.5751 + aTest->TEST(lretval == KErrNone);
1.5752 + aTest->TEST(rretval == KErrNone);
1.5753 +#ifdef PRINT_DATA
1.5754 + _LIT(KOTitleT, "Original (Top)");
1.5755 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5756 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5757 + _LIT(KOTitleB, "Original (Bottom)");
1.5758 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5759 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5760 +
1.5761 +
1.5762 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5763 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5764 +
1.5765 + PrintTestData(KLTitleT, lText, 32);
1.5766 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5767 +
1.5768 + PrintTestData(KRTitleT, rText, 32);
1.5769 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5770 +
1.5771 +#endif
1.5772 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, i));
1.5773 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), rText, i));
1.5774 +
1.5775 +
1.5776 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5777 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5778 +
1.5779 + aOldText.SetLength(oldTextLength);
1.5780 + }
1.5781 + }
1.5782 +/**
1.5783 + *
1.5784 + * Tests what happens to European Terminators in a pair of European Numbers
1.5785 + * when the first character is a Right To Left Arabic letter
1.5786 + *
1.5787 + * @param "TDes& aOldText"
1.5788 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5789 + *
1.5790 + * @param "CTGraphicsBase* aTest"
1.5791 + * Pointer to the test object
1.5792 + *
1.5793 + */
1.5794 + static void RToLAThenENThenETThenENTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5795 + {
1.5796 + TText* lText = 0;
1.5797 + TText* rText = 0;
1.5798 + TInt lretval = KErrNone;
1.5799 + TInt rretval = KErrNone;
1.5800 + TInt oldTextLength = aOldText.Length();
1.5801 +
1.5802 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-LA EN ET EN test\r\n"));
1.5803 +
1.5804 + // Now mix in some numbers
1.5805 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.5806 + TextIterator euronIterator(KEuropeanNumber, KEuropeanNumberLength);
1.5807 + TextIterator eurotIterator(KEuropeanNumberTerminator, KEuropeanNumberTerminatorLength);
1.5808 +
1.5809 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.5810 +
1.5811 + while(!rtolIterator.Wrapped())
1.5812 + {
1.5813 + TInt i;
1.5814 +
1.5815 + TInt lasti = 0;
1.5816 + for (i = 0 ; i < KBufferSize-3; )
1.5817 + {
1.5818 + if (!rtolIterator.NextCharInto(aOldText, i))
1.5819 + break;
1.5820 + if (!euronIterator.NextCharInto(aOldText, i))
1.5821 + break;
1.5822 + if (!eurotIterator.NextCharInto(aOldText, i))
1.5823 + break;
1.5824 + if (!euronIterator.NextCharInto(aOldText, i))
1.5825 + break;
1.5826 + lasti = i;
1.5827 + }
1.5828 + i = lasti;
1.5829 + aOldText.SetLength(i);
1.5830 +
1.5831 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaRToL, rText);
1.5832 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), i, EParaLToR, lText);
1.5833 +
1.5834 + aTest->TEST(lretval == KErrNone);
1.5835 + aTest->TEST(rretval == KErrNone);
1.5836 +#ifdef PRINT_DATA
1.5837 + _LIT(KOTitleT, "Original (Top)");
1.5838 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5839 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5840 + _LIT(KOTitleB, "Original (Bottom)");
1.5841 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5842 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5843 +
1.5844 +
1.5845 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5846 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5847 +
1.5848 + PrintTestData(KLTitleT, lText, 32);
1.5849 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5850 +
1.5851 + PrintTestData(KRTitleT, rText, 32);
1.5852 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5853 +
1.5854 +#endif
1.5855 +
1.5856 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, i));
1.5857 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), rText, i));
1.5858 +
1.5859 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5860 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5861 +
1.5862 + aOldText.SetLength(oldTextLength);
1.5863 + }
1.5864 + }
1.5865 +/**
1.5866 + *
1.5867 + * Tests what happens to European Terminators in a pair of Arabic Numbers
1.5868 + * when the first character is a Right To Left Arabic letter
1.5869 + *
1.5870 + * @param "TDes& aOldText"
1.5871 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5872 + *
1.5873 + * @param "CTGraphicsBase* aTest"
1.5874 + * Pointer to the test object
1.5875 + *
1.5876 + */
1.5877 + static void RToLAThenANThenETThenANTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5878 + {
1.5879 + TText* lText = 0;
1.5880 + TText* rText = 0;
1.5881 + TInt lretval = KErrNone;
1.5882 + TInt rretval = KErrNone;
1.5883 +
1.5884 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - R-LA AN ET AN test\r\n"));
1.5885 +
1.5886 + // Now mix in some numbers
1.5887 + TextIterator rtolIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.5888 + TextIterator arabnIterator(KArabicNumber, KArabicNumberLength);
1.5889 + TextIterator eurotIterator(KEuropeanNumberTerminator, KEuropeanNumberTerminatorLength);
1.5890 +
1.5891 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.5892 +
1.5893 + while(!rtolIterator.Wrapped())
1.5894 + {
1.5895 + TInt i;
1.5896 +
1.5897 + for (i = 0 ; i < (KBufferSize-3) ; i+=4)
1.5898 + {
1.5899 + aOldText[i] = rtolIterator.NextChar();
1.5900 + aOldText[i+1] = arabnIterator.NextChar();
1.5901 + aOldText[i+2] = eurotIterator.NextChar();
1.5902 + aOldText[i+3] = arabnIterator.NextChar();
1.5903 + }
1.5904 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaRToL, rText);
1.5905 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, lText);
1.5906 +
1.5907 + aTest->TEST(lretval == KErrNone);
1.5908 + aTest->TEST(rretval == KErrNone);
1.5909 +#ifdef PRINT_DATA
1.5910 + _LIT(KOTitleT, "Original (Top)");
1.5911 + _LIT(KLTitleT, "Left-to-Right (Top)");
1.5912 + _LIT(KRTitleT, "Right-to-Left (Top)");
1.5913 + _LIT(KOTitleB, "Original (Bottom)");
1.5914 + _LIT(KLTitleB, "Left-to-Right (Bottom)");
1.5915 + _LIT(KRTitleB, "Right-to-Left (Bottom)");
1.5916 +
1.5917 +
1.5918 + PrintTestData(KOTitleT, aOldText.Ptr(), 32);
1.5919 + PrintTestData(KOTitleB, aOldText.Ptr()+KBufferSize-32, 32);
1.5920 +
1.5921 + PrintTestData(KLTitleT, lText, 32);
1.5922 + PrintTestData(KLTitleB, lText+KBufferSize-32, 32);
1.5923 +
1.5924 + PrintTestData(KRTitleT, rText, 32);
1.5925 + PrintTestData(KRTitleB, rText+KBufferSize-32, 32);
1.5926 +
1.5927 +#endif
1.5928 +
1.5929 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), lText, KBufferSize));
1.5930 + aTest->TEST(TextInReverseOrder(aOldText.Ptr(), rText, KBufferSize));
1.5931 +
1.5932 + DeleteText(aOldText.Ptr(), lText, aTest);
1.5933 + DeleteText(aOldText.Ptr(), rText, aTest);
1.5934 +
1.5935 +
1.5936 + }
1.5937 + }
1.5938 +
1.5939 +
1.5940 +/**
1.5941 + *
1.5942 + * Tests what happens to Other Neutrals when mixed into Left To Right and Right To Left text
1.5943 + *
1.5944 + * @param "TDes& aOldText"
1.5945 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.5946 + *
1.5947 + * @param "CTGraphicsBase* aTest"
1.5948 + * Pointer to the test object
1.5949 + *
1.5950 + */
1.5951 + static void InterspersedNeutralsTest(TDes& aOldText, CTGraphicsBase* aTest)
1.5952 + {
1.5953 + TText* lText = 0;
1.5954 + TText* rText = 0;
1.5955 + TInt lretval = KErrNone;
1.5956 + TInt rretval = KErrNone;
1.5957 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - L-R R-L with interspersed Neutrals test\r\n"));
1.5958 + TInt oldTextLength = aOldText.Length();
1.5959 +
1.5960 + // Neutrals Test
1.5961 +
1.5962 + // These should go left-to-right when with left-to-right text
1.5963 + // and right-to-left with right-to-left text.
1.5964 +
1.5965 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.5966 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.5967 + TextIterator neutIterator(KOtherNeutrals, KOtherNeutralsLength);
1.5968 + TUint16 neut;
1.5969 +
1.5970 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.5971 +
1.5972 + while (!ltorIterator.Wrapped())
1.5973 + {
1.5974 + TInt i;
1.5975 + for (i = 0 ; i < KHalfBufferSize; i+=2)
1.5976 + {
1.5977 + aOldText[i] = ltorIterator.NextChar();
1.5978 + //Skip any characters that are mirrored for simplicity of checking
1.5979 + while(KMirrors().Locate(neut = neutIterator.NextChar()) != KErrNotFound)
1.5980 + {
1.5981 + }
1.5982 +
1.5983 + aOldText[i+1] = neut;
1.5984 + }
1.5985 +
1.5986 + for (i = KHalfBufferSize ; i < KBufferSize; i+=2)
1.5987 + {
1.5988 + aOldText[i] = rtolIterator.NextChar();
1.5989 + //Skip any characters that are mirrored for simplicity of checking
1.5990 + while(KMirrors().Locate(neut = neutIterator.NextChar()) != KErrNotFound)
1.5991 + {
1.5992 + }
1.5993 + aOldText[i+1] = neut;
1.5994 + }
1.5995 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaLToR, lText);
1.5996 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), KBufferSize, EParaRToL, rText);
1.5997 +
1.5998 + aTest->TEST(lretval == KErrNone);
1.5999 + aTest->TEST(rretval == KErrNone);
1.6000 +
1.6001 + /*
1.6002 + Note - the tests are made more complex because of the behaviour of the last
1.6003 + neutral in the first half of the buffer.
1.6004 +
1.6005 + Because the sequence goes <LtoR> <Neutral> <RtoL>, the way that last
1.6006 + neutral is interpreted depends upon the paragraph direction instead of
1.6007 + the direction of the adjacent text.
1.6008 +
1.6009 + */
1.6010 +
1.6011 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), lText, KHalfBufferSize));
1.6012 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[KHalfBufferSize], &lText[KHalfBufferSize], KHalfBufferSize-1));
1.6013 + aTest->TEST((aOldText.Ptr()[KBufferSize-1] == lText[KBufferSize-1])); //Last neutral obeys L-R hence stays where it was
1.6014 + aTest->TEST(TextInReverseOrder(&aOldText.Ptr()[KHalfBufferSize], rText, KHalfBufferSize));
1.6015 + aTest->TEST((aOldText.Ptr()[KHalfBufferSize-1] == rText[KHalfBufferSize])); //First neutral stays RtoL and stays at the front
1.6016 + aTest->TEST(TextInSameOrder(aOldText.Ptr(), &rText[KHalfBufferSize+1], KHalfBufferSize-1));
1.6017 +
1.6018 +
1.6019 + DeleteText(aOldText.Ptr(), lText, aTest);
1.6020 + DeleteText(aOldText.Ptr(), rText, aTest);
1.6021 + }
1.6022 + }
1.6023 +
1.6024 +/**
1.6025 + *
1.6026 + * Tests that the behaviour shown in small numbers of runs also occurs when lots of
1.6027 + * left to right and right to left text is intermixed.
1.6028 + *
1.6029 + * @param "TDes& aOldText"
1.6030 + * Descriptor that points to a buffer at least KBufferSize 16-bit characters long
1.6031 + *
1.6032 + * @param "CTGraphicsBase* aTest"
1.6033 + * Pointer to the test object
1.6034 + *
1.6035 + */
1.6036 +static void ComplexTextTest(TDes& aOldText, CTGraphicsBase *aTest)
1.6037 + {
1.6038 + TText* lText = 0;
1.6039 + TText* rText = 0;
1.6040 + TInt lretval = KErrNone;
1.6041 + TInt rretval = KErrNone;
1.6042 + TInt oldTextLength = aOldText.Length();
1.6043 +
1.6044 +#ifdef PRINT_RUNS
1.6045 + _LIT(KRunTitle, "Populating aOldText buffer with embedded runs of characters as follows:\r\n");
1.6046 + _LIT(KRunFormat, "Run %d begins with %04x\r\n");
1.6047 + _LIT(KEndRunFormat, "End of Run %d begins with %04x\r\n");
1.6048 +
1.6049 +#endif // PRINT_RUNS
1.6050 +
1.6051 +
1.6052 + aTest->INFO_PRINTF1(_L("TBidirectionalState test - Complex text test\r\n"));
1.6053 +
1.6054 + aTest->TEST(aOldText.Length() >= KBufferSize);
1.6055 +
1.6056 +
1.6057 + //Build up a lot of levels of L-R and R-L text
1.6058 +
1.6059 + TextIterator ltorIterator(KLeftToRight, KLeftToRightLength);
1.6060 + TextIterator rtolIterator(KRightToLeft, KRightToLeftLength);
1.6061 + const TInt KRuns = 64;
1.6062 + const TInt KRunSize = ((KBufferSize/KRuns)/2 );
1.6063 + TInt runStart[KRuns];
1.6064 + TInt runEnd[KRuns];
1.6065 + TInt runStartSize[KRuns];
1.6066 + TInt runEndSize[KRuns];
1.6067 + while (!ltorIterator.Wrapped())
1.6068 + {
1.6069 + //Build up start of runs
1.6070 + TInt index = 0;
1.6071 + TInt run;
1.6072 +#ifdef PRINT_RUNS
1.6073 + aTest->INFO_PRINTF1(KRunTitle);
1.6074 +#endif // PRINT_RUNS
1.6075 + for (run = 0 ; run < KRuns ; run++)
1.6076 + {
1.6077 + runStart[run]=index;
1.6078 + if ((run & 1) == 0)
1.6079 + {
1.6080 + ltorIterator.FillInto(aOldText, index, KRunSize*(run+1));
1.6081 + }
1.6082 + else
1.6083 + {
1.6084 + rtolIterator.FillInto(aOldText, index, KRunSize*(run+1));
1.6085 + }
1.6086 + runStartSize[run] = index - runStart[run];
1.6087 + }
1.6088 + //Now fill in the ends
1.6089 + for (TInt brun = KRuns ; brun > 0 ; --brun)
1.6090 + {
1.6091 + run = brun - 1;
1.6092 + runEnd[run] = index;
1.6093 + if ((run & 1) == 0)
1.6094 + {
1.6095 + ltorIterator.FillInto(aOldText, index, KRunSize*(KRuns*2-run));
1.6096 + }
1.6097 + else
1.6098 + {
1.6099 + rtolIterator.FillInto(aOldText, index, KRunSize*(KRuns*2-run));
1.6100 + }
1.6101 + runEndSize[run] = index - runEnd[run];
1.6102 + }
1.6103 + aOldText.SetLength(index);
1.6104 +
1.6105 + lretval = TBidirectionalState::ReorderText(aOldText.Ptr(), index, EParaLToR, lText);
1.6106 + rretval = TBidirectionalState::ReorderText(aOldText.Ptr(), index, EParaRToL, rText);
1.6107 +
1.6108 + aTest->TEST(lretval == KErrNone);
1.6109 + aTest->TEST(rretval == KErrNone);
1.6110 +
1.6111 +
1.6112 +#ifdef PRINT_ARRAYS
1.6113 + _LIT(KHexTitleo, "Contents of aOldText");
1.6114 + _LIT(KHexTitlel, "Contents of lText");
1.6115 + _LIT(KHexTitler, "Contents of rText");
1.6116 +
1.6117 + PrintTestData(KHexTitleo, aOldText);
1.6118 + PrintTestData(KHexTitlel, lText, KBufferSize);
1.6119 + PrintTestData(KHexTitler, rText, KBufferSize);
1.6120 +
1.6121 +#endif // PRINT_ARRAYS
1.6122 + //LeftToRight Paragraph test - all but last run should be in-place,
1.6123 + //but the right-to-left text is reversed.
1.6124 +
1.6125 + for (run = 0 ; run < (KRuns-1) ; ++run)
1.6126 + {
1.6127 +
1.6128 + aTest->TEST( (KRunSize <= aOldText.Length() - runStart[run]) && (KRunSize <= KBufferSize - runStart[run]));
1.6129 + aTest->TEST( (KRunSize <= aOldText.Length() - runEnd[run]) && (KRunSize <= KBufferSize - runEnd[run]));
1.6130 + if ((run & 1) == 0)
1.6131 + {
1.6132 + aTest->TEST(TextInSameOrder (&aOldText.Ptr()[runStart[run]], &lText[runStart[run]], runStartSize[run]));
1.6133 + aTest->TEST(TextInSameOrder (&aOldText.Ptr()[runEnd[run]], &lText[runEnd[run]], runEndSize[run]));
1.6134 + }
1.6135 + else
1.6136 + {
1.6137 + aTest->TEST(TextInReverseOrder (&aOldText.Ptr()[runStart[run]], &lText[runStart[run]], runStartSize[run]));
1.6138 + aTest->TEST(TextInReverseOrder (&aOldText.Ptr()[runEnd[run]], &lText[runEnd[run]], runEndSize[run]));
1.6139 + }
1.6140 + }
1.6141 +
1.6142 + run = KRuns-1; //now do last run, which is double-sized
1.6143 +
1.6144 + aTest->TEST( (KRunSize*2 <= aOldText.Length() - runStart[run]) && (KRunSize*2 <= KBufferSize - runStart[run]));
1.6145 + if ((run & 1) == 0)
1.6146 + {
1.6147 + aTest->TEST(TextInSameOrder (&aOldText.Ptr()[runStart[run]], &lText[runStart[run]], runStartSize[run]+runEndSize[run]));
1.6148 + }
1.6149 + else
1.6150 + {
1.6151 + aTest->TEST(TextInReverseOrder (&aOldText.Ptr()[runStart[run]], &lText[runStart[run]], runStartSize[run]+runEndSize[run]));
1.6152 + }
1.6153 +
1.6154 + //Right-To-Left Paragraph test - all runs are exchanged about the centre,
1.6155 + //so the last end run is swapped with the first run and so on
1.6156 + //and the right-to-left text is reversed.
1.6157 + for (run = 0 ; run < (KRuns-1) ; ++run)
1.6158 + {
1.6159 +
1.6160 + aTest->TEST( (KRunSize <= aOldText.Length() - runStart[run]) && (KRunSize <= KBufferSize - runEnd[run]));
1.6161 + aTest->TEST( (KRunSize <= aOldText.Length() - runEnd[run]) && (KRunSize <= KBufferSize - runStart[run]));
1.6162 + if ((run & 1) == 0)
1.6163 + {
1.6164 + aTest->TEST(TextInSameOrder (&aOldText.Ptr()[runStart[run]], &rText[index-runStart[run+1]], runStartSize[run]));
1.6165 + aTest->TEST(TextInSameOrder (&aOldText.Ptr()[runEnd[run]], &rText[index-runEnd[run]-runEndSize[run]], runEndSize[run]));
1.6166 + }
1.6167 + else
1.6168 + {
1.6169 + aTest->TEST(TextInReverseOrder (&aOldText.Ptr()[runStart[run]], &rText[index-runStart[run+1]], runStartSize[run]));
1.6170 + aTest->TEST(TextInReverseOrder (&aOldText.Ptr()[runEnd[run]], &rText[index-runEnd[run]-runEndSize[run]], runEndSize[run]));
1.6171 + }
1.6172 + }
1.6173 +
1.6174 + run = KRuns-1; //now do last run, which is double-sized
1.6175 +
1.6176 + aTest->TEST( (KRunSize*2 <= aOldText.Length() - runStart[run]) && (KRunSize*2 <= KBufferSize - runStart[run]));
1.6177 +
1.6178 + if ((run & 1) == 0)
1.6179 + {
1.6180 +
1.6181 + aTest->TEST(TextInSameOrder (&aOldText.Ptr()[runStart[run]], &rText[index-runEnd[run-1]], runStartSize[run]+runEndSize[run]));
1.6182 + }
1.6183 + else
1.6184 + {
1.6185 + aTest->TEST(TextInReverseOrder (&aOldText.Ptr()[runStart[run]], &rText[index-runEnd[run-1]], runStartSize[run]+runEndSize[run]));
1.6186 + }
1.6187 + DeleteText(aOldText.Ptr(), lText, aTest);
1.6188 + DeleteText(aOldText.Ptr(), rText, aTest);
1.6189 + aOldText.SetLength(oldTextLength);
1.6190 + }
1.6191 + }
1.6192 +
1.6193 +/**
1.6194 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0003
1.6195 +
1.6196 + @SYMDEF DEF105603
1.6197 +
1.6198 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.6199 +
1.6200 + @SYMTestPriority High
1.6201 +
1.6202 + @SYMTestStatus Implemented
1.6203 +
1.6204 + @SYMTestActions Test reordering text based on various combinations of formatting codes & characters
1.6205 +
1.6206 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.6207 +*/
1.6208 +static void TestReorderTextL(CTGraphicsBase* aTest)
1.6209 + {
1.6210 + //Create buffer to hold test data
1.6211 +
1.6212 + HBufC* oldTextBufPtr = HBufC::NewLC(KBufferSize);
1.6213 +
1.6214 + //Force buffer to desired aSize
1.6215 + for (int i = 0 ; i < KBufferSize ; ++i)
1.6216 + {
1.6217 + oldTextBufPtr->Des().Append(0);
1.6218 + }
1.6219 +
1.6220 + TPtr oldText(oldTextBufPtr->Des());
1.6221 +
1.6222 + aTest->INFO_PRINTF1(_L("TBidirectionalState::ReorderText"));
1.6223 +
1.6224 + LeftToRightReorderTest(oldText, aTest);
1.6225 + SimpleEuropeanNumberTest(oldText, aTest);
1.6226 + SimpleRightToLeftTest(oldText, aTest);
1.6227 + SimpleRightToLeftArabicTest(oldText, aTest);
1.6228 +
1.6229 + MirroredCharacterTest(oldText, aTest);
1.6230 +
1.6231 + LROLeftToRightTest(oldText, aTest);
1.6232 + LRORightToLeftTest(oldText, aTest);
1.6233 + RLORightToLeftTest(oldText, aTest);
1.6234 + RLORightToLeftArabicTest(oldText, aTest);
1.6235 + RLOLeftToRightTest(oldText, aTest);
1.6236 +
1.6237 + LToRThenRToLTest(oldText, aTest);
1.6238 + LToRThenRToLATest(oldText, aTest);
1.6239 + RToLAThenLToRTest(oldText, aTest);
1.6240 +
1.6241 + LToRThenRToLThenLToRThenRToLTest(oldText, aTest);
1.6242 + RToLThenLToRThenRToLThenLToRTest(oldText, aTest);
1.6243 +
1.6244 + SimpleNumberTest(oldText, aTest);
1.6245 +
1.6246 + RToLAThenANThenENThenRToLATest(oldText, aTest);
1.6247 + RToLAThenENThenANThenRToLATest(oldText, aTest);
1.6248 + RToLThenANThenENThenRToLTest(oldText, aTest);
1.6249 + RToLThenENThenANThenRToLTest(oldText, aTest);
1.6250 + LToRThenANThenENThenLToRTest(oldText, aTest);
1.6251 + LToRThenENThenANThenLToRTest(oldText, aTest);
1.6252 + LToRThenANThenENThenRToLTest(oldText, aTest);
1.6253 + LToRThenENThenANThenRToLTest(oldText, aTest);
1.6254 + LToRThenANThenENThenRToLATest(oldText, aTest);
1.6255 + LToRThenENThenANThenRToLATest(oldText, aTest);
1.6256 + RToLThenANThenENThenLToRTest(oldText, aTest);
1.6257 + RToLThenENThenANThenLToRTest(oldText, aTest);
1.6258 + RToLAThenANThenENThenLToRTest(oldText, aTest);
1.6259 + RToLAThenENThenANThenLToRTest(oldText, aTest);
1.6260 + RToLThenENThenETThenENTest(oldText, aTest);
1.6261 + RToLThenANThenETThenANTest(oldText, aTest);
1.6262 + RToLAThenENThenETThenENTest(oldText, aTest);
1.6263 + RToLAThenANThenETThenANTest(oldText, aTest);
1.6264 +
1.6265 + ComplexTextTest(oldText, aTest);
1.6266 +
1.6267 + aTest->INFO_PRINTF1(_L("TBidirectionalState::ReorderText tests complete\r\n"));
1.6268 +
1.6269 + CleanupStack::PopAndDestroy();
1.6270 + }
1.6271 + };
1.6272 +
1.6273 +/**
1.6274 + * Test behaviour of text reordering under normal & OOM conditions
1.6275 + *
1.6276 + * @param "MOOMTest& aOOMTest"
1.6277 + * Reference to the BD test object
1.6278 +*/
1.6279 +void CTBiDi::TestOOML(MOOMTest& aOOMTest)
1.6280 + {
1.6281 + aOOMTest.SetUpL();
1.6282 + aOOMTest.ManipulateL();
1.6283 + aOOMTest.TearDown();
1.6284 + TInt successesRequired = aOOMTest.ConsecutivePassesRequired();
1.6285 + __ASSERT_DEBUG(0 < successesRequired, User::Panic(_L("TBiDi"), KErrGeneral));
1.6286 + TInt consecutiveSuccesses = 0;
1.6287 + for (TInt i = 1; consecutiveSuccesses != successesRequired; ++i)
1.6288 + {
1.6289 + TInt pHCountStart;
1.6290 + TInt tHCountStart;
1.6291 + RThread().HandleCount(pHCountStart,tHCountStart);
1.6292 + __UHEAP_MARK;
1.6293 +
1.6294 + aOOMTest.SetUpL();
1.6295 + __UHEAP_SETFAIL(RHeap::EDeterministic, i);
1.6296 + TRAPD(err, aOOMTest.ManipulateL());
1.6297 + if (err == KErrNone)
1.6298 + {
1.6299 + aOOMTest.TestIfPassedL(this);
1.6300 + ++consecutiveSuccesses;
1.6301 + }
1.6302 + else
1.6303 + {
1.6304 + aOOMTest.TestLeftCleanlyL(this);
1.6305 + consecutiveSuccesses = 0;
1.6306 + }
1.6307 + aOOMTest.TearDown();
1.6308 + __UHEAP_SETFAIL(RHeap::ENone, 0);
1.6309 +
1.6310 + // test no memory or handles leaked
1.6311 + __UHEAP_MARKENDC(0);
1.6312 + TInt pHCountEnd;
1.6313 + TInt tHCountEnd;
1.6314 + RThread().HandleCount(pHCountEnd,tHCountEnd);
1.6315 + TEST(pHCountStart == pHCountEnd);
1.6316 + TEST(tHCountStart == tHCountEnd);
1.6317 + }
1.6318 + }
1.6319 +
1.6320 +class TReorderTextOOMTest : public MOOMTest
1.6321 + {
1.6322 + const TDesC* iText;
1.6323 + TBool iRightToLeft;
1.6324 + const TDesC* iReorderedText;
1.6325 + TText* iBuffer;
1.6326 + TInt iReturnValue;
1.6327 +public:
1.6328 + TReorderTextOOMTest(const TDesC& aText, TBool aRightToLeft, const TDesC& aReorderedText)
1.6329 + : iText(&aText), iRightToLeft(aRightToLeft), iReorderedText(&aReorderedText),
1.6330 + iBuffer(0), iReturnValue(0)
1.6331 + {}
1.6332 + virtual ~TReorderTextOOMTest() { TearDown(); }
1.6333 + void Initialize(const TDesC& aText, TBool aRightToLeft,
1.6334 + const TDesC& aReorderedText)
1.6335 + {
1.6336 + TearDown();
1.6337 + iText = &aText;
1.6338 + iRightToLeft = aRightToLeft;
1.6339 + iReorderedText = &aReorderedText;
1.6340 + }
1.6341 + void SetUpL()
1.6342 + {
1.6343 + iBuffer = 0;
1.6344 + iReturnValue = 0;
1.6345 + }
1.6346 + void ManipulateL()
1.6347 + {
1.6348 + iReturnValue = TBidirectionalState::ReorderText(iText->Ptr(),
1.6349 + iText->Length(), iRightToLeft, iBuffer);
1.6350 + User::LeaveIfError(iReturnValue);
1.6351 + }
1.6352 + static TBool IsIgnorable(TText a)
1.6353 + {
1.6354 + if (a == 0xFFFF)
1.6355 + return ETrue;
1.6356 + if (a < 0x202A || 0x202E < a)
1.6357 + return EFalse;
1.6358 + return ETrue;
1.6359 + }
1.6360 + static TBool StringsMatch(const TText* a1, TInt a1Len,
1.6361 + const TText* a2, TInt a2Len)
1.6362 + {
1.6363 + const TText* a1End = a1 + a1Len;
1.6364 + const TText* a2End = a2 + a2Len;
1.6365 + for (;;)
1.6366 + {
1.6367 + while (a1 != a1End && IsIgnorable(*a1))
1.6368 + ++a1;
1.6369 + while (a2 != a2End && IsIgnorable(*a2))
1.6370 + ++a2;
1.6371 + if (a1 == a1End)
1.6372 + return a2 == a2End;
1.6373 + else if (a2 == a2End)
1.6374 + return EFalse;
1.6375 + if (*a1 != *a2)
1.6376 + return EFalse;
1.6377 + ++a1;
1.6378 + ++a2;
1.6379 + }
1.6380 + }
1.6381 +
1.6382 + void TestIfPassedL(CTGraphicsBase* aTest)
1.6383 + {
1.6384 + // test the reordered text was returned in iBuffer (as per SDK documentation for TBidirectionalState::ReorderText)
1.6385 + aTest->TEST(iBuffer != 0);
1.6386 + aTest->TEST( StringsMatch(iBuffer, iText->Length(), iReorderedText->Ptr(), iReorderedText->Length()) );
1.6387 + }
1.6388 +
1.6389 + void TestLeftCleanlyL(CTGraphicsBase* aTest)
1.6390 + {
1.6391 + // test the original text was returned in iBuffer (as per SDK documentation for TBidirectionalState::ReorderText)
1.6392 + aTest->TEST(iBuffer != 0);
1.6393 + aTest->TEST( StringsMatch(iBuffer, iText->Length(), iText->Ptr(), iText->Length()) );
1.6394 + }
1.6395 +
1.6396 + void TearDown()
1.6397 + {
1.6398 + if (iBuffer != iText->Ptr())
1.6399 + delete[] iBuffer;
1.6400 + iBuffer = 0;
1.6401 + }
1.6402 + };
1.6403 +
1.6404 +/**
1.6405 + *
1.6406 + * Prints some details about an array of TBidirectionalState::TRunInfo objects to the test console.
1.6407 + * This function prints each character of text with category code and Bidirectional category
1.6408 + *
1.6409 + *
1.6410 + * @param "const TBidirectionalState::TRunInfo* aRunArray"
1.6411 + * Points to the array of run info objects
1.6412 + *
1.6413 + * @param "const TInt aRuns"
1.6414 + * Number of objects in the array
1.6415 + *
1.6416 + * @param "const TText* aText"
1.6417 + * The text which after being analysed by the Bidirectional Algorithm resulted in
1.6418 + * the array of run info objects.
1.6419 + *
1.6420 + * @param "const TBool aInternal"
1.6421 + * The iCategory element of a run info object may be encoded in two ways, either
1.6422 + * the codes used by TChar or those used by TBidirectionalState. If this flag is ETrue
1.6423 + * the value is interpreted as a TBidirectionalState code.
1.6424 + *
1.6425 + */
1.6426 +void CTBiDi::PrintRunCategories(const TBidirectionalState::TRunInfo* aRunArray, const TInt aRuns, const TText* aText, const TBool aInternal)
1.6427 + {
1.6428 + TBuf16<100> line2;
1.6429 + TBuf16<100> line3;
1.6430 + TBuf16<100> line4;
1.6431 + TBuf16<100> line5;
1.6432 + line2.Fill(' ',100);
1.6433 + line3.Fill(' ',100);
1.6434 + line4.Fill(' ',100);
1.6435 + line5.Fill(' ',100);
1.6436 + for (int ii = 0 ; ii < aRuns ; ++ii)
1.6437 + {
1.6438 + TUint cat = aRunArray[ii].iCategory;
1.6439 + if (aInternal)
1.6440 + {
1.6441 + cat = 1 << cat; //translate from the form used by TChar to that used internally
1.6442 + //in TBidirectionalText.
1.6443 + }
1.6444 + for (int jj = aRunArray[ii].iStart ;
1.6445 + (jj < aRunArray[ii].iStart+aRunArray[ii].iLength) ; ++jj)
1.6446 + {
1.6447 + line2[jj] = aText[jj];
1.6448 + switch(cat)
1.6449 + {
1.6450 +
1.6451 + case ELeftToRight:
1.6452 + line3[jj] = 'L';
1.6453 + line4[jj] = ' ';
1.6454 + line5[jj] = ' ';
1.6455 + break;
1.6456 + case ELeftToRightEmbedding:
1.6457 + line3[jj] = 'L';
1.6458 + line4[jj] = 'R';
1.6459 + line5[jj] = 'E';
1.6460 + break;
1.6461 + case ELeftToRightOverride:
1.6462 + line3[jj] = 'L';
1.6463 + line4[jj] = 'R';
1.6464 + line5[jj] = 'O';
1.6465 + break;
1.6466 + case ERightToLeft:
1.6467 + line3[jj] = 'R';
1.6468 + line4[jj] = ' ';
1.6469 + line5[jj] = ' ';
1.6470 + break;
1.6471 + case ERightToLeftArabic:
1.6472 + line3[jj] = 'A';
1.6473 + line4[jj] = 'L';
1.6474 + line5[jj] = ' ';
1.6475 + break;
1.6476 + case ERightToLeftEmbedding:
1.6477 + line3[jj] = 'R';
1.6478 + line4[jj] = 'L';
1.6479 + line5[jj] = 'E';
1.6480 + break;
1.6481 + case ERightToLeftOverride:
1.6482 + line3[jj] = 'R';
1.6483 + line4[jj] = 'L';
1.6484 + line5[jj] = 'O';
1.6485 + break;
1.6486 + case EPopDirectionalFormat:
1.6487 + line3[jj] = 'P';
1.6488 + line4[jj] = 'D';
1.6489 + line5[jj] = 'F';
1.6490 + break;
1.6491 + case EEuropeanNumber:
1.6492 + line3[jj] = 'E';
1.6493 + line4[jj] = 'N';
1.6494 + line5[jj] = ' ';
1.6495 + break;
1.6496 + case EEuropeanNumberSeparator:
1.6497 + line3[jj] = 'E';
1.6498 + line4[jj] = 'S';
1.6499 + line5[jj] = ' ';
1.6500 + break;
1.6501 + case EEuropeanNumberTerminator:
1.6502 + line3[jj] = 'E';
1.6503 + line4[jj] = 'T';
1.6504 + line5[jj] = ' ';
1.6505 + break;
1.6506 + case EArabicNumber:
1.6507 + line3[jj] = 'A';
1.6508 + line4[jj] = 'N';
1.6509 + line5[jj] = ' ';
1.6510 + break;
1.6511 + case ECommonNumberSeparator:
1.6512 + line3[jj] = 'C';
1.6513 + line4[jj] = 'S';
1.6514 + line5[jj] = ' ';
1.6515 + break;
1.6516 + case ENonSpacingMark:
1.6517 + line3[jj] = 'N';
1.6518 + line4[jj] = 'S';
1.6519 + line5[jj] = 'M';
1.6520 + break;
1.6521 + case EBoundaryNeutral:
1.6522 + line3[jj] = 'B';
1.6523 + line4[jj] = 'N';
1.6524 + line5[jj] = ' ';
1.6525 + break;
1.6526 + case EParagraphSeparator:
1.6527 + line3[jj] = 'B';
1.6528 + line4[jj] = ' ';
1.6529 + line5[jj] = ' ';
1.6530 + break;
1.6531 + case ESegmentSeparator:
1.6532 + line3[jj] = 'S';
1.6533 + line4[jj] = ' ';
1.6534 + line5[jj] = ' ';
1.6535 + break;
1.6536 + case EWhitespace:
1.6537 + line3[jj] = 'W';
1.6538 + line4[jj] = 'S';
1.6539 + line5[jj] = ' ';
1.6540 + break;
1.6541 + case EOtherNeutral:
1.6542 + line3[jj] = 'O';
1.6543 + line4[jj] = 'N';
1.6544 + line5[jj] = ' ';
1.6545 + break;
1.6546 + case EStartOfParagraph:
1.6547 + line3[jj] = 'S';
1.6548 + line4[jj] = 'O';
1.6549 + line5[jj] = 'P';
1.6550 + break;
1.6551 + case EEndOfParagraph:
1.6552 + line3[jj] = 'E';
1.6553 + line4[jj] = 'O';
1.6554 + line5[jj] = 'P';
1.6555 + break;
1.6556 + default:
1.6557 + line3[jj] = '?';
1.6558 + line4[jj] = ' ';
1.6559 + line5[jj] = ' ';
1.6560 + break;
1.6561 + }
1.6562 + }
1.6563 + }
1.6564 + line2.TrimRight();
1.6565 + line3.TrimRight();
1.6566 + line4.TrimRight();
1.6567 + line5.TrimRight();
1.6568 + line2.ZeroTerminate();
1.6569 + line3.ZeroTerminate();
1.6570 + line4.ZeroTerminate();
1.6571 + line5.ZeroTerminate();
1.6572 + INFO_PRINTF2(KSingleString, line2.Ptr());
1.6573 + INFO_PRINTF2(KSingleString, line3.Ptr());
1.6574 + INFO_PRINTF2(KSingleString, line4.Ptr());
1.6575 + INFO_PRINTF2(KSingleString, line5.Ptr());
1.6576 + }
1.6577 +
1.6578 +/**
1.6579 + *
1.6580 + * Prints some details about an array of TBidirectionalState::TRunInfo objects to the test console.
1.6581 + * This function prints each character of text with the embedding level and Bidirectional category
1.6582 + *
1.6583 + *
1.6584 + * @param "const TBidirectionalState::TRunInfo* aRunArray"
1.6585 + * Points to the array of run info objects
1.6586 + *
1.6587 + * @param "const TInt aRuns"
1.6588 + * Number of objects in the array
1.6589 + *
1.6590 + * @param "const TText* aText"
1.6591 + * The text which after being analysed by the Bidirectional Algorithm resulted in
1.6592 + * the array of run info objects.
1.6593 + *
1.6594 +*
1.6595 + */
1.6596 +void CTBiDi::PrintRunArray(const TBidirectionalState::TRunInfo* aRunArray, const TInt aRuns, const TText* aText)
1.6597 + {
1.6598 + if (aRunArray)
1.6599 + {
1.6600 +#ifdef PRINT_RUN_DETAILS
1.6601 + _LIT(KRunFmt, "Run %d - Category %d Level %d Direction %d Index %d Start %d Length %d");
1.6602 +#endif // PRINT_RUN_DETAILS
1.6603 +
1.6604 + TBuf16<100> line1;
1.6605 + TBuf16<100> line2;
1.6606 + TBuf16<100> line3;
1.6607 + TBuf16<100> line4;
1.6608 + TBuf16<100> line5;
1.6609 + line1.Zero();
1.6610 + line2.Zero();
1.6611 + line3.Zero();
1.6612 + line4.Zero();
1.6613 + line5.Zero();
1.6614 + for (int ii = 0 ; ii < aRuns ; ++ii)
1.6615 + {
1.6616 +#ifdef PRINT_RUN_DETAILS
1.6617 + aTest->INFO_PRINTF1(KRunFmt, ii, aRunArray[ii].iCategory,
1.6618 + aRunArray[ii].iEmbeddingLevel,
1.6619 + aRunArray[ii].iDirection,
1.6620 + aRunArray[ii].iIndex,
1.6621 + aRunArray[ii].iStart,
1.6622 + aRunArray[ii].iLength);
1.6623 +#endif // PRINT_RUN_DETAILS
1.6624 + //mark up each character slot with embedding level.
1.6625 + //Only works well for small values of the embedding level!
1.6626 + for (int jj = aRunArray[ii].iStart ;
1.6627 + (jj < aRunArray[ii].iStart+aRunArray[ii].iLength) ; ++jj)
1.6628 + {
1.6629 + line1.Append(aText[jj]);
1.6630 + line2.Append(static_cast<TUint16>(aRunArray[ii].iEmbeddingLevel + '0'));
1.6631 + switch(aRunArray[ii].iCategory)
1.6632 + {
1.6633 +
1.6634 + case ELeftToRight:
1.6635 + line3.Append('L');
1.6636 + line4.Append(' ');
1.6637 + line5.Append(' ');
1.6638 + break;
1.6639 + case ELeftToRightEmbedding:
1.6640 + line3.Append('L');
1.6641 + line4.Append('R');
1.6642 + line5.Append('E');
1.6643 + break;
1.6644 + case ELeftToRightOverride:
1.6645 + line3.Append('L');
1.6646 + line4.Append('R');
1.6647 + line5.Append('O');
1.6648 + break;
1.6649 + case ERightToLeft:
1.6650 + line3.Append('R');
1.6651 + line4.Append(' ');
1.6652 + line5.Append(' ');
1.6653 + break;
1.6654 + case ERightToLeftArabic:
1.6655 + line3.Append('A');
1.6656 + line4.Append('L');
1.6657 + line5.Append(' ');
1.6658 + break;
1.6659 + case ERightToLeftEmbedding:
1.6660 + line3.Append('R');
1.6661 + line4.Append('L');
1.6662 + line5.Append('E');
1.6663 + break;
1.6664 + case ERightToLeftOverride:
1.6665 + line3.Append('R');
1.6666 + line4.Append('L');
1.6667 + line5.Append('O');
1.6668 + break;
1.6669 + case EPopDirectionalFormat:
1.6670 + line3.Append('P');
1.6671 + line4.Append('D');
1.6672 + line5.Append('F');
1.6673 + break;
1.6674 + case EEuropeanNumber:
1.6675 + line3.Append('E');
1.6676 + line4.Append('N');
1.6677 + line5.Append(' ');
1.6678 + break;
1.6679 + case EEuropeanNumberSeparator:
1.6680 + line3.Append('E');
1.6681 + line4.Append('S');
1.6682 + line5.Append(' ');
1.6683 + break;
1.6684 + case EEuropeanNumberTerminator:
1.6685 + line3.Append('E');
1.6686 + line4.Append('T');
1.6687 + line5.Append(' ');
1.6688 + break;
1.6689 + case EArabicNumber:
1.6690 + line3.Append('A');
1.6691 + line4.Append('N');
1.6692 + line5.Append(' ');
1.6693 + break;
1.6694 + case ECommonNumberSeparator:
1.6695 + line3.Append('C');
1.6696 + line4.Append('S');
1.6697 + line5.Append(' ');
1.6698 + break;
1.6699 + case ENonSpacingMark:
1.6700 + line3.Append('N');
1.6701 + line4.Append('S');
1.6702 + line5.Append('M');
1.6703 + break;
1.6704 + case EBoundaryNeutral:
1.6705 + line3.Append('B');
1.6706 + line4.Append('N');
1.6707 + line5.Append(' ');
1.6708 + break;
1.6709 + case EParagraphSeparator:
1.6710 + line3.Append('B');
1.6711 + line4.Append(' ');
1.6712 + line5.Append(' ');
1.6713 + break;
1.6714 + case ESegmentSeparator:
1.6715 + line3.Append('S');
1.6716 + line4.Append(' ');
1.6717 + line5.Append(' ');
1.6718 + break;
1.6719 + case EWhitespace:
1.6720 + line3.Append('W');
1.6721 + line4.Append('S');
1.6722 + line5.Append(' ');
1.6723 + break;
1.6724 + case EOtherNeutral:
1.6725 + line3.Append('O');
1.6726 + line4.Append('N');
1.6727 + line5.Append(' ');
1.6728 + break;
1.6729 + case EStartOfParagraph:
1.6730 + line3.Append('S');
1.6731 + line4.Append('O');
1.6732 + line5.Append('P');
1.6733 + break;
1.6734 + case EEndOfParagraph:
1.6735 + line3.Append('E');
1.6736 + line4.Append('O');
1.6737 + line5.Append('P');
1.6738 + break;
1.6739 + default:
1.6740 + line3.Append('?');
1.6741 + line4.Append(' ');
1.6742 + line5.Append(' ');
1.6743 + break;
1.6744 + }
1.6745 + }
1.6746 + }
1.6747 +
1.6748 + line1.ZeroTerminate();
1.6749 + line2.ZeroTerminate();
1.6750 + line3.ZeroTerminate();
1.6751 + line4.ZeroTerminate();
1.6752 + line5.ZeroTerminate();
1.6753 + INFO_PRINTF2(KSingleString, line1.Ptr());
1.6754 + INFO_PRINTF2(KSingleString, line2.Ptr());
1.6755 + INFO_PRINTF2(KSingleString, line3.Ptr());
1.6756 + INFO_PRINTF2(KSingleString, line4.Ptr());
1.6757 + INFO_PRINTF2(KSingleString, line5.Ptr());
1.6758 + }
1.6759 +
1.6760 +}
1.6761 +
1.6762 +
1.6763 +#define TEST_BUF_LEN 80
1.6764 +
1.6765 +/**
1.6766 +The Unicode Example test class
1.6767 +
1.6768 +This class contains functions that support tests based on the examples given by
1.6769 +Unicode Standard Annexe 9
1.6770 +
1.6771 +Those examples use UPPER CASE latin letters to represent Arabic letters and quotes
1.6772 +to represent embedding levels.
1.6773 +
1.6774 +The functions of this class allow the example to be transcoded using real Arabic letters and
1.6775 +LRE and RLE embedding codes before applying the bidirectional algorithm.
1.6776 +
1.6777 +*/
1.6778 +class TUnicodeExampleOOMTest : public MOOMTest
1.6779 + {
1.6780 + TBuf<TEST_BUF_LEN> iText;
1.6781 + TBuf<TEST_BUF_LEN> iOriginalText;
1.6782 + TBuf<TEST_BUF_LEN> iPrintData;
1.6783 + TBool iRightToLeft;
1.6784 + TBuf<TEST_BUF_LEN> iReorderedText;
1.6785 + TText* iBuffer;
1.6786 + TInt iReturnValue;
1.6787 + TInt iAlef;
1.6788 + TPtrC iArabicChars;
1.6789 + TBool iFirst;
1.6790 + enum {
1.6791 + EAlef = 0x627
1.6792 + };
1.6793 +
1.6794 +public:
1.6795 + TUnicodeExampleOOMTest(const TDesC& aText, TBool aRightToLeft,
1.6796 + const TDesC& aReorderedText, CTGraphicsBase* aTest)
1.6797 + : iOriginalText(aText),
1.6798 + iRightToLeft(aRightToLeft),
1.6799 + iBuffer(0),
1.6800 + iReturnValue(0),
1.6801 + iArabicChars(KRightToLeftArabic, KRightToLeftArabicLength)
1.6802 + {
1.6803 + //Find position of arabic letters in table
1.6804 + iAlef = iArabicChars.Locate(EAlef);
1.6805 + iText.SetLength(iText.MaxLength()); //set buffer to max size to begin with ensuring first copy fills whole buffer
1.6806 + iReorderedText.SetLength(iReorderedText.MaxLength()); //set buffer to max size to begin with
1.6807 + CopyAndMapToArabic(iText, aText, aTest);
1.6808 + CopyAndMapToArabic(iReorderedText, aReorderedText, aTest);
1.6809 + }
1.6810 + virtual ~TUnicodeExampleOOMTest() { TearDown(); }
1.6811 + void Initialize(const TDesC& aText, TBool aRightToLeft,
1.6812 + const TDesC& aReorderedText, CTGraphicsBase* aTest)
1.6813 + {
1.6814 + TearDown();
1.6815 + iOriginalText = aText;
1.6816 + CopyAndMapToArabic(iText, aText, aTest);
1.6817 + iRightToLeft = aRightToLeft;
1.6818 + CopyAndMapToArabic(iReorderedText, aReorderedText, aTest);
1.6819 + }
1.6820 + void SetUpL()
1.6821 + {
1.6822 + iBuffer = 0;
1.6823 + iReturnValue = 0;
1.6824 + }
1.6825 + void ManipulateL()
1.6826 + {
1.6827 + iReturnValue = TBidirectionalState::ReorderText(iText.Ptr(),
1.6828 + iText.Length(), iRightToLeft, iBuffer);
1.6829 + User::LeaveIfError(iReturnValue);
1.6830 + }
1.6831 +
1.6832 + TUint MapToArabic(TUint aChar)
1.6833 + {
1.6834 + TUint newChar = aChar;
1.6835 + if (TChar(aChar).IsUpper())
1.6836 + {
1.6837 + newChar = KRightToLeftArabic[aChar-'A'+iAlef]; //Note this isn't a linguistic transliteration.
1.6838 + };
1.6839 + return newChar;
1.6840 + }
1.6841 + TUint MapFromArabic(TUint aChar)
1.6842 + {
1.6843 + TInt pos = iArabicChars.Locate(aChar) - iAlef;
1.6844 + TUint newChar = aChar;
1.6845 + if ((pos >= 0) && (pos < 26))
1.6846 + {
1.6847 + newChar = 'A'+pos;
1.6848 + };
1.6849 + return newChar;
1.6850 +
1.6851 + }
1.6852 +
1.6853 + void CopyAndMapToArabic(TDes& aBuffer, const TDesC& aDes, CTGraphicsBase* aTest)
1.6854 + {
1.6855 + TInt quoteLevel = 0;
1.6856 + TChar lastQuote = 0;
1.6857 + aTest->TEST(aDes.Length() <= aBuffer.MaxLength());
1.6858 +
1.6859 + aBuffer.Fill(0xFFFF); //fill old contents to help debugging if new string is shorter
1.6860 +
1.6861 + aBuffer.Zero();
1.6862 +
1.6863 + for (TInt i = 0 ; i < aDes.Length() ; ++i)
1.6864 + {
1.6865 + TUint newChar = MapToArabic(aDes[i]);
1.6866 + if ((newChar == '\'') || (newChar == '"'))
1.6867 + {
1.6868 + //Quote handling
1.6869 + if (newChar == lastQuote)
1.6870 + {
1.6871 + //match so drop a level if there is a level to drop
1.6872 + if (quoteLevel > 0)
1.6873 + {
1.6874 + aBuffer.Append(0x202c); //emit a PLD
1.6875 + aBuffer.Append(newChar);
1.6876 + --quoteLevel;
1.6877 + lastQuote = ((lastQuote == '"') ? '\'' : '"' );
1.6878 + }
1.6879 + }
1.6880 + else
1.6881 + {
1.6882 + //start new level
1.6883 + aBuffer.Append(newChar);
1.6884 + if (newChar == '\'')
1.6885 + {
1.6886 + aBuffer.Append(0x202a); //emit LRE
1.6887 + }
1.6888 + else
1.6889 + {
1.6890 + aBuffer.Append(0x202b); //emit RLE
1.6891 + }
1.6892 + ++quoteLevel;
1.6893 + lastQuote = newChar;
1.6894 + }
1.6895 + }
1.6896 + else
1.6897 + {
1.6898 + aBuffer.Append(newChar);
1.6899 + }
1.6900 + }
1.6901 +
1.6902 + }
1.6903 + void PrintMappedData(const TDesC& aTitle, const TDesC& aBuffer, CTGraphicsBase* aTest)
1.6904 + {
1.6905 + iPrintData.Zero();
1.6906 + for (TInt i = 0 ; i < aBuffer.Length() ; ++i)
1.6907 + {
1.6908 + TText a = aBuffer[i];
1.6909 +
1.6910 + if (!IsIgnorable(a))
1.6911 + {
1.6912 + iPrintData.Append(MapFromArabic(a));
1.6913 + }
1.6914 + }
1.6915 + iPrintData.ZeroTerminate();
1.6916 + aTest->INFO_PRINTF3(KDoubleString, aTitle.Ptr(), iPrintData.Ptr());
1.6917 + }
1.6918 + static TBool IsIgnorable(TText a)
1.6919 + {
1.6920 + TBool ignorable = EFalse;
1.6921 + switch(a) {
1.6922 + case KUnicodeNoSuchCharacter:
1.6923 + case KUnicodeLeftToRightMark:
1.6924 + case KUnicodeRightToLeftMark:
1.6925 + case KUnicodeLeftToRightEmbedding:
1.6926 + case KUnicodeRightToLeftEmbedding:
1.6927 + case KUnicodePopDirectionFormat:
1.6928 + case KUnicodeLeftToRightOverride:
1.6929 + case KUnicodeRightToLeftOverride:
1.6930 + ignorable = ETrue;
1.6931 + break;
1.6932 + default:
1.6933 + break;
1.6934 + }
1.6935 + return ignorable;
1.6936 + }
1.6937 + static TBool StringsMatch(const TText* a1, TInt a1Len,
1.6938 + const TText* a2, TInt a2Len)
1.6939 + {
1.6940 + const TText* a1End = a1 + a1Len;
1.6941 + const TText* a2End = a2 + a2Len;
1.6942 + for (;;)
1.6943 + {
1.6944 + while (a1 != a1End && IsIgnorable(*a1))
1.6945 + ++a1;
1.6946 + while (a2 != a2End && IsIgnorable(*a2))
1.6947 + ++a2;
1.6948 + if (a1 == a1End)
1.6949 + return a2 == a2End;
1.6950 + else if (a2 == a2End)
1.6951 + return EFalse;
1.6952 + if (*a1 != *a2)
1.6953 + return EFalse;
1.6954 + ++a1;
1.6955 + ++a2;
1.6956 + }
1.6957 + }
1.6958 + void TestIfPassedL(CTGraphicsBase* aTest)
1.6959 + {
1.6960 +#ifdef PRINT_EXAMPLE
1.6961 + _LIT(KTestPassR, "Test Passed - result");
1.6962 + _LIT(KTestFailE, "Test Failed - expected");
1.6963 + _LIT(KTestFailR, "Test Failed - result");
1.6964 +#endif // PRINT_EXAMPLE
1.6965 + aTest->TEST(iBuffer != 0);
1.6966 + TBool match = StringsMatch(iBuffer, iText.Length(), iReorderedText.Ptr(), iReorderedText.Length());
1.6967 +
1.6968 + if (match)
1.6969 + {
1.6970 +#ifdef PRINT_EXAMPLE
1.6971 + PrintMappedData(KTestPassR, TPtrC(iBuffer, iText.Length()));
1.6972 +#endif // PRINT_EXAMPLE
1.6973 + }
1.6974 + else
1.6975 + {
1.6976 +#ifdef PRINT_EXAMPLE
1.6977 + PrintMappedData(KTestFailE, iReorderedText);
1.6978 + PrintMappedData(KTestFailR, TPtrC(iBuffer, iText.Length()));
1.6979 +#endif // PRINT_EXAMPLE
1.6980 + aTest->TEST(EFalse);
1.6981 + }
1.6982 +
1.6983 + }
1.6984 + void TearDown()
1.6985 + {
1.6986 + if (iBuffer != iText.Ptr())
1.6987 + delete[] iBuffer;
1.6988 + iBuffer = 0;
1.6989 + }
1.6990 + };
1.6991 +
1.6992 +
1.6993 +
1.6994 +//Unicode Spec sample data
1.6995 +// This uses UPPER CASE english to represent right to left Arabic characters
1.6996 +// A straight mapping to tabularly equivalent Arabic letters is done during the
1.6997 +// tests using this data. KxxS is the "Storage" value, KxxD is the "Display" value.
1.6998 +// Also all the values like <RLE> are ignored in the comparison, so aren't included in the D value
1.6999 +// Embedding codes:
1.7000 +// <RLE> \x202b <LRE> \0x202a <PDF> \0x202c <RLO> \x202e <LRO> \x202d <RLM> \0x200f <LRM> \0x200e
1.7001 +
1.7002 +_LIT(KU1S, "he said \"THE VALUES ARE 123, 456, 789, OK\".");
1.7003 +_LIT(KU1D, "he said \"KO ,789 ,456 ,123 ERA SEULAV EHT\".");
1.7004 +_LIT(KU2S, "he said \"IT IS A bmw 500, OK.\"");
1.7005 +_LIT(KU2D, "he said \".KO ,bmw 500 A SI TI\"");
1.7006 +_LIT(KU3S, "car means CAR.");
1.7007 +_LIT(KU3D, "car means RAC.");
1.7008 +_LIT(KU4S, "car MEANS CAR.");
1.7009 +_LIT(KU4D, ".RAC SNAEM car");
1.7010 +//_LIT(KU5S, "he said \"car MEANS CAR.\"");
1.7011 +//_LIT(KU5D, "he said \"RAC SNAEM car.\"");
1.7012 +_LIT(KU6S, "DID YOU SAY 'he said \"car MEANS CAR\"'?");
1.7013 +_LIT(KU6D, "?'he said \"RAC SNAEM car\"' YAS UOY DID");
1.7014 +_LIT(KU7S, "he said `I NEED WATER!`, and expired.");
1.7015 +_LIT(KU7D, "he said `RETAW DEEN I!`, and expired.");
1.7016 +_LIT(KU8S, "he said `\x202bI NEED WATER!\x202c`, and expired.");
1.7017 +_LIT(KU8D, "he said `!RETAW DEEN I`, and expired.");
1.7018 +_LIT(KU9S, "he said `I NEED WATER!\x200f`, and expired.");
1.7019 +_LIT(KU9D, "he said `!RETAW DEEN I`, and expired.");
1.7020 +_LIT(KU10S,"DID YOU SAY '\x202ahe said \"I NEED WATER!\x200f\", and expired.\x202c'?");
1.7021 +_LIT(KU10D,"?'he said \"!RETAW DEEN I\", and expired.' YAS UOY DID");
1.7022 +
1.7023 +/**
1.7024 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0005
1.7025 +
1.7026 + @SYMDEF DEF105603
1.7027 +
1.7028 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.7029 +
1.7030 + @SYMTestPriority High
1.7031 +
1.7032 + @SYMTestStatus Implemented
1.7033 +
1.7034 + @SYMTestActions Test behaviour of text-reordering under normal & OOM conditions using examples derived from Unicode Standard Annex 9
1.7035 +
1.7036 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.7037 +*/
1.7038 +void CTBiDi::TUnicodeExampleTestL()
1.7039 + {
1.7040 + TUnicodeExampleOOMTest toom(KU1S, EFalse, KU1D, this);
1.7041 + TestOOML(toom);
1.7042 + toom.Initialize(KU2S, EFalse, KU2D, this);
1.7043 + TestOOML(toom);
1.7044 + toom.Initialize(KU3S, EFalse, KU3D, this);
1.7045 + TestOOML(toom);
1.7046 + toom.Initialize(KU4S, ETrue, KU4D, this);
1.7047 + TestOOML(toom);
1.7048 +// This test commented out because there seems to be no way to persuade a computer
1.7049 +// to reproduce this example, it only makes sense to human beings.
1.7050 +// toom.Initialize(KU5S, EFalse, KU5D);
1.7051 +// TestOOML(toom);
1.7052 + toom.Initialize(KU6S, ETrue, KU6D, this);
1.7053 + TestOOML(toom);
1.7054 + toom.Initialize(KU7S, EFalse, KU7D, this);
1.7055 + TestOOML(toom);
1.7056 + toom.Initialize(KU8S, EFalse, KU8D, this);
1.7057 + TestOOML(toom);
1.7058 + toom.Initialize(KU9S, EFalse, KU9D, this);
1.7059 + TestOOML(toom);
1.7060 + toom.Initialize(KU10S, ETrue, KU10D, this);
1.7061 + TestOOML(toom);
1.7062 +
1.7063 + }
1.7064 +
1.7065 +
1.7066 +_LIT(KHalalL, "\x62D\x644\x627\x644");
1.7067 +_LIT(KHalalD, "\x644\x627\x644\x62D");
1.7068 +_LIT(KHello, "Hello");
1.7069 +_LIT(KHttL, "\x62D\x644\x627\x644 12:30 \x644\x633");
1.7070 +_LIT(KHttD, "\x633\x644 12:30 \x644\x627\x644\x62D");
1.7071 +_LIT(KHttsL, "\x62D\x644\x627\x644 12, 30 \x644\x633");
1.7072 +_LIT(KHttsD, "\x633\x644 30 ,12 \x644\x627\x644\x62D");
1.7073 +_LIT(KEmbedL,"he said \x202B\x644 some text 12 nos \x627 \x202A=Hah is \x62D\x202C \x633\x202C perhaps");
1.7074 +_LIT(KEmbedD,"he said \x633 =Hah is \x62D \x627 some text 12 nos \x644 perhaps");
1.7075 +_LIT(KMixedL, "\x644\x627 ab");
1.7076 +_LIT(KMixedD, "ab \x627\x644");
1.7077 +_LIT(KMixedDL, "\x627\x644 ab");
1.7078 +_LIT(KRLOverrideL, "\x202Ewxyz\x202Cijkl");
1.7079 +_LIT(KRLOverrideD, "zyxwijkl");
1.7080 +
1.7081 +/**
1.7082 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0004
1.7083 +
1.7084 + @SYMDEF DEF105603
1.7085 +
1.7086 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.7087 +
1.7088 + @SYMTestPriority High
1.7089 +
1.7090 + @SYMTestStatus Implemented
1.7091 +
1.7092 + @SYMTestActions Test reordering under normal & OOM conditions, using custom strings mixing text with formatting codes
1.7093 +
1.7094 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.7095 +*/
1.7096 +void CTBiDi::TestReorderTextL()
1.7097 + {
1.7098 + TReorderTextOOMTest toom(KHalalL, EFalse, KHalalD);
1.7099 + TestOOML(toom);
1.7100 + toom.Initialize(KHalalL, ETrue, KHalalD);
1.7101 + TestOOML(toom);
1.7102 + toom.Initialize(KHello, ETrue, KHello);
1.7103 + TestOOML(toom);
1.7104 + toom.Initialize(KHello, EFalse, KHello);
1.7105 + TestOOML(toom);
1.7106 + toom.Initialize(KHttL, ETrue, KHttD);
1.7107 + TestOOML(toom);
1.7108 + toom.Initialize(KHttL, EFalse, KHttD);
1.7109 + TestOOML(toom);
1.7110 + toom.Initialize(KHttsL, ETrue, KHttsD);
1.7111 + TestOOML(toom);
1.7112 + toom.Initialize(KHttsL, EFalse, KHttsD);
1.7113 + TestOOML(toom);
1.7114 + toom.Initialize(KMixedL, ETrue, KMixedD);
1.7115 + TestOOML(toom);
1.7116 + toom.Initialize(KMixedL, EFalse, KMixedDL);
1.7117 + TestOOML(toom);
1.7118 + toom.Initialize(KRLOverrideL, EFalse, KRLOverrideD);
1.7119 + TestOOML(toom);
1.7120 + toom.Initialize(KEmbedL, EFalse, KEmbedD);
1.7121 +// TestOOML(toom);
1.7122 + }
1.7123 +
1.7124 +/**
1.7125 +TBidiTextOOMTest
1.7126 +
1.7127 +This class contains functions that support tests based on the examples given by
1.7128 +Unicode Standard Annexe 9
1.7129 +
1.7130 +The class contains methods for creating text with different directionality (left-to-right, right-to-left)
1.7131 +and test functions to determine directionality
1.7132 +*/
1.7133 +class TBidiTextOOMTest : public MOOMTest
1.7134 + {
1.7135 +public:
1.7136 +/** Overall directionality of the text. */
1.7137 +/** Text reading begins on the left. */
1.7138 +/** Text reading begins on the right. */
1.7139 + enum TDirectionality { ELeftToRight, ERightToLeft, EAutomatic };
1.7140 + TBidiTextOOMTest(CTGraphicsBase *aTest) : iInputText(0), iBidi(0), iTest(aTest) {}
1.7141 + void Initialize(const TDesC& aInput,
1.7142 + TDirectionality aDirectionality, TInt aMaxLines)
1.7143 + {
1.7144 + iInputText = &aInput;
1.7145 + iDirectionality = aDirectionality;
1.7146 + iMaxLines = aMaxLines;
1.7147 + delete iBidi;
1.7148 + iBidi = 0;
1.7149 + }
1.7150 +
1.7151 + void SetUpL() {}
1.7152 +
1.7153 + void ManipulateL()
1.7154 + {
1.7155 + switch(iDirectionality) {
1.7156 + case EAutomatic:
1.7157 + iBidi = TBidiText::NewL(*iInputText, iMaxLines);
1.7158 + break;
1.7159 + case ELeftToRight:
1.7160 + iBidi = TBidiText::NewL(*iInputText, iMaxLines, TBidiText::ELeftToRight);
1.7161 + break;
1.7162 + case ERightToLeft:
1.7163 + iBidi = TBidiText::NewL(*iInputText, iMaxLines, TBidiText::ERightToLeft);
1.7164 + break;
1.7165 + default:
1.7166 + iTest->TEST(EFalse); //Invalid value for iDirectionality
1.7167 + }
1.7168 + }
1.7169 +
1.7170 + void TearDown()
1.7171 + {
1.7172 + delete iBidi;
1.7173 + iBidi = 0;
1.7174 + }
1.7175 +
1.7176 + void TestIfPassedL(CTGraphicsBase* aTest)
1.7177 + {
1.7178 + aTest->TEST(iBidi != NULL);
1.7179 + const TFileName a(iBidi->Text());
1.7180 + aTest->TEST(a == *iInputText);
1.7181 + // tests on the actual display text are run in a separate test case
1.7182 + }
1.7183 +
1.7184 + void TestLeftCleanlyL(CTGraphicsBase* aTest)
1.7185 + {
1.7186 + aTest->TEST(iBidi == NULL);
1.7187 + }
1.7188 +private:
1.7189 + const TDesC* iInputText;
1.7190 + TDirectionality iDirectionality;
1.7191 + TInt iMaxLines;
1.7192 + TBidiText* iBidi;
1.7193 + CTGraphicsBase *iTest;
1.7194 + };
1.7195 +
1.7196 +/**
1.7197 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0006
1.7198 +
1.7199 + @SYMDEF DEF105603
1.7200 +
1.7201 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.7202 +
1.7203 + @SYMTestPriority High
1.7204 +
1.7205 + @SYMTestStatus Implemented
1.7206 +
1.7207 + @SYMTestActions Test detection of 'overall' directionality of a given language/script
1.7208 +
1.7209 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.7210 +*/
1.7211 +void CTBiDi::TestScriptDirectionality()
1.7212 + {
1.7213 + for (TInt i = 0; i != 100; ++i)
1.7214 + {
1.7215 + TBidiText::TDirectionality dir = TBidiText::ScriptDirectionality(
1.7216 + static_cast<TLanguage>(i));
1.7217 + TEST(i == ELangArabic || i == ELangHebrew || i == ELangFarsi || i == ELangUrdu?
1.7218 + dir==TBidiText::ERightToLeft : dir == TBidiText::ELeftToRight);
1.7219 + }
1.7220 + }
1.7221 +
1.7222 +_LIT(KMultiLine, "Many\x644\x633 runs\xD\xAwith\xDmany\xAtypes\x2028of\x2029\x633\x633 Linebreaks");
1.7223 +_LIT(KLineSep, "\x2028");
1.7224 +
1.7225 +/**
1.7226 + *
1.7227 + * void CTBiDi::NoLineBreakDrawTestL
1.7228 + *
1.7229 + * Test for TBidiText::DrawText
1.7230 + *
1.7231 + * Some Arabic text is drawn without any line break opportunities.
1.7232 + *
1.7233 + * The result should still be broken into screenwidths and drawn.
1.7234 + *
1.7235 + *
1.7236 + */
1.7237 +void CTBiDi::NoLineBreakDrawTestL()
1.7238 + {
1.7239 + INFO_PRINTF1(_L("TBidiText test - RightToLeftArabic draw test without line break opportunities\r\n"));
1.7240 +
1.7241 + TSize windowSize(400,200);
1.7242 +
1.7243 + RArray<TTestDataRun> runsArray(16);
1.7244 + CleanupClosePushL(runsArray);
1.7245 +
1.7246 + CFont* testFont = new(ELeave) CTestFont;
1.7247 + CleanupStack::PushL(testFont);
1.7248 +
1.7249 +
1.7250 + CTestGraphicsDevice* testDevice = CTestGraphicsDevice::NewL(windowSize);
1.7251 +
1.7252 + CleanupStack::PushL(testDevice);
1.7253 +
1.7254 + CGraphicsContext* tContext = NULL;
1.7255 +
1.7256 + TEST(testDevice->CreateContext(tContext) == KErrNone);
1.7257 + //note - no cleanupstack entry as the context is owned by the device
1.7258 +
1.7259 + CTestGraphicsContext* testContext = static_cast<CTestGraphicsContext*>(tContext);
1.7260 +
1.7261 +
1.7262 + //Create buffer to hold test data
1.7263 + HBufC* oldTextBufPtr = HBufC::NewLC(KBufferSize);
1.7264 +
1.7265 + TPtrC original;
1.7266 + TPtrC wrapped;
1.7267 +
1.7268 + TextIterator rIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.7269 +
1.7270 + TInt i;
1.7271 + TInt length;
1.7272 + TInt end;
1.7273 + MLineBreaker breaker;
1.7274 +
1.7275 + //Fill buffer with data
1.7276 + for (i = 0 ; i < KBufferSize ; ++i)
1.7277 + {
1.7278 + TUint s, e;
1.7279 + TText16 ch = rIterator.NextChar();
1.7280 + if (breaker.LineBreakClass(ch, s, e) == MLineBreaker::EAlLineBreakClass)
1.7281 + oldTextBufPtr->Des().Append(ch);
1.7282 + }
1.7283 +
1.7284 + TPtr oldText(oldTextBufPtr->Des());
1.7285 +
1.7286 + TBidiText* bidi = TBidiText::NewL(oldText, 50);
1.7287 +
1.7288 + CleanupStack::PushL(bidi);
1.7289 +
1.7290 + TInt comparedLength = (oldText.Length() < KBufferSize )? oldText.Length(): KBufferSize;
1.7291 +
1.7292 + TEST(oldText.Length() == bidi->Text().Length());
1.7293 +
1.7294 + TEST(TestTBidirectionalState::TextInSameOrder(oldText.Ptr(), bidi->Text().Ptr(), comparedLength));
1.7295 +
1.7296 + bidi->WrapText(400 , *testFont, 0);
1.7297 +
1.7298 + TEST(bidi->WrappingWidth() == 400);
1.7299 +
1.7300 + original.Set(bidi->Text());
1.7301 +
1.7302 + wrapped.Set(bidi->DisplayText());
1.7303 +
1.7304 +#ifdef PRINT_ARRAYS
1.7305 + _LIT(KOriginalTitle, "Original: \r\n");
1.7306 + _LIT(KDisplayTitle, "Display: \r\n");
1.7307 +
1.7308 + PrintTestData(KOriginalTitle, original);
1.7309 + PrintTestData(KDisplayTitle, wrapped);
1.7310 +
1.7311 +#endif // PRINT_ARRAYS
1.7312 +
1.7313 + //Using a font where every character is 10 pixels wide and wrapping to 400 pixels width,
1.7314 + //every 40 characters should be a Linebreak character, and each of those lines should be reversed.
1.7315 +
1.7316 + length = oldText.Length();
1.7317 + end = wrapped.Length();
1.7318 +
1.7319 + TEST(original.Length() == length);
1.7320 + TEST(end >= length);
1.7321 +
1.7322 + const TText* currentWrapped = wrapped.Ptr();
1.7323 + const TText* wrappedEnd = currentWrapped + wrapped.Length();
1.7324 + for (i = 0; i < length ; i += 40)
1.7325 + {
1.7326 + end = ((length-i) >= 40) ? i+40 : length;
1.7327 +
1.7328 + TTestDataRun runData;
1.7329 +
1.7330 + runData.iStart = i;
1.7331 + runData.iLength = end-i;
1.7332 +
1.7333 + runsArray.Append(runData);
1.7334 +
1.7335 + TEST( ( end-i <= oldText.Length() - i) && ( end-i <= wrappedEnd - currentWrapped));
1.7336 + const TText* endLine = TestTBidirectionalState::TextInReverseOrderIgnoringJoiners(
1.7337 + oldText.Ptr() + i, currentWrapped, end-i);
1.7338 + if (!endLine)
1.7339 + {
1.7340 + INFO_PRINTF3(_L("TBidiText test - wrapped - reverse order check failed for index %d out-index %d"),
1.7341 + i, currentWrapped - wrapped.Ptr());
1.7342 + TEST(EFalse);
1.7343 + }
1.7344 +
1.7345 + if (wrappedEnd <= endLine)
1.7346 + break;
1.7347 +
1.7348 + if (*endLine != 0x02028)
1.7349 + {
1.7350 + INFO_PRINTF3(_L("TBidiText test - wrapped - line terminator check failed for index %d out-index %d"),
1.7351 + i, currentWrapped - wrapped.Ptr());
1.7352 + TEST(EFalse);
1.7353 + }
1.7354 + currentWrapped = endLine + 1;
1.7355 + }
1.7356 +
1.7357 + TPoint origin(0,0);
1.7358 + TInt baseline_offset = testFont->BaselineOffsetInPixels();
1.7359 + bidi->DrawText(*testContext, origin, baseline_offset);
1.7360 +
1.7361 + //now check that DrawText passed the right data
1.7362 + for (i = 0 ; i < runsArray.Count() ; i++)
1.7363 + {
1.7364 + TPtrC spec(testContext->DisplayLine(i).LineData());
1.7365 + TEST( ( runsArray[i].iLength <= oldText.Length() - runsArray[i].iStart) && ( runsArray[i].iLength <= spec.Length()));
1.7366 + TEST(0 != TestTBidirectionalState::TextInReverseOrderIgnoringJoiners(
1.7367 + oldText.Ptr() + runsArray[i].iStart , spec.Ptr(), runsArray[i].iLength));
1.7368 + };
1.7369 +
1.7370 + INFO_PRINTF1(_L("TBidiText test - wrapped - display text test passed\r\n"));
1.7371 +
1.7372 + CleanupStack::PopAndDestroy(bidi);
1.7373 + CleanupStack::PopAndDestroy(oldTextBufPtr); //whatever is pushed by HBufC::NewLC
1.7374 + delete testContext;
1.7375 + CleanupStack::PopAndDestroy(testDevice);
1.7376 +
1.7377 + CleanupStack::PopAndDestroy(testFont);
1.7378 + CleanupStack::PopAndDestroy(); //closes runsArray
1.7379 + }
1.7380 +
1.7381 +/**
1.7382 + *
1.7383 + * void CTBiDi::RightToLeftArabicDrawTestL()
1.7384 + *
1.7385 + * Test for TBidiText::DrawText
1.7386 + *
1.7387 + * Some Arabic text is drawn with line break opportunities, but the resulting lines
1.7388 + * are still longer than the declared screen width. So every line becomes two lines.
1.7389 + *
1.7390 + */
1.7391 +void CTBiDi::RightToLeftArabicDrawTestL()
1.7392 + {
1.7393 + INFO_PRINTF1(_L("TBidiText test - RightToLeftArabic draw test with linebreak opportunities\r\n"));
1.7394 +
1.7395 + TSize windowSize(400,200);
1.7396 +
1.7397 + RArray<TTestDataRun> runsArray(16);
1.7398 + CleanupClosePushL(runsArray);
1.7399 +
1.7400 + CFont* testFont = new(ELeave) CTestFont;
1.7401 + CleanupStack::PushL(testFont);
1.7402 +
1.7403 + CTestGraphicsDevice* testDevice = CTestGraphicsDevice::NewL(windowSize);
1.7404 +
1.7405 + CleanupStack::PushL(testDevice);
1.7406 +
1.7407 + CGraphicsContext* tContext;
1.7408 +
1.7409 + TEST(testDevice->CreateContext(tContext) == KErrNone);
1.7410 + //note - no cleanupstack entry as the context is owned by the device
1.7411 +
1.7412 + CTestGraphicsContext* testContext = static_cast<CTestGraphicsContext*>(tContext);
1.7413 +
1.7414 +
1.7415 + //Create buffer to hold test data
1.7416 + HBufC* oldTextBufPtr = HBufC::NewLC(KBufferSize);
1.7417 +
1.7418 + TPtrC original;
1.7419 + TPtrC wrapped;
1.7420 +
1.7421 + TextIterator rIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.7422 +
1.7423 + TInt i;
1.7424 + TInt length;
1.7425 + TInt end;
1.7426 +
1.7427 + //Fill buffer with groups of 16 characters separated by single spaces
1.7428 + //Avoid a trailing space
1.7429 + for (i = 0 ; i < (KBufferSize-1) ; ++i)
1.7430 + {
1.7431 + if ( (i & 15) == 15)
1.7432 + {
1.7433 + oldTextBufPtr->Des().Append(0x020);
1.7434 + }
1.7435 + else
1.7436 + {
1.7437 + oldTextBufPtr->Des().Append(rIterator.NextChar());
1.7438 + }
1.7439 + }
1.7440 +
1.7441 + oldTextBufPtr->Des().Append(rIterator.NextChar()); //final character in buffer should not be a space
1.7442 +
1.7443 +
1.7444 + TPtr oldText(oldTextBufPtr->Des());
1.7445 +
1.7446 + TBidiText* bidi = TBidiText::NewL(oldText, 50);
1.7447 +
1.7448 + CleanupStack::PushL(bidi);
1.7449 +
1.7450 + TEST( (oldText.Length() == bidi->Text().Length() ) && (oldText.Length() == KBufferSize) );
1.7451 + TEST(TestTBidirectionalState::TextInSameOrder(oldText.Ptr(), bidi->Text().Ptr(), KBufferSize));
1.7452 +
1.7453 + bidi->WrapText(400 , *testFont, 0);
1.7454 +
1.7455 + TEST(bidi->WrappingWidth() == 400);
1.7456 +
1.7457 + original.Set(bidi->Text());
1.7458 +
1.7459 + wrapped.Set(bidi->DisplayText());
1.7460 +
1.7461 +#ifdef PRINT_ARRAYS
1.7462 + _LIT(KOriginalTitle, "Original: \r\n");
1.7463 + _LIT(KDisplayTitle, "Display: \r\n");
1.7464 +
1.7465 + PrintTestData(KOriginalTitle, original);
1.7466 + PrintTestData(KDisplayTitle, wrapped);
1.7467 +
1.7468 +#endif // PRINT_ARRAYS
1.7469 +
1.7470 + //Using a font where every character is 10 pixels wide and wrapping to 400 pixels width,
1.7471 + // The space every 32 characters should be replaced by a linebreak character
1.7472 +
1.7473 + length = oldText.Length();
1.7474 + end = wrapped.Length();
1.7475 +
1.7476 + TEST(original.Length() == length);
1.7477 +
1.7478 + for (i = 0; i < length ; i += 32)
1.7479 + {
1.7480 + TInt left = length-i;
1.7481 + TTestDataRun runData;
1.7482 + runData.iStart = i;
1.7483 +
1.7484 + if (left <= 33)
1.7485 + {
1.7486 + end = length;
1.7487 + runData.iLength = end - i;
1.7488 + }
1.7489 + else
1.7490 + {
1.7491 + end = i+32;
1.7492 + runData.iLength = 31;
1.7493 + };
1.7494 +
1.7495 + runsArray.Append(runData);
1.7496 +
1.7497 + TEST( (runData.iLength <= oldText.Length() - runData.iStart) && (runData.iLength <= wrapped.Length() - runData.iStart) );
1.7498 +
1.7499 + if (!TestTBidirectionalState::TextInReverseOrder(oldText.Ptr() + runData.iStart , wrapped.Ptr() + runData.iStart, runData.iLength))
1.7500 + {
1.7501 + INFO_PRINTF2(_L("TBidiText test - wrapped - reverse order check failed for index %d\r\n"), i);
1.7502 + TEST(EFalse);
1.7503 + }
1.7504 +
1.7505 + if (length-end < 32)
1.7506 + {
1.7507 + break; //don't expect an end of line on the last line
1.7508 + }
1.7509 +
1.7510 + if (wrapped[i+31] != 0x02028)
1.7511 + {
1.7512 + INFO_PRINTF2(_L("TBidiText test - wrapped - line terminator check failed for index %d\r\n"), i);
1.7513 + TEST(EFalse);
1.7514 + }
1.7515 +
1.7516 + }
1.7517 +
1.7518 + TPoint origin(0,0);
1.7519 + TInt baseline_offset = testFont->BaselineOffsetInPixels();
1.7520 + bidi->DrawText(*testContext, origin, baseline_offset);
1.7521 +
1.7522 + //now check that DrawText passed the right data
1.7523 + for (i = 0 ; i < runsArray.Count() ; i++)
1.7524 + {
1.7525 + TPtrC16 spec(testContext->DisplayLine(i).LineData());
1.7526 + TEST(spec.Length() == runsArray[i].iLength);
1.7527 + TEST( spec.Length() <= (oldText.Length() - runsArray[i].iStart) );
1.7528 + TEST(TestTBidirectionalState::TextInReverseOrder(oldText.Ptr() + runsArray[i].iStart , spec.Ptr(), spec.Length()));
1.7529 + };
1.7530 +
1.7531 + INFO_PRINTF1(_L("TBidiText test - wrapped - display text test passed\r\n"));
1.7532 +
1.7533 + CleanupStack::PopAndDestroy(bidi);
1.7534 + CleanupStack::PopAndDestroy(); //whatever is pushed by HBufC::NewLC
1.7535 + delete testContext;
1.7536 + CleanupStack::PopAndDestroy(testDevice);
1.7537 + CleanupStack::PopAndDestroy(testFont);
1.7538 + CleanupStack::PopAndDestroy(); //closes runsArray
1.7539 +
1.7540 + }
1.7541 +
1.7542 +/**
1.7543 + *
1.7544 + * void CTBiDi::LeftToRightDrawTestL()
1.7545 + *
1.7546 + * Test for TBidiText::DrawText
1.7547 + *
1.7548 + * Some Latin text is drawn with line breaks
1.7549 + *
1.7550 + */
1.7551 +void CTBiDi::LeftToRightDrawTestL()
1.7552 + {//as well as left to right text, this uses a variety of break opportunities.
1.7553 + INFO_PRINTF1(_L("TBidiText test - LeftToRight draw test\r\n"));
1.7554 +
1.7555 + TSize windowSize(100,400);
1.7556 +
1.7557 + RArray<TTestDataRun> runsArray(16);
1.7558 + CleanupClosePushL(runsArray);
1.7559 +
1.7560 + CFont* testFont = new(ELeave) CTestFont;
1.7561 + CleanupStack::PushL(testFont);
1.7562 +
1.7563 +
1.7564 + CTestGraphicsDevice* testDevice = CTestGraphicsDevice::NewL(windowSize);
1.7565 +
1.7566 + CleanupStack::PushL(testDevice);
1.7567 +
1.7568 + CGraphicsContext* tContext;
1.7569 +
1.7570 + TEST(testDevice->CreateContext(tContext) == KErrNone);
1.7571 + //note - no cleanupstack entry as the context is owned by the device
1.7572 +
1.7573 + CTestGraphicsContext* testContext = static_cast<CTestGraphicsContext*>(tContext);
1.7574 +
1.7575 +
1.7576 + //Create buffer to hold test data
1.7577 + HBufC* oldTextBufPtr = HBufC::NewLC(KBufferSize);
1.7578 +
1.7579 + TPtrC original;
1.7580 + TPtrC wrapped;
1.7581 +
1.7582 + TextIterator lIterator(KLeftToRight, KLeftToRightLength);
1.7583 +
1.7584 + TInt i;
1.7585 + TInt j;
1.7586 + TInt length;
1.7587 + TInt endOfWrapped;
1.7588 +
1.7589 + //Fill buffer with groups of 16 characters separated by single spaces
1.7590 + for (i = 0 ; i < KBufferSize ; ++i)
1.7591 + {
1.7592 + if ( (i & 15) == 15)
1.7593 + {
1.7594 + oldTextBufPtr->Des().Append(0x020);
1.7595 + }
1.7596 + else
1.7597 + {
1.7598 + oldTextBufPtr->Des().Append(lIterator.NextChar());
1.7599 + }
1.7600 + }
1.7601 +
1.7602 + TPtr oldText(oldTextBufPtr->Des());
1.7603 +
1.7604 + TBidiText* bidi = TBidiText::NewL(oldText, 200);
1.7605 +
1.7606 + CleanupStack::PushL(bidi);
1.7607 +
1.7608 + TEST( (oldText.Length() == bidi->Text().Length() ) && (oldText.Length() == KBufferSize) );
1.7609 +
1.7610 + TEST(TestTBidirectionalState::TextInSameOrder(oldText.Ptr(), bidi->Text().Ptr(), KBufferSize));
1.7611 +
1.7612 + bidi->WrapText(100 , *testFont, 0);
1.7613 +
1.7614 + TEST(bidi->WrappingWidth() == 100);
1.7615 +
1.7616 + original.Set(bidi->Text());
1.7617 +
1.7618 + wrapped.Set(bidi->DisplayText());
1.7619 +
1.7620 +#ifdef PRINT_ARRAYS
1.7621 + _LIT(KOriginalTitle, "Original: \r\n");
1.7622 + _LIT(KDisplayTitle, "Display: \r\n");
1.7623 +
1.7624 + PrintTestData(KOriginalTitle, original);
1.7625 + PrintTestData(KDisplayTitle, wrapped);
1.7626 +
1.7627 +#endif // PRINT_ARRAYS
1.7628 +
1.7629 + //Using a font where every character is 10 pixels wide and wrapping to 100 pixels width,
1.7630 + //after 10 characters should be a linebreak, then the next space is replaced by another linebreak and so on.
1.7631 +
1.7632 + length = oldText.Length();
1.7633 + endOfWrapped = wrapped.Length();
1.7634 +
1.7635 + TEST(original.Length() == length);
1.7636 + TEST(endOfWrapped >= length);
1.7637 +
1.7638 + TInt increment = 10;
1.7639 +
1.7640 + i = 0;
1.7641 + j = 0;
1.7642 +
1.7643 + for(i=0,j=0; i < length; i += increment, (increment = (increment == 5) ? 10 : 5))
1.7644 + {
1.7645 +
1.7646 + TTestDataRun runData;
1.7647 +
1.7648 + TInt endOfRun = ((length-i) > increment) ? i+increment : length;
1.7649 +
1.7650 + runData.iStart = i;
1.7651 + runData.iLength = endOfRun-i;
1.7652 +
1.7653 + runsArray.Append(runData);
1.7654 +
1.7655 + //make sure the array is not overread
1.7656 + TEST( (runData.iLength <= oldText.Length() - i) && (runData.iLength <= wrapped.Length() - j) );
1.7657 +
1.7658 + if (!TestTBidirectionalState::TextInSameOrder(oldText.Ptr() + i , wrapped.Ptr() + j, runData.iLength))
1.7659 + {
1.7660 + INFO_PRINTF3(_L("TBidiText test - wrapped - same order check failed for index %d out-index %d\r\n"), i, j);
1.7661 + TEST(EFalse);
1.7662 + }
1.7663 +
1.7664 + j += increment;
1.7665 +
1.7666 + if (j >= (endOfWrapped-1))
1.7667 + {
1.7668 + break;
1.7669 + }
1.7670 +
1.7671 + if (wrapped[j++] != 0x02028)
1.7672 + {
1.7673 + INFO_PRINTF3(_L("TBidiText test - wrapped - line terminator check failed for index %d out-index %d\r\n"), i, j-1);
1.7674 + TEST(EFalse);
1.7675 + }
1.7676 + if (increment == 5)
1.7677 + {
1.7678 + i++; //skip space at end of every 15 characters
1.7679 + };
1.7680 +
1.7681 +
1.7682 + }
1.7683 +
1.7684 + TPoint origin(0,0);
1.7685 + TInt baseline_offset = testFont->BaselineOffsetInPixels();
1.7686 + bidi->DrawText(*testContext, origin, baseline_offset);
1.7687 +
1.7688 + //now check that DrawText passed the right data
1.7689 + for (i = 0 ; i < (runsArray.Count()-1) ; i++)
1.7690 + {
1.7691 + TPoint line_origin(testContext->DisplayLine(i).Position());
1.7692 + TEST (line_origin.iY == (origin.iY + (i * baseline_offset)));
1.7693 + TPtrC16 spec(testContext->DisplayLine(i).LineData());
1.7694 + TTestDataRun run = runsArray[i];
1.7695 + TEST(spec.Length() == run.iLength);
1.7696 + //make sure the array is not overread
1.7697 + TEST(spec.Length() <= oldText.Length() - run.iStart);
1.7698 + TEST(TestTBidirectionalState::TextInSameOrder(oldText.Ptr() + run.iStart , spec.Ptr(), spec.Length()));
1.7699 + };
1.7700 +
1.7701 + INFO_PRINTF1(_L("TBidiText test - wrapped - display text test passed\r\n"));
1.7702 +
1.7703 + CleanupStack::PopAndDestroy(bidi);
1.7704 + CleanupStack::PopAndDestroy(); //whatever is pushed by HBufC::NewLC
1.7705 + delete testContext;
1.7706 + CleanupStack::PopAndDestroy(testDevice);
1.7707 + CleanupStack::PopAndDestroy(testFont);
1.7708 + CleanupStack::PopAndDestroy(); //closes runsArray
1.7709 +
1.7710 + }
1.7711 +
1.7712 +/**
1.7713 + *
1.7714 + * TBool CTBiDi::GlyphTestL
1.7715 + *
1.7716 + * Test function for glyph substitution
1.7717 + *
1.7718 + * @param "const TDesC16& aTitle"
1.7719 + * Reference to literal string used for logging. Id's the particular test
1.7720 + *
1.7721 + * @param "const TDesC16& aOriginal"
1.7722 + * Reference text
1.7723 + *
1.7724 + * @param "const TDesC16& aDesired"
1.7725 + * Reference to expected result following call to DisplayText
1.7726 + *
1.7727 + * @param "const TInt aWrapWidth"
1.7728 + * The maximum width of the text (in pixels)
1.7729 + *
1.7730 + */
1.7731 +TBool CTBiDi::GlyphTestL(const TDesC16& aTitle, const TDesC16& aOriginal, const TDesC16& aDesired, const TInt aWrapWidth)
1.7732 + {
1.7733 + TBool pass = ETrue;
1.7734 + INFO_PRINTF1(aTitle);
1.7735 +
1.7736 + TSize windowSize(400,200);
1.7737 +
1.7738 + CTestGraphicsDevice* testDevice = CTestGraphicsDevice::NewL(windowSize);
1.7739 + CleanupStack::PushL(testDevice);
1.7740 +
1.7741 + CFont* testFont;
1.7742 + CGraphicsContext* tContext;
1.7743 +
1.7744 + User::LeaveIfError(testDevice->CreateContext(tContext));
1.7745 + CleanupStack::PushL(tContext);
1.7746 +
1.7747 + User::LeaveIfError(testDevice->GetNearestFontToDesignHeightInPixels(testFont,TFontSpec(KArabicFontName,16)));
1.7748 +
1.7749 + TPtrC original;
1.7750 + TPtrC wrapped;
1.7751 + TPtrC desired(aDesired);
1.7752 + TInt desiredIndex = 0;
1.7753 + TInt desiredLength = desired.Length();
1.7754 +
1.7755 + TBidiText* bidi = TBidiText::NewL(aOriginal, 50);
1.7756 +
1.7757 + CleanupStack::PushL(bidi);
1.7758 +
1.7759 + bidi->WrapText(aWrapWidth , *testFont, 0);
1.7760 +
1.7761 + TEST(bidi->WrappingWidth() == aWrapWidth);
1.7762 +
1.7763 + original.Set(bidi->Text());
1.7764 +
1.7765 + wrapped.Set(bidi->DisplayText());
1.7766 +
1.7767 +
1.7768 + CFont::TPositionParam param;
1.7769 + param.iDirection = CFont::EHorizontal;
1.7770 + param.iText.Set(bidi->DisplayText());
1.7771 +
1.7772 + param.iPosInText = 0;
1.7773 + TInt end_char = wrapped.Length();
1.7774 +
1.7775 + pass = ETrue;
1.7776 +
1.7777 + while (param.iPosInText < end_char)
1.7778 + {
1.7779 + if (testFont->GetCharacterPosition(param)) //turn character(s) into glyphs
1.7780 + {
1.7781 + //some glyphs have been output
1.7782 + TInt i;
1.7783 + for (i = 0 ; i < param.iOutputGlyphs ; ++i)
1.7784 + {
1.7785 + pass = pass && (desiredIndex < desiredLength); //see if more glyphs generated than expected
1.7786 +
1.7787 + while (desired[desiredIndex] == KUnicodeNoSuchCharacter)
1.7788 + {
1.7789 + ++desiredIndex; //skip any padding
1.7790 + }
1.7791 +
1.7792 + pass = pass && (desired[desiredIndex] == param.iOutput[i].iCode);
1.7793 +
1.7794 + ++desiredIndex;
1.7795 + }
1.7796 + }
1.7797 + }
1.7798 + _LIT(KPassed, " passed\r\n");
1.7799 + _LIT(KFailed, " FAILED\r\n");
1.7800 +
1.7801 + if (pass)
1.7802 + {
1.7803 + INFO_PRINTF1(KPassed);
1.7804 + }
1.7805 + else
1.7806 + {
1.7807 + INFO_PRINTF1(KFailed);
1.7808 + _LIT(KOriginalTitle, "Original: \r\n");
1.7809 + _LIT(KDisplayTitle, "Display: \r\n");
1.7810 + _LIT(KDesiredTitle, "Desired: \r\n");
1.7811 + PrintTestData(KOriginalTitle, original);
1.7812 + PrintTestData(KDisplayTitle, wrapped);
1.7813 + PrintTestData(KDesiredTitle, desired);
1.7814 +
1.7815 + }
1.7816 +
1.7817 + CleanupStack::PopAndDestroy(bidi);
1.7818 + CleanupStack::PopAndDestroy(tContext);
1.7819 + CleanupStack::PopAndDestroy(testDevice);
1.7820 + delete ((CTestFont*)testFont); //this is to avoid compilation warnings as CFont desructor is private
1.7821 +
1.7822 + return pass;
1.7823 + }
1.7824 +
1.7825 +_LIT(KLamAlefIsolateTitle, "Lam-Alef Ligature Test (Alef-Lam in logical order) ");
1.7826 +_LIT(KLamAlefIsolate, " \x644\x627 ");
1.7827 +_LIT(KLamAlefIsolateDesired, " \xfefb ");
1.7828 +_LIT(KLamAlefTahTtitle, "Lam-Alef Tah Ligature Test (Tah Alef Lam in logical order) ");
1.7829 +_LIT(KLamAlefTah, " \x637\x644\x627 ");
1.7830 +_LIT(KLamAlefTahDesired, " \xfefc\xfec3 ");
1.7831 +_LIT(KTaaTaaTaaTitle, "Taa Taa Taa Shaping test ");
1.7832 +_LIT(KTaaTaaTaa, " \x637\x637\x637 ");
1.7833 +_LIT(KTaaTaaTaaDesired, " \xfec2\xfec4\xfec3 ");
1.7834 +
1.7835 +
1.7836 +/**
1.7837 + *
1.7838 + * TBool CTBiDi::LigatureTextsL
1.7839 + *
1.7840 + * Test function of glyphs using ligatures
1.7841 + *
1.7842 + */
1.7843 +void CTBiDi::LigatureTestsL()
1.7844 + {
1.7845 + TInt passed = 0;
1.7846 + TInt wrapWidth = 400;
1.7847 + //set the wrapping width very large - we don't want these tests to linewrap.
1.7848 +
1.7849 + if (GlyphTestL(KLamAlefIsolateTitle, KLamAlefIsolate, KLamAlefIsolateDesired, wrapWidth))
1.7850 + {
1.7851 + ++passed;
1.7852 + }
1.7853 + if (GlyphTestL(KLamAlefTahTtitle, KLamAlefTah, KLamAlefTahDesired, wrapWidth))
1.7854 + {
1.7855 + ++passed;
1.7856 + }
1.7857 + if (GlyphTestL(KTaaTaaTaaTitle, KTaaTaaTaa, KTaaTaaTaaDesired, wrapWidth))
1.7858 + {
1.7859 + ++passed;
1.7860 + }
1.7861 + TEST(passed == 3);
1.7862 + }
1.7863 +
1.7864 +_LIT(KIllegalBreakTitle, "Arabic Illegal Linebreak Test");
1.7865 +
1.7866 +/**
1.7867 +*
1.7868 +* void CTBiDi::ArabicIllegalLinebreakTestsL
1.7869 +*
1.7870 +* Tests that when rendering a long Arabic "word" that needs to be broken up part-way
1.7871 +* due to screen width, that the characters inside the word are still rendered as their
1.7872 +* medial form rather than incorrectly making them initial final or isolated.
1.7873 +*/
1.7874 +void CTBiDi::ArabicIllegalLinebreakTestsL()
1.7875 + {
1.7876 + static const TInt KWrappingWidth = 100; //in pixels
1.7877 + static const TInt KLineWidth = 10; //not including linebreak
1.7878 + static const TInt KInputLength = 150;
1.7879 + static const TInt KOutputLength = ((KInputLength/(KLineWidth-1))+1)*KLineWidth; //allow for linebreak characters
1.7880 +
1.7881 + TBuf<KInputLength> iBuffer; //holds input data
1.7882 + TBuf<KOutputLength> oBuffer; //holds expected glyphs that the input will be turned into
1.7883 +
1.7884 + TextIterator iterator(KArabicDualJoiningLettersData, KArabicDualJoiningLettersLength);
1.7885 +
1.7886 + while (!iterator.Wrapped())
1.7887 + {
1.7888 + TInt i;
1.7889 + TInt j;
1.7890 + TInt startOfLine;
1.7891 + iBuffer.Zero();
1.7892 + oBuffer.FillZ(oBuffer.MaxLength());
1.7893 + TUint16 ch = iterator.NextChar();
1.7894 + TUint16 medial_ch;
1.7895 +
1.7896 + startOfLine = 0;
1.7897 + j = KLineWidth;
1.7898 + iBuffer.Append(KUnicodeSpace);
1.7899 + oBuffer[j--] = KUnicodeLinebreak;
1.7900 + oBuffer[j--] = KUnicodeSpace;
1.7901 + iBuffer.Append(ch);
1.7902 + oBuffer[j--] = GetInitialForm(ch);
1.7903 +
1.7904 + //Now compose a very long nonsense word in Arabic.
1.7905 + //At the same time insert the corresponding
1.7906 + for (i = 1; i < (iBuffer.MaxLength()-3) ; ++i)
1.7907 + {
1.7908 + do
1.7909 + {
1.7910 + ch = iterator.NextChar();
1.7911 + medial_ch = GetMedialForm(ch);
1.7912 + }
1.7913 + while (medial_ch == ch); //skip characters without medial form
1.7914 + iBuffer.Append(ch);
1.7915 + oBuffer[j--] = medial_ch;;
1.7916 + if (j < startOfLine)
1.7917 + {
1.7918 + startOfLine += KLineWidth+1;
1.7919 + j = startOfLine + KLineWidth;
1.7920 + oBuffer[j--] = KUnicodeLinebreak;
1.7921 + }
1.7922 + }
1.7923 + ch = iterator.NextChar();
1.7924 + iBuffer.Append(ch);
1.7925 + oBuffer[j--] = GetFinalForm(ch);
1.7926 + iBuffer.Append(KUnicodeSpace);
1.7927 + oBuffer[j--] = KUnicodeSpace; //Trailing spaces are not supressed, hence add space to test output
1.7928 + for (; j >= startOfLine ; --j)
1.7929 + {
1.7930 + oBuffer[j] = KUnicodeNoSuchCharacter;
1.7931 + }
1.7932 +
1.7933 + //You might be expecting to see some zero-width joiners in the output.
1.7934 + //In fact these are suppressed by the font object used by GlyphTestL
1.7935 + //so we never see them on the outside.
1.7936 +
1.7937 + TBool passed = GlyphTestL(KIllegalBreakTitle, iBuffer, oBuffer, KWrappingWidth);
1.7938 + if (!passed)
1.7939 + {
1.7940 + TEST(EFalse);
1.7941 + }
1.7942 + }
1.7943 + }
1.7944 +
1.7945 +/**
1.7946 + *
1.7947 + * void CTBiDi::DoTestTextDrawPanic()
1.7948 + *
1.7949 + * Panic Test for TBidiText::DrawText
1.7950 + *
1.7951 + * This attempts to call DrawText without first calling WrapText and consequently is expected to panic.
1.7952 + *
1.7953 + */
1.7954 +void CTBiDi::DoTestTextDrawPanic()
1.7955 + {
1.7956 + TSize windowSize(100,100);
1.7957 +
1.7958 + CTestGraphicsDevice* testDevice = CTestGraphicsDevice::NewL(windowSize);
1.7959 +
1.7960 + CleanupStack::PushL(testDevice);
1.7961 +
1.7962 + CGraphicsContext* testContext;
1.7963 +
1.7964 + TEST(testDevice->CreateContext(testContext) == KErrNone);
1.7965 + //note - no cleanupstack entry as the context is owned by the device
1.7966 +
1.7967 + _LIT(KBidiText, "This is just a random lump of text");
1.7968 +
1.7969 + TBidiText* bidi = TBidiText::NewL(KBidiText, 50);
1.7970 +
1.7971 + CleanupStack::PushL(bidi);
1.7972 +
1.7973 + TPoint centre(50,50);
1.7974 +
1.7975 + bidi->DrawText(*testContext, centre);
1.7976 +
1.7977 + CleanupStack::PopAndDestroy(bidi);
1.7978 + CleanupStack::PopAndDestroy(testDevice);
1.7979 + }
1.7980 +
1.7981 +/**
1.7982 + *
1.7983 + * static TInt TestDrawTextPanicThread
1.7984 + *
1.7985 + * Panic Test for TBidiText::DrawText
1.7986 + *
1.7987 + * This calls DoTestDrawTextPanic within its own cleanup stack and TRAPD as it is in
1.7988 + * a separate thread.
1.7989 + *
1.7990 + */
1.7991 +static TInt TestDrawTextPanicThread(TAny* aData)
1.7992 + {
1.7993 + //Tests that BidiText::DrawText panics if called without first calling
1.7994 + //BidiText::WrapText.
1.7995 +
1.7996 + CTBiDi* theTest = static_cast<CTBiDi*> (aData);
1.7997 + CTrapCleanup* tc = CTrapCleanup::New();
1.7998 + if (!tc)
1.7999 + return KErrNoMemory;
1.8000 +
1.8001 + TRAPD(err, theTest->DoTestTextDrawPanic());
1.8002 +
1.8003 + delete tc;
1.8004 +
1.8005 + return err;
1.8006 + }
1.8007 +
1.8008 +/**
1.8009 + *
1.8010 + * TInt CTBiDi::TestPanic
1.8011 + *
1.8012 + * Panic Test for TBidiText
1.8013 + *
1.8014 + * This creates a separate thread to run the test in as normally a panic
1.8015 + * will stop the test process.
1.8016 + *
1.8017 + */
1.8018 +TInt CTBiDi::TestPanic(TThreadFunction aFunction)
1.8019 + {
1.8020 + // Increment the test thread counter to create threads with different names and thus avoid conflict of kernel resources
1.8021 + ++iTestThreadCounter;
1.8022 + _LIT(KThreadNameFormat, "DeliberatePanicPleaseIgnore%d");
1.8023 + TBuf<256> threadNameBuf;
1.8024 + threadNameBuf.Format(KThreadNameFormat, iTestThreadCounter);
1.8025 +
1.8026 + TInt KHeapSize = 8192;
1.8027 + RThread thread;
1.8028 + TRequestStatus threadstat;
1.8029 + TBool jit = User::JustInTime();
1.8030 + User::SetJustInTime(EFalse);
1.8031 + TInt ret = thread.Create(threadNameBuf, aFunction, KDefaultStackSize, KHeapSize, KHeapSize, this);
1.8032 + TEST(KErrNone == ret);
1.8033 + thread.Logon(threadstat);
1.8034 + thread.Resume();
1.8035 + User::WaitForRequest(threadstat);
1.8036 + TEST (thread.ExitType() == EExitPanic);
1.8037 + TInt reason = thread.ExitReason();
1.8038 + thread.Close();
1.8039 + User::SetJustInTime(jit);
1.8040 + return reason;
1.8041 + }
1.8042 +
1.8043 +/**
1.8044 + *
1.8045 + * void CTBiDi::TRunInfoCompactReorderTest
1.8046 + *
1.8047 + * Tests functionality contained within TRunInfoCompact
1.8048 + *
1.8049 + */
1.8050 +void CTBiDi::TRunInfoCompactReorderTest()
1.8051 + {
1.8052 + _LIT(KLetters, "XYZjklmnPQR");
1.8053 + static const struct {
1.8054 + TBool iJoinsAtStart;
1.8055 + TBool iJoinsAtEnd;
1.8056 + TBool iTruncated;
1.8057 + TInt iStart;
1.8058 + TInt iEnd;
1.8059 + const TText* iExpected;} testData[] =
1.8060 + {
1.8061 + {EFalse, EFalse, EFalse, 4, 7, _S("klm")},
1.8062 + {EFalse, EFalse, EFalse, 3, 7, _S("jklm")},
1.8063 + {EFalse, EFalse, EFalse, 4, 8, _S("klmn")},
1.8064 + {EFalse, EFalse, EFalse, 2, 9, _S("jklmn")},
1.8065 + {ETrue, ETrue, EFalse, 2, 9, _S("\x200Djklmn\x200D")},
1.8066 + {EFalse, ETrue, EFalse, 2, 9, _S("jklmn\x200D")},
1.8067 + {ETrue, EFalse, EFalse, 2, 9, _S("\x200Djklmn")},
1.8068 + {EFalse, EFalse, ETrue, 4, 8, _S("klmn")},
1.8069 + {EFalse, EFalse, ETrue, 2, 9, _S("jklmn\x2029")},
1.8070 + {ETrue, ETrue, ETrue, 2, 9, _S("\x200Djklmn\x200D\x2029")},
1.8071 + {EFalse, ETrue, ETrue, 2, 9, _S("jklmn\x200D\x2029")},
1.8072 + {ETrue, EFalse, ETrue, 2, 9, _S("\x200Djklmn\x2029")},
1.8073 + {ETrue, ETrue, ETrue, 8, 9, _S("\x200D\x2029")},
1.8074 + {ETrue, ETrue, ETrue, 8, 8, _S("")},
1.8075 + {ETrue, ETrue, ETrue, 9, 9, _S("")},
1.8076 + {ETrue, ETrue, ETrue, 4, 4, _S("")},
1.8077 + {ETrue, ETrue, ETrue, 4, 5, _S("k")},
1.8078 + {EFalse, EFalse, EFalse, 7, 4, _S("mlk")},
1.8079 + {EFalse, EFalse, EFalse, 7, 3, _S("mlkj")},
1.8080 + {EFalse, EFalse, EFalse, 8, 4, _S("nmlk")},
1.8081 + {EFalse, EFalse, EFalse, 9, 2, _S("nmlkj")},
1.8082 + {ETrue, ETrue, EFalse, 9, 2, _S("\x200Dnmlkj\x200D")},
1.8083 + {EFalse, ETrue, EFalse, 9, 2, _S("\x200Dnmlkj")},
1.8084 + {ETrue, EFalse, EFalse, 9, 2, _S("nmlkj\x200D")},
1.8085 + {EFalse, EFalse, ETrue, 8, 4, _S("nmlk")},
1.8086 + {EFalse, EFalse, ETrue, 9, 2, _S("\x2029nmlkj")},
1.8087 + {ETrue, ETrue, ETrue, 9, 2, _S("\x2029\x200Dnmlkj\x200D")},
1.8088 + {EFalse, ETrue, ETrue, 9, 2, _S("\x2029\x200Dnmlkj")},
1.8089 + {ETrue, EFalse, ETrue, 9, 2, _S("\x2029nmlkj\x200D")},
1.8090 + {ETrue, ETrue, ETrue, 9, 8, _S("\x2029\x200D")},
1.8091 + {ETrue, ETrue, ETrue, 5, 4, _S("k")},
1.8092 + };
1.8093 + INFO_PRINTF1(_L("TRunInfoCompact::Reorder test\r\n"));
1.8094 + TRunInfoCompact::TReorderingContext context;
1.8095 + context.iSource = KLetters().Ptr();
1.8096 + context.iStart = 3;
1.8097 + context.iEnd = 8;
1.8098 + TText buffer[20];
1.8099 + TInt numTestCases = sizeof(testData)/sizeof(testData[0]);
1.8100 + TBool allTestsPassed = ETrue;
1.8101 + for (TInt i = 0; i != numTestCases; ++i)
1.8102 + {
1.8103 + TInt start = testData[i].iStart;
1.8104 + TInt end = testData[i].iEnd;
1.8105 + TBool reverse = EFalse;
1.8106 + if (end < start)
1.8107 + {
1.8108 + reverse = ETrue;
1.8109 + start = testData[i].iEnd;
1.8110 + end = testData[i].iStart;
1.8111 + }
1.8112 + TInt length = end - start;
1.8113 + TRunInfoCompact run(start, length, reverse);
1.8114 + context.iJoinsAtStart = testData[i].iJoinsAtStart;
1.8115 + context.iJoinsAtEnd = testData[i].iJoinsAtEnd;
1.8116 + context.iTruncation = testData[i].iTruncated ? 0x2029 : 0xFFFF;
1.8117 + TText* resultEnd = buffer;
1.8118 + TRAPD(err, resultEnd = run.Reorder(buffer, context));
1.8119 + TEST(err == KErrNone);
1.8120 + TPtrC result(buffer, resultEnd - buffer);
1.8121 + TPtrC expected(testData[i].iExpected);
1.8122 + if(result.Compare(expected) != 0)
1.8123 + {
1.8124 + INFO_PRINTF2(_L("TRunInfoCompactReorderTest %d Failed\r\n"), i+1);
1.8125 + PrintTestData(_L("Result "), result);
1.8126 + PrintTestData(_L("Expected "), expected);
1.8127 + allTestsPassed = EFalse;
1.8128 + };
1.8129 +
1.8130 + }
1.8131 + TEST(allTestsPassed);
1.8132 + }
1.8133 +
1.8134 +/**
1.8135 + *
1.8136 + * void CTBiDi::TBidiLogicalToVisualGetVisualLineTest
1.8137 + *
1.8138 + * Tests functionality contained within TBidiLogicalToVisual
1.8139 + *
1.8140 + */
1.8141 +void CTBiDi::TBidiLogicalToVisualGetVisualLineTest()
1.8142 + {
1.8143 + TBidirectionalState::TRunInfo runArray[4];
1.8144 + // only iStart, iLength and iDirection are important
1.8145 + // logical: 0>0>0>0>0>3<3<3<1<1<1<1<2>2>2>2>2>2>
1.8146 + // visual: 01234BA98CDEFGH765
1.8147 + // This text would never really be re-ordered in this way.
1.8148 + // Joiners are between 5 and 6, and 9 and 10.
1.8149 + _LIT(KBidi, "GHIJK\x0643\x0631\x0644\x0621\x0645\x0627\x0639LMNOPQ");
1.8150 + runArray[0].iStart = 0;
1.8151 + runArray[0].iLength = 5;
1.8152 + runArray[0].iDirection = 0;
1.8153 + runArray[1].iStart = 8;
1.8154 + runArray[1].iLength = 4;
1.8155 + runArray[1].iDirection = 1;
1.8156 + runArray[2].iStart = 12;
1.8157 + runArray[2].iLength = 6;
1.8158 + runArray[2].iDirection = 0;
1.8159 + runArray[3].iStart = 5;
1.8160 + runArray[3].iLength = 3;
1.8161 + runArray[3].iDirection = 1;
1.8162 +
1.8163 + TBidiLogicalToVisual conv(KBidi, EFalse, runArray, 4);
1.8164 + // We won't call TBidiLogicalToVisual::Reorder(), because we are using the
1.8165 + // data as-is as test data.
1.8166 + static const struct {
1.8167 + TInt iStart;
1.8168 + TInt iEnd;
1.8169 + TBool iTruncated;
1.8170 + const TText* iExpected;
1.8171 + }
1.8172 + testData[] =
1.8173 + {
1.8174 + {0, 18, EFalse, _S("GHIJK\x0639\x0627\x0645\x0621LMNOPQ\x0644\x0631\x0643")},
1.8175 + {0, 17, ETrue, _S("GHIJK\x0639\x0627\x0645\x0621LMNOP\x2026\x0644\x0631\x0643")},
1.8176 + {0, 13, ETrue, _S("GHIJK\x0639\x0627\x0645\x0621L\x2026\x0644\x0631\x0643")},
1.8177 + {0, 12, ETrue, _S("GHIJK\x0639\x0627\x0645\x0621\x2026\x0644\x0631\x0643")},
1.8178 + {0, 11, ETrue, _S("GHIJK\x2026\x0627\x0645\x0621\x0644\x0631\x0643")},
1.8179 + {0, 10, ETrue, _S("GHIJK\x2026\x200D\x0645\x0621\x0644\x0631\x0643")},
1.8180 + {4, 10, EFalse, _S("K\x200D\x0645\x0621\x0644\x0631\x0643")},
1.8181 + {5, 10, ETrue, _S("\x2026\x200D\x0645\x0621\x0644\x0631\x0643")},
1.8182 + {6, 10, ETrue, _S("\x2026\x200D\x0645\x0621\x0644\x0631\x200D")},
1.8183 + {7, 10, ETrue, _S("\x2026\x200D\x0645\x0621\x0644")},
1.8184 + {8, 10, ETrue, _S("\x2026\x200D\x0645\x0621")},
1.8185 + {8, 9, ETrue, _S("\x2026\x0621")},
1.8186 + {8, 9, EFalse, _S("\x0621")},
1.8187 + {9, 9, ETrue, _S("\x2026")},
1.8188 + };
1.8189 +
1.8190 + TBuf<100> result;
1.8191 + TInt numTestCases = sizeof(testData)/sizeof(testData[0]);
1.8192 + for (TInt i = 0; i != numTestCases; ++i)
1.8193 + {
1.8194 + conv.GetVisualLine(result,
1.8195 + testData[i].iStart, testData[i].iEnd,
1.8196 + testData[i].iTruncated? 0x2026 : 0xFFFF);
1.8197 + TPtrC expected(testData[i].iExpected);
1.8198 + TEST(0 == result.Compare(expected));
1.8199 + }
1.8200 + }
1.8201 +
1.8202 +/**
1.8203 +TBidiLogicalToVisualOOMTest
1.8204 +
1.8205 +This class contains functions that support tests based on the examples given by
1.8206 +Unicode Standard Annexe 9
1.8207 +
1.8208 +The class contains methods for comparing an example text's logical order with it's display order
1.8209 +
1.8210 +*/
1.8211 +class TBidiLogicalToVisualOOMTest : public MOOMTest
1.8212 + {
1.8213 + const TDesC* iText;
1.8214 + TInt iStart;
1.8215 + TInt iEnd;
1.8216 + TBool iRightToLeft;
1.8217 + const TDesC* iReorderedText;
1.8218 + TInt iReturnValue;
1.8219 + TBidirectionalState::TRunInfo* iRunInfoArray;
1.8220 + TInt iRunInfoLength;
1.8221 + TBuf<80> iLine;
1.8222 + CTBiDi* iTest;
1.8223 +public:
1.8224 + TBidiLogicalToVisualOOMTest(
1.8225 + const TDesC& aText,
1.8226 + const TInt aStart,
1.8227 + const TInt aEnd,
1.8228 + const TBool aRightToLeft,
1.8229 + const TDesC& aReorderedText,
1.8230 + TBidirectionalState::TRunInfo* aRunInfoArray,
1.8231 + TInt aRunInfoLength,
1.8232 + CTBiDi* aTest )
1.8233 + : iText(&aText),
1.8234 + iStart(aStart),
1.8235 + iEnd(aEnd),
1.8236 + iRightToLeft(aRightToLeft),
1.8237 + iReorderedText(&aReorderedText),
1.8238 + iReturnValue(0) ,
1.8239 + iRunInfoArray(aRunInfoArray),
1.8240 + iRunInfoLength(aRunInfoLength),
1.8241 + iTest(aTest)
1.8242 + {
1.8243 + }
1.8244 + virtual ~TBidiLogicalToVisualOOMTest() { TearDown(); }
1.8245 + void Initialize(const TDesC& aText, TInt aStart, TInt aEnd, TBool aRightToLeft,
1.8246 + const TDesC& aReorderedText)
1.8247 + {
1.8248 + TearDown();
1.8249 + iText = &aText;
1.8250 + iStart = aStart;
1.8251 + iEnd = aEnd;
1.8252 + iRightToLeft = aRightToLeft;
1.8253 + iReorderedText = &aReorderedText;
1.8254 + }
1.8255 + void SetUpL()
1.8256 + {
1.8257 + iLine.Zero();
1.8258 + iReturnValue = 0;
1.8259 + }
1.8260 + void ManipulateL()
1.8261 + {
1.8262 + TBidiLogicalToVisual ltv(*iText, iRightToLeft, iRunInfoArray, iRunInfoLength);
1.8263 + ltv.Reorder(); //map text to visual order
1.8264 + ltv.GetVisualLine(iLine, iStart, iEnd, 0xFFFF);
1.8265 + iTest->TEST(StringsMatch(iReorderedText->Ptr(), iReorderedText->Length(), iLine.Ptr(), iReorderedText->Length()));
1.8266 + //Because this is an OOM test the contents of Line are the results of repeated calls, so the
1.8267 + //length of iLine is greater than that of iReorderedText. However comparing the first copy suffices.
1.8268 + //This won't detect the algorithm supplying more characters than expected, but other tests in the suite
1.8269 + //will detect that.
1.8270 + User::LeaveIfError(iReturnValue);
1.8271 + }
1.8272 + static TBool IsIgnorable(TText a)
1.8273 + {
1.8274 + TBool ignorable = EFalse;
1.8275 + switch(a) {
1.8276 + case KUnicodeNoSuchCharacter:
1.8277 + case KUnicodeLeftToRightMark:
1.8278 + case KUnicodeRightToLeftMark:
1.8279 + case KUnicodeLeftToRightEmbedding:
1.8280 + case KUnicodeRightToLeftEmbedding:
1.8281 + case KUnicodePopDirectionFormat:
1.8282 + case KUnicodeLeftToRightOverride:
1.8283 + case KUnicodeRightToLeftOverride:
1.8284 + ignorable = ETrue;
1.8285 + break;
1.8286 + default:
1.8287 + break;
1.8288 + }
1.8289 + return ignorable;
1.8290 + }
1.8291 + static TBool StringsMatch(const TText* a1, TInt a1Len,
1.8292 + const TText* a2, TInt a2Len)
1.8293 + {
1.8294 + const TText* a1End = a1 + a1Len;
1.8295 + const TText* a2End = a2 + a2Len;
1.8296 + for (;;)
1.8297 + {
1.8298 + while (a1 != a1End && IsIgnorable(*a1))
1.8299 + ++a1;
1.8300 + while (a2 != a2End && IsIgnorable(*a2))
1.8301 + ++a2;
1.8302 + if (a1 == a1End)
1.8303 + return a2 == a2End;
1.8304 + else if (a2 == a2End)
1.8305 + return EFalse;
1.8306 + if (*a1 != *a2)
1.8307 + return EFalse;
1.8308 + ++a1;
1.8309 + ++a2;
1.8310 + }
1.8311 + }
1.8312 + void TearDown()
1.8313 + {
1.8314 + iLine.Zero();
1.8315 + }
1.8316 + };
1.8317 +
1.8318 +void CTBiDi::DEF043323L()
1.8319 + {
1.8320 + const TUint16 KArabicPhrase[] =
1.8321 + {
1.8322 + KKaf, KAlef, KFeh, KYeh, KTeh, KYeh, KReh, KYeh, KAlef, KUnicodeSpace,
1.8323 + KNoon, KAlef, KNoon, KAlef
1.8324 + };
1.8325 + const TUint16 KReversedArabicPhrase[] =
1.8326 + {
1.8327 + KAlef, KNoon, KAlef, KNoon,
1.8328 + KUnicodeSpace, KAlef, KYeh, KReh, KYeh, KTeh, KYeh, KFeh, KAlef, KKaf,
1.8329 + KEllipsis
1.8330 + };
1.8331 + TPtrC16 phrase(KArabicPhrase, sizeof(KArabicPhrase)/sizeof(KArabicPhrase[0]));
1.8332 + TBidiText* text = TBidiText::NewL(phrase, 3);
1.8333 + CleanupStack::PushL(text);
1.8334 + CFont* font = new (ELeave) CTestFont;
1.8335 + CleanupStack::PushL(font);
1.8336 + // wrap to 3 lines, lengths 50/40/40, no truncation character
1.8337 + text->WrapText(50, *font, 0);
1.8338 + TEST(text->NumberOfLinesInDisplayText() == 3);
1.8339 + TInt width;
1.8340 + TPtrC16 line = text->LineOfDisplayText(0, width);
1.8341 + TPtrC16 expectedLine(KReversedArabicPhrase + 9, 5);
1.8342 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8343 + TEST(width == 50);
1.8344 + line.Set( text->LineOfDisplayText(1, width));
1.8345 + expectedLine.Set(KReversedArabicPhrase + 5, 4);
1.8346 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8347 + TEST(width == 40);
1.8348 + line.Set(text->LineOfDisplayText(2, width));
1.8349 + expectedLine.Set(KReversedArabicPhrase, 4);
1.8350 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8351 + TEST(width == 40);
1.8352 + // wrap to 2 lines, lengths 90/40, no truncation character
1.8353 + text->WrapText(90, *font, 0, 2);
1.8354 + TEST(text->NumberOfLinesInDisplayText() == 2);
1.8355 + text->WrapText(90, *font, 0, 3);
1.8356 + TEST(text->NumberOfLinesInDisplayText() == 2);
1.8357 + line.Set(text->LineOfDisplayText(0, width));
1.8358 + expectedLine.Set(KReversedArabicPhrase + 5, 9);
1.8359 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8360 + TEST(width == 90);
1.8361 + line.Set(text->LineOfDisplayText(1, width));
1.8362 + expectedLine.Set(KReversedArabicPhrase, 4);
1.8363 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8364 + TEST(width == 40);
1.8365 + // wrap to 2 lines, lengths 20/20, truncation character
1.8366 + text->WrapText(20, *font, 0, 2);
1.8367 + TEST(text->NumberOfLinesInDisplayText() == 2);
1.8368 + line.Set(text->LineOfDisplayText(0, width));
1.8369 + expectedLine.Set(KReversedArabicPhrase + 12, 2);
1.8370 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8371 + TEST(width == 20);
1.8372 + line.Set(text->LineOfDisplayText(1, width));
1.8373 + TEST(width == 20);
1.8374 + expectedLine.Set(KReversedArabicPhrase + 11, 1);
1.8375 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8376 + expectedLine.Set(KReversedArabicPhrase + 14, 1);
1.8377 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8378 + // lengths 30/30, truncation character
1.8379 + text->WrapText(30, *font, 0, 2);
1.8380 + TEST(text->NumberOfLinesInDisplayText() == 2);
1.8381 + line.Set(text->LineOfDisplayText(0, width));
1.8382 + expectedLine.Set(KReversedArabicPhrase + 11, 3);
1.8383 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8384 + TEST(width == 30);
1.8385 + line.Set(text->LineOfDisplayText(1, width));
1.8386 + TEST(width == 30);
1.8387 + expectedLine.Set(KReversedArabicPhrase + 9, 2);
1.8388 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8389 + expectedLine.Set(KReversedArabicPhrase + 14, 1);
1.8390 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8391 + // lengths 40/40, truncation character
1.8392 + text->WrapText(40, *font, 0, 2);
1.8393 + TEST(text->NumberOfLinesInDisplayText() == 2);
1.8394 + line.Set(text->LineOfDisplayText(0, width));
1.8395 + expectedLine.Set(KReversedArabicPhrase + 10, 4);
1.8396 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8397 + TEST(width == 40);
1.8398 + line.Set(text->LineOfDisplayText(1, width));
1.8399 + TEST(width == 40);
1.8400 + expectedLine.Set(KReversedArabicPhrase + 7, 3);
1.8401 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8402 + expectedLine.Set(KReversedArabicPhrase + 14, 1);
1.8403 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8404 + // lengths 50/50, truncation character
1.8405 + text->WrapText(50, *font, 0, 2);
1.8406 + TEST(text->NumberOfLinesInDisplayText() == 2);
1.8407 + line.Set(text->LineOfDisplayText(0, width));
1.8408 + expectedLine.Set(KReversedArabicPhrase + 9, 5);
1.8409 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8410 + TEST(width == 50);
1.8411 + line.Set(text->LineOfDisplayText(1, width));
1.8412 + TEST(width == 50);
1.8413 + expectedLine.Set(KReversedArabicPhrase + 5, 4);
1.8414 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8415 + expectedLine.Set(KReversedArabicPhrase + 14, 1);
1.8416 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8417 + // length 100, truncation character
1.8418 + text->WrapText(100, *font, 0, 1);
1.8419 + TEST(text->NumberOfLinesInDisplayText() == 1);
1.8420 + line.Set(text->LineOfDisplayText(0, width));
1.8421 + expectedLine.Set(KReversedArabicPhrase + 5, 9);
1.8422 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8423 + TEST(width == 100);
1.8424 + expectedLine.Set(KReversedArabicPhrase + 14, 1);
1.8425 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8426 + // length 120, truncation character: this caught the defect
1.8427 + text->WrapText(110, *font, 0, 1);
1.8428 + TEST(text->NumberOfLinesInDisplayText() == 1);
1.8429 + line.Set(text->LineOfDisplayText(0, width));
1.8430 + // the space should not be present, so only 100 width
1.8431 + expectedLine.Set(KReversedArabicPhrase + 5, 9);
1.8432 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8433 + TEST(width == 100);
1.8434 + expectedLine.Set(KReversedArabicPhrase + 14, 1);
1.8435 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8436 + // length 120, truncation character
1.8437 + text->WrapText(120, *font, 0, 1);
1.8438 + TEST(text->NumberOfLinesInDisplayText() == 1);
1.8439 + line.Set(text->LineOfDisplayText(0, width));
1.8440 + expectedLine.Set(KReversedArabicPhrase + 3, 11);
1.8441 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8442 + TEST(width == 120);
1.8443 + expectedLine.Set(KReversedArabicPhrase + 14, 1);
1.8444 + TEST(line.Find(expectedLine) != KErrNotFound);
1.8445 + CleanupStack::PopAndDestroy(font);
1.8446 + CleanupStack::PopAndDestroy(text);
1.8447 + }
1.8448 +
1.8449 +void CTBiDi::DEF052191L()
1.8450 + {
1.8451 + _LIT(KTwoLines, "First line.\nSecond line.");
1.8452 + CFont* font = new (ELeave) CTestFont;
1.8453 + CleanupStack::PushL(font);
1.8454 + TBidiText* text = TBidiText::NewL(KTwoLines, 16);
1.8455 + CleanupStack::PushL(text);
1.8456 + text->WrapText(240, *font, NULL);
1.8457 + TEST(text->NumberOfLinesInDisplayText() == 2); //before the fix this used to return 3
1.8458 + CleanupStack::PopAndDestroy(2); //font and text
1.8459 + }
1.8460 +
1.8461 +/**
1.8462 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0007
1.8463 +
1.8464 + @SYMDEF DEF105603
1.8465 +
1.8466 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.8467 +
1.8468 + @SYMTestPriority High
1.8469 +
1.8470 + @SYMTestStatus Implemented
1.8471 +
1.8472 + @SYMTestActions Test detection of 'overall' directionality of a given language/script under normal & OOM conditions
1.8473 +
1.8474 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.8475 +*/
1.8476 +void CTBiDi::TestBidiTextClassL()
1.8477 + {
1.8478 + INFO_PRINTF1(_L("Out of Memory Tests"));
1.8479 + TBidiTextOOMTest toom(this);
1.8480 + toom.Initialize(KHttsD, TBidiTextOOMTest::ELeftToRight, 1);
1.8481 + TestOOML(toom);
1.8482 + toom.Initialize(KHttsD, TBidiTextOOMTest::ERightToLeft, 1);
1.8483 + TestOOML(toom);
1.8484 + toom.Initialize(KHttsD, TBidiTextOOMTest::EAutomatic, 1);
1.8485 + TestOOML(toom);
1.8486 + toom.Initialize(KHttsD, TBidiTextOOMTest::ELeftToRight, 100);
1.8487 + TestOOML(toom);
1.8488 + toom.Initialize(KHttsD, TBidiTextOOMTest::ERightToLeft, 100);
1.8489 + TestOOML(toom);
1.8490 + toom.Initialize(KHttsD, TBidiTextOOMTest::EAutomatic, 100);
1.8491 + TestOOML(toom);
1.8492 + toom.Initialize(KMultiLine, TBidiTextOOMTest::ELeftToRight, 1);
1.8493 + TestOOML(toom);
1.8494 + toom.Initialize(KLineSep, TBidiTextOOMTest::ERightToLeft, 1);
1.8495 + TestOOML(toom);
1.8496 +
1.8497 + INFO_PRINTF1(_L("Panic"));
1.8498 + INFO_PRINTF1(_L("Testing DrawText panic\r\n"));
1.8499 + TEST (EBidiPanic_InvalidVisualOrderedTextLength == TestPanic(TestDrawTextPanicThread));
1.8500 + INFO_PRINTF1(_L("Arabic with no line break opportunities"));
1.8501 + NoLineBreakDrawTestL();
1.8502 + INFO_PRINTF1(_L("Arabic with rare line break opportunities"));
1.8503 + RightToLeftArabicDrawTestL();
1.8504 + INFO_PRINTF1(_L("Latin"));
1.8505 + LeftToRightDrawTestL();
1.8506 + INFO_PRINTF1(_L("Glyph tests"));
1.8507 + LigatureTestsL();
1.8508 +
1.8509 + INFO_PRINTF1(_L("TRunInfoCompactReorder"));
1.8510 + TRunInfoCompactReorderTest();
1.8511 + // Need to test the rest of the TRunInfoCompact API as well.
1.8512 +
1.8513 + INFO_PRINTF1(_L("Arabic Illegal Line breaks"));
1.8514 + ArabicIllegalLinebreakTestsL();
1.8515 +
1.8516 + INFO_PRINTF1(_L("DEF043323 - Alignment of TBidiText::DrawText() doesn't take the truncation char into account"));
1.8517 + DEF043323L();
1.8518 + INFO_PRINTF1(_L("DEF042191 - Problems with wraping in TBidiText"));
1.8519 + DEF052191L();
1.8520 + }
1.8521 +
1.8522 +/**
1.8523 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0008
1.8524 +
1.8525 + @SYMDEF DEF105603
1.8526 +
1.8527 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.8528 +
1.8529 + @SYMTestPriority High
1.8530 +
1.8531 + @SYMTestStatus Implemented
1.8532 +
1.8533 + @SYMTestActions Test detection of 'overall' directionality of a given language/script
1.8534 +
1.8535 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.8536 +*/
1.8537 +void CTBiDi::TestBidiLogicalToVisualClassL()
1.8538 + {
1.8539 + static const TInt KRunInfoLength = 50;
1.8540 + TBidirectionalState::TRunInfo runInfo[KRunInfoLength];
1.8541 + INFO_PRINTF1(_L("TBidiVisual test - Out of Memory Tests\r\n"));
1.8542 + TBidiLogicalToVisualOOMTest toom(KHttsL, 0, 14, ETrue, KHttsD, runInfo, KRunInfoLength, this);
1.8543 + TestOOML(toom);
1.8544 + toom.Initialize(KHttL, 0, 13, ETrue, KHttD);
1.8545 + TestOOML(toom);
1.8546 + toom.Initialize(KHttL, 0, 13, EFalse, KHttD);
1.8547 + TestOOML(toom);
1.8548 + toom.Initialize(KMixedL, 0, 5, ETrue, KMixedD);
1.8549 + TestOOML(toom);
1.8550 + toom.Initialize(KMixedL, 0, 5, EFalse, KMixedDL);
1.8551 + TestOOML(toom);
1.8552 + toom.Initialize(KHello, 0, 5, ETrue, KHello);
1.8553 + TestOOML(toom);
1.8554 + toom.Initialize(KHello, 0, 5, EFalse, KHello);
1.8555 + TestOOML(toom);
1.8556 + toom.Initialize(KHalalL, 0, 4, EFalse, KHalalD);
1.8557 + TestOOML(toom);
1.8558 + toom.Initialize(KHalalL, 0, 4, ETrue, KHalalD);
1.8559 + TestOOML(toom);
1.8560 +
1.8561 + TBidiLogicalToVisualGetVisualLineTest();
1.8562 + }
1.8563 +
1.8564 +/**
1.8565 + *
1.8566 + * void CTBiDi::TestCatToNumber
1.8567 + *
1.8568 + * Convert TBidirectionalState::TCategory into it's equivalent TChar::TBdCategory
1.8569 + *
1.8570 + */
1.8571 + void CTBiDi::TestCatToNumber(TInt aIn, TInt aOut)
1.8572 + {
1.8573 + TEST(TBidirectionalState::CatToNumber(aIn) == aOut);
1.8574 + }
1.8575 +
1.8576 +
1.8577 +#define FILL_RUN_ARRAY(aTestArray, aRunArray, aContext) \
1.8578 + CTBiDi::FillRunArray((aTestArray), (aRunArray), \
1.8579 + sizeof((aTestArray))/sizeof((aTestArray)[0]), (aContext))
1.8580 +
1.8581 +void CTBiDi::FillRunArray(const TBdLevelTest* aTests, TBidirectionalState::TRunInfo* aRuns,
1.8582 + TInt aArraySize, TBidirectionalState::TReorderContext& aContext)
1.8583 + {
1.8584 + aContext.iCategories = 0;
1.8585 + aContext.iRuns = aArraySize;
1.8586 + for (TInt i = 0; i != aArraySize; ++i)
1.8587 + {
1.8588 + TUint category = 1 << static_cast<TUint>(aTests[i].iCat);
1.8589 + aContext.iCategories |= category;
1.8590 + aRuns[i].iCategory = category;
1.8591 + aRuns[i].iIndex = i;
1.8592 + }
1.8593 + }
1.8594 +
1.8595 +#define CHECK_RUN_RESULTS(aTestArray, aRunArray) \
1.8596 + CheckRunResults((aTestArray), (aRunArray), \
1.8597 + sizeof((aTestArray))/sizeof((aTestArray)[0]))
1.8598 +
1.8599 +void CTBiDi::CheckRunResults(const TBdLevelTest* aTests, TBidirectionalState::TRunInfo* aRuns,
1.8600 + TInt aArraySize)
1.8601 + {
1.8602 + for (TInt i = 0; i != aArraySize; ++i)
1.8603 + {
1.8604 + const TBdLevelTest* currentTestData = aTests + i;
1.8605 + TBidirectionalState::TRunInfo* currentRun = aRuns + i;
1.8606 + if (currentTestData->iLevel != -1)
1.8607 + {
1.8608 + TUint category = 1 << static_cast<TUint>(currentTestData->iChangedCat);
1.8609 + TEST(currentTestData->iLevel == currentRun->iEmbeddingLevel);
1.8610 + TEST(category == currentRun->iCategory);
1.8611 + }
1.8612 + }
1.8613 + }
1.8614 +
1.8615 +void CTBiDi::SetContext(TBidirectionalState::TReorderContext& aContext,
1.8616 + TChar::TBdCategory aCat)
1.8617 + {
1.8618 + TInt cat = 1 << static_cast<TInt>(aCat);
1.8619 + // big axe
1.8620 + TInt* p = reinterpret_cast<TInt*> (&(aContext.iNextStrongCategory));
1.8621 + *p = cat;
1.8622 + p = reinterpret_cast<TInt*> (&(aContext.iNextCategory));
1.8623 + *p = cat;
1.8624 + }
1.8625 +
1.8626 +//test data for TestTBidirectionalStateInternalsL
1.8627 +
1.8628 +// test X1, X2, X3, X4, X5, X6, X7
1.8629 +// (X8 does not apply to ReorderLine: should not contain multiple paragraphs)
1.8630 +// (X9 and X10 should not be tested explicitly at this level)
1.8631 +static const TBdLevelTest KXTests[] =
1.8632 + {
1.8633 +
1.8634 + {TChar::ERightToLeftEmbedding, -1, TChar::EOtherNeutral},
1.8635 + {TChar::EOtherNeutral, 1, TChar::EOtherNeutral},
1.8636 + {TChar::ELeftToRightEmbedding, -1, TChar::EOtherNeutral},
1.8637 + {TChar::EOtherNeutral, 2, TChar::EOtherNeutral},
1.8638 + {TChar::ELeftToRightEmbedding, -1, TChar::EOtherNeutral},
1.8639 + {TChar::EOtherNeutral, 4, TChar::EOtherNeutral},
1.8640 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral},
1.8641 + {TChar::EOtherNeutral, 6, TChar::ELeftToRight},
1.8642 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8643 + {TChar::EOtherNeutral, 7, TChar::ERightToLeft},
1.8644 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8645 + {TChar::EOtherNeutral, 9, TChar::ERightToLeft},
1.8646 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral},
1.8647 + {TChar::EOtherNeutral, 10, TChar::ELeftToRight},
1.8648 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral},
1.8649 + {TChar::EOtherNeutral, 12, TChar::ELeftToRight},
1.8650 + {TChar::ERightToLeftEmbedding, -1, TChar::EOtherNeutral},
1.8651 + {TChar::EOtherNeutral, 13, TChar::EOtherNeutral},
1.8652 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8653 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8654 + {TChar::EOtherNeutral, 13, TChar::EOtherNeutral},
1.8655 + {TChar::ERightToLeftEmbedding, -1, TChar::EOtherNeutral},
1.8656 + {TChar::EOtherNeutral, 15, TChar::EOtherNeutral},
1.8657 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8658 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8659 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8660 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8661 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8662 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8663 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8664 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8665 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8666 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8667 + {TChar::EOtherNeutral, 35, TChar::ERightToLeft},
1.8668 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8669 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8670 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8671 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8672 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8673 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8674 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8675 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8676 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8677 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8678 + {TChar::EOtherNeutral, 55, TChar::ERightToLeft},
1.8679 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8680 + {TChar::ERightToLeftOverride, -1, TChar::EOtherNeutral},
1.8681 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral},
1.8682 + {TChar::EOtherNeutral, 60, TChar::ELeftToRight},
1.8683 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral}, // should not alter directionality
1.8684 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral}, // should not alter directionality
1.8685 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral}, // should not alter directionality
1.8686 + {TChar::EOtherNeutral, 60, TChar::ELeftToRight},
1.8687 + {TChar::ERightToLeftEmbedding, -1, TChar::EOtherNeutral},
1.8688 + {TChar::EOtherNeutral, 61, TChar::EOtherNeutral},
1.8689 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral}, // should not alter directionality
1.8690 + {TChar::ELeftToRightOverride, -1, TChar::EOtherNeutral}, // should not alter directionality
1.8691 + {TChar::EOtherNeutral, 61, TChar::EOtherNeutral},
1.8692 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral}, // matches ignored code
1.8693 + {TChar::EOtherNeutral, 61, TChar::EOtherNeutral},
1.8694 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral}, // matches ignored code
1.8695 + {TChar::EOtherNeutral, 61, TChar::EOtherNeutral},
1.8696 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8697 + {TChar::EOtherNeutral, 60, TChar::ELeftToRight},
1.8698 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral}, // matches ignored code
1.8699 + {TChar::EOtherNeutral, 60, TChar::ELeftToRight},
1.8700 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral}, // matches ignored code
1.8701 + {TChar::EOtherNeutral, 60, TChar::ELeftToRight},
1.8702 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral}, // matches ignored code
1.8703 + {TChar::EOtherNeutral, 60, TChar::ELeftToRight},
1.8704 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8705 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8706 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8707 + {TChar::EOtherNeutral, 55, TChar::ERightToLeft},
1.8708 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8709 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8710 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8711 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8712 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8713 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8714 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8715 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8716 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8717 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8718 + {TChar::EOtherNeutral, 35, TChar::ERightToLeft},
1.8719 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8720 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8721 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8722 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8723 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8724 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8725 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8726 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8727 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8728 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8729 + {TChar::EOtherNeutral, 15, TChar::EOtherNeutral},
1.8730 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8731 + {TChar::EOtherNeutral, 13, TChar::EOtherNeutral},
1.8732 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8733 + {TChar::EOtherNeutral, 12, TChar::ELeftToRight},
1.8734 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8735 + {TChar::EOtherNeutral, 10, TChar::ELeftToRight},
1.8736 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8737 + {TChar::EOtherNeutral, 9, TChar::ERightToLeft},
1.8738 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8739 + {TChar::EOtherNeutral, 7, TChar::ERightToLeft},
1.8740 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8741 + {TChar::EOtherNeutral, 6, TChar::ELeftToRight},
1.8742 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8743 + {TChar::EOtherNeutral, 4, TChar::EOtherNeutral},
1.8744 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8745 + {TChar::EOtherNeutral, 2, TChar::EOtherNeutral},
1.8746 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8747 + {TChar::EOtherNeutral, 1, TChar::EOtherNeutral},
1.8748 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8749 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral}
1.8750 + };
1.8751 +
1.8752 +static const TBdLevelTest KW123TestsL[] =
1.8753 + {
1.8754 + {TChar::ENonSpacingMark, 0, TChar::ELeftToRight},
1.8755 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8756 + {TChar::ERightToLeftEmbedding, -1, TChar::EOtherNeutral},
1.8757 + {TChar::ENonSpacingMark, 1, TChar::ERightToLeft},
1.8758 + {TChar::ELeftToRight, -1, TChar::EOtherNeutral},
1.8759 + {TChar::ENonSpacingMark, 1, TChar::ELeftToRight},
1.8760 + {TChar::EEuropeanNumber, 1, TChar::EEuropeanNumber},
1.8761 + {TChar::ERightToLeftArabic, 1, TChar::ERightToLeft},
1.8762 + {TChar::ENonSpacingMark, 1, TChar::ERightToLeft},
1.8763 + {TChar::EOtherNeutral, -1, TChar::EOtherNeutral},
1.8764 + {TChar::ENonSpacingMark, 1, TChar::EOtherNeutral},
1.8765 + {TChar::EEuropeanNumber, 1, TChar::EArabicNumber}
1.8766 + };
1.8767 +
1.8768 +static const TBdLevelTest KW123TestsR[] =
1.8769 + {
1.8770 + {TChar::ENonSpacingMark, 1, TChar::ERightToLeft},
1.8771 + {TChar::EEuropeanNumber, 1, TChar::EEuropeanNumber},
1.8772 + {TChar::ENonSpacingMark, 1, TChar::EEuropeanNumber},
1.8773 + {TChar::ELeftToRightEmbedding, -1, TChar::EOtherNeutral},
1.8774 + {TChar::ENonSpacingMark, 2, TChar::ELeftToRight},
1.8775 + {TChar::ELeftToRight, -1, TChar::EOtherNeutral},
1.8776 + {TChar::ENonSpacingMark, 2, TChar::ELeftToRight},
1.8777 + {TChar::EWhitespace, -1, TChar::EOtherNeutral},
1.8778 + {TChar::ENonSpacingMark, 2, TChar::EWhitespace},
1.8779 + {TChar::EOtherNeutral, -1, TChar::EOtherNeutral},
1.8780 + {TChar::ENonSpacingMark, 2, TChar::EOtherNeutral}
1.8781 + };
1.8782 +
1.8783 +
1.8784 +static const TBdLevelTest KW456Tests[] =
1.8785 + {
1.8786 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8787 + {TChar::EEuropeanNumberSeparator, 0, TChar::EEuropeanNumber}, // W4
1.8788 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8789 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8790 + {TChar::ECommonNumberSeparator, 0, TChar::EEuropeanNumber}, // W4
1.8791 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8792 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8793 + {TChar::ECommonNumberSeparator, 0, TChar::EArabicNumber}, // W4
1.8794 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8795 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8796 + {TChar::EEuropeanNumberTerminator, 0, TChar::EEuropeanNumber}, // W5
1.8797 + {TChar::EEuropeanNumberTerminator, 0, TChar::EEuropeanNumber}, // W5
1.8798 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8799 + {TChar::EEuropeanNumberTerminator, 0, TChar::EEuropeanNumber}, // W5
1.8800 + {TChar::EEuropeanNumberTerminator, 0, TChar::EEuropeanNumber}, // W5
1.8801 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8802 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8803 + {TChar::EEuropeanNumberTerminator, 0, TChar::EEuropeanNumber}, // W5
1.8804 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8805 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8806 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8807 + {TChar::EEuropeanNumberSeparator, 0, TChar::EOtherNeutral}, // W6
1.8808 + {TChar::EEuropeanNumberSeparator, 0, TChar::EOtherNeutral}, // W6
1.8809 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8810 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8811 + {TChar::EEuropeanNumberTerminator, 0, TChar::EOtherNeutral}, // W6
1.8812 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8813 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8814 + {TChar::EEuropeanNumberSeparator, 0, TChar::EOtherNeutral}, // W6
1.8815 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8816 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8817 + {TChar::EEuropeanNumberSeparator, 0, TChar::EOtherNeutral}, // W6
1.8818 + {TChar::EEuropeanNumberSeparator, 0, TChar::EOtherNeutral}, // W6
1.8819 + {TChar::EEuropeanNumberSeparator, 0, TChar::EOtherNeutral}, // W6
1.8820 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8821 + {TChar::EEuropeanNumberSeparator, 0, TChar::EOtherNeutral}, // W6
1.8822 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8823 + {TChar::EEuropeanNumberTerminator, 0, TChar::EOtherNeutral}, // W6
1.8824 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8825 + };
1.8826 +
1.8827 +
1.8828 +static const TBdLevelTest KW7TestsL[] =
1.8829 + {
1.8830 + {TChar::EEuropeanNumber, 0, TChar::ELeftToRight},
1.8831 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8832 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8833 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8834 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8835 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8836 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8837 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8838 + {TChar::EEuropeanNumber, 0, TChar::ELeftToRight},
1.8839 + {TChar::ERightToLeft, 0, TChar::ERightToLeft},
1.8840 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8841 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8842 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8843 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8844 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8845 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8846 + {TChar::EOtherNeutral, 0, TChar::EOtherNeutral},
1.8847 + {TChar::ERightToLeftEmbedding, -1, TChar::EOtherNeutral},
1.8848 + {TChar::EEuropeanNumber, 1, TChar::EEuropeanNumber},
1.8849 + {TChar::ELeftToRightEmbedding, -1, TChar::EOtherNeutral},
1.8850 + {TChar::EEuropeanNumber, 2, TChar::ELeftToRight},
1.8851 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8852 + {TChar::EEuropeanNumber, 1, TChar::ELeftToRight},
1.8853 + {TChar::EPopDirectionalFormat, -1, TChar::EOtherNeutral},
1.8854 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8855 + };
1.8856 +
1.8857 +static const TBdLevelTest KW7TestsR[] =
1.8858 + {
1.8859 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8860 + };
1.8861 +
1.8862 +static const TBdLevelTest KN12TestsL[] =
1.8863 + {
1.8864 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8865 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8866 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8867 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8868 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8869 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8870 + {TChar::ERightToLeft, 0, TChar::ERightToLeft},
1.8871 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8872 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8873 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8874 + {TChar::ERightToLeft, 0, TChar::ERightToLeft},
1.8875 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8876 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8877 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8878 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8879 + {TChar::ERightToLeft, 0, TChar::ERightToLeft},
1.8880 + {TChar::ERightToLeft, 0, TChar::ERightToLeft},
1.8881 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8882 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8883 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8884 + {TChar::ERightToLeft, 0, TChar::ERightToLeft},
1.8885 + {TChar::EEuropeanNumber, 0, TChar::EEuropeanNumber},
1.8886 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8887 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8888 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8889 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8890 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8891 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8892 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8893 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8894 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8895 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8896 + {TChar::ERightToLeft, 0, TChar::ERightToLeft},
1.8897 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8898 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8899 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8900 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8901 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8902 + {TChar::EArabicNumber, 0, TChar::EArabicNumber},
1.8903 + {TChar::ELeftToRight, 0, TChar::ELeftToRight},
1.8904 + {TChar::EOtherNeutral, 0, TChar::ELeftToRight},
1.8905 + };
1.8906 +
1.8907 +static const TBdLevelTest KN12TestsR[] =
1.8908 + {
1.8909 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8910 + {TChar::ELeftToRight, 1, TChar::ELeftToRight},
1.8911 + {TChar::EOtherNeutral, 1, TChar::ELeftToRight},
1.8912 + {TChar::EOtherNeutral, 1, TChar::ELeftToRight},
1.8913 + {TChar::EOtherNeutral, 1, TChar::ELeftToRight},
1.8914 + {TChar::ELeftToRight, 1, TChar::ELeftToRight},
1.8915 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8916 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8917 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8918 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8919 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8920 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8921 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8922 + {TChar::EArabicNumber, 1, TChar::EArabicNumber},
1.8923 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8924 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8925 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8926 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8927 + {TChar::EEuropeanNumber, 1, TChar::EEuropeanNumber},
1.8928 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8929 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8930 + {TChar::EEuropeanNumber, 1, TChar::EEuropeanNumber},
1.8931 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8932 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8933 + {TChar::EArabicNumber, 1, TChar::EArabicNumber},
1.8934 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8935 + {TChar::EArabicNumber, 1, TChar::EArabicNumber},
1.8936 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8937 + {TChar::ELeftToRight, 1, TChar::ELeftToRight},
1.8938 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8939 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8940 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8941 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8942 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8943 + {TChar::ELeftToRight, 1, TChar::ELeftToRight},
1.8944 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8945 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8946 + };
1.8947 +
1.8948 +static const TBdLevelTest KN12TestsRRL[] =
1.8949 + {
1.8950 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8951 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8952 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8953 + {TChar::ELeftToRight, 1, TChar::ELeftToRight},
1.8954 + {TChar::EOtherNeutral, 1, TChar::ELeftToRight}
1.8955 + };
1.8956 +
1.8957 +static const TBdLevelTest KN12TestsLRR[] =
1.8958 + {
1.8959 + {TChar::EOtherNeutral, 1, TChar::ELeftToRight},
1.8960 + {TChar::ELeftToRight, 1, TChar::ELeftToRight},
1.8961 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8962 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8963 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft}
1.8964 + };
1.8965 +
1.8966 +// Test that pop directional format as the final context does the
1.8967 +// right thing, and that embedded directionalities are taken
1.8968 +// into account.
1.8969 +static const TBdLevelTest KN12TestsLRP[] =
1.8970 + {
1.8971 + {TChar::EOtherNeutral, 1, TChar::ELeftToRight},
1.8972 + {TChar::ELeftToRightEmbedding, -1, TChar::EOtherNeutral},
1.8973 + {TChar::ERightToLeft, 2, TChar::ERightToLeft},
1.8974 + {TChar::EOtherNeutral, 2, TChar::ELeftToRight},
1.8975 + {TChar::ELeftToRight, 2, TChar::ELeftToRight},
1.8976 + {TChar::EOtherNeutral, 2, TChar::ELeftToRight}
1.8977 + };
1.8978 +
1.8979 +static const TBdLevelTest KN12TestsRLP[] =
1.8980 + {
1.8981 + {TChar::EOtherNeutral, 0, TChar::ERightToLeft},
1.8982 + {TChar::ERightToLeftEmbedding, -1, TChar::EOtherNeutral},
1.8983 + {TChar::ELeftToRight, 1, TChar::ELeftToRight},
1.8984 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8985 + {TChar::ERightToLeft, 1, TChar::ERightToLeft},
1.8986 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft}
1.8987 + };
1.8988 +
1.8989 +static const TBdLevelTest KPreviousCarryOver1Line1[] =
1.8990 + {
1.8991 + {TChar::ERightToLeftArabic, 1, TChar::ERightToLeft},
1.8992 + };
1.8993 +static const TBdLevelTest KPreviousCarryOver1Line2[] =
1.8994 + {
1.8995 + {TChar::EEuropeanNumber, 2, TChar::EArabicNumber},
1.8996 + {TChar::EOtherNeutral, 1, TChar::ERightToLeft},
1.8997 + {TChar::EEuropeanNumber, 2, TChar::EArabicNumber},
1.8998 + };
1.8999 +
1.9000 +void CTBiDi::DoXTests(TBidirectionalState& aState,
1.9001 + TBidirectionalState::TReorderContext& aContext,
1.9002 + TBidirectionalState::TRunInfo* aRuns)
1.9003 + {
1.9004 + FILL_RUN_ARRAY(KXTests, aRuns, aContext);
1.9005 + aState.HandleBdControls(aContext);
1.9006 + CHECK_RUN_RESULTS(KXTests, aRuns);
1.9007 + }
1.9008 +
1.9009 +void CTBiDi::DoKW123TestsLeft(TBidirectionalState& aState,
1.9010 + TBidirectionalState::TReorderContext& aContext,
1.9011 + TBidirectionalState::TRunInfo* aRuns)
1.9012 + {
1.9013 + aState = TBidirectionalState(TChar::ELeftToRight, TChar::ELeftToRight, EFalse);
1.9014 + FILL_RUN_ARRAY(KW123TestsL, aRuns, aContext);
1.9015 + aState.HandleBdControls(aContext);
1.9016 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9017 + CHECK_RUN_RESULTS(KW123TestsL, aRuns);
1.9018 + }
1.9019 +
1.9020 +void CTBiDi::DoKW123TestsRight(TBidirectionalState& aState,
1.9021 + TBidirectionalState::TReorderContext& aContext,
1.9022 + TBidirectionalState::TRunInfo* aRuns)
1.9023 + {
1.9024 + aState = TBidirectionalState(TChar::ERightToLeft, TChar::ERightToLeft, ETrue);
1.9025 + FILL_RUN_ARRAY(KW123TestsR, aRuns, aContext);
1.9026 + aState.HandleBdControls(aContext);
1.9027 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9028 + CHECK_RUN_RESULTS(KW123TestsR, aRuns);
1.9029 + }
1.9030 +
1.9031 +void CTBiDi::DoKW456Tests(TBidirectionalState& aState,
1.9032 + TBidirectionalState::TReorderContext& aContext,
1.9033 + TBidirectionalState::TRunInfo* aRuns)
1.9034 + {
1.9035 + aState = TBidirectionalState(TChar::ELeftToRight, TChar::ELeftToRight, EFalse);
1.9036 + FILL_RUN_ARRAY(KW456Tests, aRuns, aContext);
1.9037 + aState.HandleBdControls(aContext);
1.9038 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9039 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9040 + CHECK_RUN_RESULTS(KW456Tests, aRuns);
1.9041 +
1.9042 + }
1.9043 +
1.9044 +
1.9045 +void CTBiDi::DoKW7TestsLeft(TBidirectionalState& aState,
1.9046 + TBidirectionalState::TReorderContext& aContext,
1.9047 + TBidirectionalState::TRunInfo* aRuns)
1.9048 + {
1.9049 +
1.9050 + aState = TBidirectionalState(TChar::ELeftToRight, TChar::ELeftToRight, EFalse);
1.9051 + FILL_RUN_ARRAY(KW7TestsL, aRuns, aContext);
1.9052 + aState.HandleBdControls(aContext);
1.9053 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9054 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9055 + aState.ResolveWeakTypesW7(aContext);
1.9056 + CHECK_RUN_RESULTS(KW7TestsL, aRuns);
1.9057 +
1.9058 + }
1.9059 +
1.9060 +void CTBiDi::DoKW7TestsRight(TBidirectionalState& aState,
1.9061 + TBidirectionalState::TReorderContext& aContext,
1.9062 + TBidirectionalState::TRunInfo* aRuns)
1.9063 + {
1.9064 + aState = TBidirectionalState(TChar::ERightToLeft, TChar::ERightToLeft, EFalse);
1.9065 + FILL_RUN_ARRAY(KW7TestsR, aRuns, aContext);
1.9066 + aState.HandleBdControls(aContext);
1.9067 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9068 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9069 + aState.ResolveWeakTypesW7(aContext);
1.9070 + CHECK_RUN_RESULTS(KW7TestsR, aRuns);
1.9071 + }
1.9072 +
1.9073 +void CTBiDi::DoKN12TestsLeft(TBidirectionalState& aState,
1.9074 + TBidirectionalState::TReorderContext& aContext,
1.9075 + TBidirectionalState::TRunInfo* aRuns)
1.9076 + {
1.9077 + aState = TBidirectionalState(TChar::ERightToLeft, TChar::ERightToLeft, EFalse);
1.9078 + SetContext(aContext, TChar::ERightToLeft);
1.9079 + FILL_RUN_ARRAY(KN12TestsL, aRuns, aContext);
1.9080 + aState.HandleBdControls(aContext);
1.9081 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9082 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9083 + aState.ResolveWeakTypesW7(aContext);
1.9084 + aState.ResolveNeutralTypes(aContext);
1.9085 + CHECK_RUN_RESULTS(KN12TestsL, aRuns);
1.9086 +
1.9087 + }
1.9088 +
1.9089 +void CTBiDi::DoKN12TestsRight(TBidirectionalState& aState,
1.9090 + TBidirectionalState::TReorderContext& aContext,
1.9091 + TBidirectionalState::TRunInfo* aRuns)
1.9092 + {
1.9093 + aState = TBidirectionalState(TChar::ERightToLeft, TChar::ERightToLeft, ETrue);
1.9094 + SetContext(aContext, TChar::ERightToLeft);
1.9095 + FILL_RUN_ARRAY(KN12TestsR, aRuns, aContext);
1.9096 + aState.HandleBdControls(aContext);
1.9097 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9098 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9099 + aState.ResolveWeakTypesW7(aContext);
1.9100 + aState.ResolveNeutralTypes(aContext);
1.9101 + CHECK_RUN_RESULTS(KN12TestsR, aRuns);
1.9102 + }
1.9103 +
1.9104 +void CTBiDi::DoKN12TestsRRL(TBidirectionalState& aState,
1.9105 + TBidirectionalState::TReorderContext& aContext,
1.9106 + TBidirectionalState::TRunInfo* aRuns)
1.9107 + {
1.9108 + aState = TBidirectionalState(TChar::ERightToLeft, TChar::ERightToLeft, ETrue);
1.9109 + SetContext(aContext, TChar::ELeftToRight);
1.9110 + FILL_RUN_ARRAY(KN12TestsRRL, aRuns, aContext);
1.9111 + aState.HandleBdControls(aContext);
1.9112 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9113 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9114 + aState.ResolveWeakTypesW7(aContext);
1.9115 + aState.ResolveNeutralTypes(aContext);
1.9116 + CHECK_RUN_RESULTS(KN12TestsRRL, aRuns);
1.9117 + }
1.9118 +
1.9119 +void CTBiDi::DoKN12TestsLRR(TBidirectionalState& aState,
1.9120 + TBidirectionalState::TReorderContext& aContext,
1.9121 + TBidirectionalState::TRunInfo* aRuns)
1.9122 + {
1.9123 + aState = TBidirectionalState(TChar::ELeftToRight, TChar::ELeftToRight, ETrue);
1.9124 + SetContext(aContext, TChar::ERightToLeft);
1.9125 + FILL_RUN_ARRAY(KN12TestsLRR, aRuns, aContext);
1.9126 + aState.HandleBdControls(aContext);
1.9127 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9128 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9129 + aState.ResolveWeakTypesW7(aContext);
1.9130 + aState.ResolveNeutralTypes(aContext);
1.9131 + CHECK_RUN_RESULTS(KN12TestsLRR, aRuns);
1.9132 + }
1.9133 +
1.9134 +void CTBiDi::DoKN12TestsLRP(TBidirectionalState& aState,
1.9135 + TBidirectionalState::TReorderContext& aContext,
1.9136 + TBidirectionalState::TRunInfo* aRuns)
1.9137 + {
1.9138 + aState = TBidirectionalState(TChar::ELeftToRight, TChar::ELeftToRight, ETrue);
1.9139 + SetContext(aContext, TChar::EPopDirectionalFormat);
1.9140 + FILL_RUN_ARRAY(KN12TestsLRP, aRuns, aContext);
1.9141 + aState.HandleBdControls(aContext);
1.9142 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9143 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9144 + aState.ResolveWeakTypesW7(aContext);
1.9145 + aState.ResolveNeutralTypes(aContext);
1.9146 + CHECK_RUN_RESULTS(KN12TestsLRP, aRuns);
1.9147 + }
1.9148 +
1.9149 +void CTBiDi::DoKN12TestsRLP(TBidirectionalState& aState,
1.9150 + TBidirectionalState::TReorderContext& aContext,
1.9151 + TBidirectionalState::TRunInfo* aRuns)
1.9152 + {
1.9153 + aState = TBidirectionalState(TChar::ERightToLeft, TChar::ERightToLeft, EFalse);
1.9154 + SetContext(aContext, TChar::EPopDirectionalFormat);
1.9155 + FILL_RUN_ARRAY(KN12TestsRLP, aRuns, aContext);
1.9156 + aState.HandleBdControls(aContext);
1.9157 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9158 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9159 + aState.ResolveWeakTypesW7(aContext);
1.9160 + aState.ResolveNeutralTypes(aContext);
1.9161 + CHECK_RUN_RESULTS(KN12TestsRLP, aRuns);
1.9162 + }
1.9163 +
1.9164 +void CTBiDi::DoCarryOverTest1(TBidirectionalState& aState,
1.9165 + TBidirectionalState::TReorderContext& aContext,
1.9166 + TBidirectionalState::TRunInfo* aRuns)
1.9167 + {
1.9168 + aState = TBidirectionalState(TChar::ERightToLeft, TChar::ERightToLeft, EFalse);
1.9169 + SetContext(aContext, TChar::EOtherNeutral);
1.9170 + FILL_RUN_ARRAY(KPreviousCarryOver1Line1, aRuns, aContext);
1.9171 + aState.HandleBdControls(aContext);
1.9172 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9173 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9174 + aState.ResolveWeakTypesW7(aContext);
1.9175 + aState.ResolveNeutralTypes(aContext);
1.9176 + aState.ResolveImplicitLevels(aContext);
1.9177 + aState.PrepareForNextLine(aContext);
1.9178 + CHECK_RUN_RESULTS(KPreviousCarryOver1Line1, aRuns);
1.9179 + FILL_RUN_ARRAY(KPreviousCarryOver1Line2, aRuns, aContext);
1.9180 + aState.HandleBdControls(aContext);
1.9181 + aState.ResolveWeakTypesW1W2W3(aContext);
1.9182 + aState.ResolveWeakTypesW4W5W6(aContext);
1.9183 + aState.ResolveWeakTypesW7(aContext);
1.9184 + aState.ResolveNeutralTypes(aContext);
1.9185 + aState.ResolveImplicitLevels(aContext);
1.9186 + aState.PrepareForNextLine(aContext);
1.9187 + CHECK_RUN_RESULTS(KPreviousCarryOver1Line2, aRuns);
1.9188 + }
1.9189 +
1.9190 +/**
1.9191 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0001
1.9192 +
1.9193 + @SYMDEF DEF105603
1.9194 +
1.9195 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.9196 +
1.9197 + @SYMTestPriority High
1.9198 +
1.9199 + @SYMTestStatus Implemented
1.9200 +
1.9201 + @SYMTestActions Test conversion of a TBidirectional::TCategory value into it's equivalent TChar::TBdCategory
1.9202 + Test the various phases of the Bidirectional Algorithm implementation (Resolving explicit levels and directions, weak types & neutral types)
1.9203 +
1.9204 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.9205 +*/
1.9206 +void CTBiDi::TestTBidirectionalStateInternalsL()
1.9207 + {
1.9208 + INFO_PRINTF1(_L("TBidirectionalState internals"));
1.9209 + TestCatToNumber(1, 0);
1.9210 + TestCatToNumber(2, 1);
1.9211 + TestCatToNumber(3, 1);
1.9212 + TestCatToNumber(4, 2);
1.9213 + TestCatToNumber(6, 2);
1.9214 + TestCatToNumber(8, 3);
1.9215 + TestCatToNumber(9, 3);
1.9216 + TestCatToNumber(0x10, 4);
1.9217 + TestCatToNumber(0x20, 5);
1.9218 + TestCatToNumber(0x40, 6);
1.9219 + TestCatToNumber(0x7F, 6);
1.9220 + TestCatToNumber(0x80, 7);
1.9221 + TestCatToNumber(0x100, 8);
1.9222 + TestCatToNumber(0x200, 9);
1.9223 + TestCatToNumber(0x400, 10);
1.9224 + TestCatToNumber(0x800, 11);
1.9225 + TestCatToNumber(0x1000, 12);
1.9226 + TestCatToNumber(0x2000, 13);
1.9227 + TestCatToNumber(0x4000, 14);
1.9228 + TestCatToNumber(0x8000, 15);
1.9229 + TestCatToNumber(0xFFFF, 15);
1.9230 + TestCatToNumber(0x10000, 16);
1.9231 + TestCatToNumber(0x20000, 17);
1.9232 + TestCatToNumber(0x40000, 18);
1.9233 + TestCatToNumber(0x80000, 19);
1.9234 + TestCatToNumber(0x100000, 20);
1.9235 + TestCatToNumber(0x200000, 21);
1.9236 + TestCatToNumber(0x400000, 22);
1.9237 + TestCatToNumber(0x800000, 23);
1.9238 + TestCatToNumber(0x1000000, 24);
1.9239 + TestCatToNumber(0x2000000, 25);
1.9240 + TestCatToNumber(0x4000000, 26);
1.9241 + TestCatToNumber(0x8000000, 27);
1.9242 + TestCatToNumber(0x10000000, 28);
1.9243 + TestCatToNumber(0x20000000, 29);
1.9244 + TestCatToNumber(0x40000000, 30);
1.9245 + TestCatToNumber(0x7FFFFFFF, 30);
1.9246 +
1.9247 + TBidirectionalState::TRunInfo* runs = new(ELeave) TBidirectionalState::TRunInfo[200];
1.9248 + CleanupArrayDeletePushL(runs);
1.9249 + TBidirectionalState state(TChar::EOtherNeutral, TChar::EOtherNeutral, EFalse);
1.9250 + TBidirectionalState::TReorderContext context;
1.9251 + context.iRunInfo = runs;
1.9252 + DoXTests(state, context, runs);
1.9253 + DoKW123TestsLeft(state, context, runs);
1.9254 + DoKW123TestsRight(state, context, runs);
1.9255 + DoKW456Tests(state, context, runs);
1.9256 + DoKW7TestsLeft(state, context, runs);
1.9257 + DoKW7TestsRight(state, context, runs);
1.9258 + DoKN12TestsLeft(state, context, runs);
1.9259 + DoKN12TestsRight(state, context, runs);
1.9260 + DoKN12TestsRRL(state, context, runs);
1.9261 + DoKN12TestsLRR(state, context, runs);
1.9262 + DoKN12TestsLRP(state, context, runs);
1.9263 + DoKN12TestsRLP(state, context, runs);
1.9264 +
1.9265 + // Should test "Resolve implicit levels" as well.
1.9266 + //...
1.9267 +
1.9268 + DoCarryOverTest1(state, context, runs);
1.9269 +
1.9270 + CleanupStack::PopAndDestroy(runs);
1.9271 + }
1.9272 +
1.9273 +
1.9274 +/**
1.9275 + * @SYMTestCaseID GRAPHICS-SYSLIB-GDI-CT-0217
1.9276 + * @SYMTestCaseDesc Test the operation of the run array scratch area
1.9277 + * @SYMTestPriority low
1.9278 + * @SYMTestActions Step 1: Verify that the scratch area is created and destroyed correctly
1.9279 + * and that no memory is leaked.
1.9280 + * Step 2: Verify that the reference counting mechanism operates correctly
1.9281 + * Step 3: Verify that a call to OpenL() will leave correctly if there is
1.9282 + * not enough memory available.
1.9283 + * @SYMTestExpectedResults The test must pass
1.9284 + * @SYMREQ APOS-69QD7N - Change TBidiText to make it useable and easier to port
1.9285 + * code to it
1.9286 + * @SYMDevelopedForRelease Mike
1.9287 + * @SYMTestType CT
1.9288 + *
1.9289 + */
1.9290 +void CTBiDi::DoTestRRunInfoArrayInternalsL()
1.9291 + {
1.9292 + INFO_PRINTF1(_L("RRunInfoArray Internals..."));
1.9293 +
1.9294 +
1.9295 +#ifdef _DEBUG
1.9296 + const TInt KExpectedHeapCells = 2;
1.9297 +#endif
1.9298 +
1.9299 +
1.9300 + // Step 1: Verify that the scratch area is created and
1.9301 + // destroyed correctly
1.9302 + {
1.9303 + INFO_PRINTF1(_L(" Create/destroy run info scratch area..."));
1.9304 +
1.9305 + __UHEAP_MARK;
1.9306 + RRunInfoArray runInfoArray;
1.9307 + runInfoArray.OpenL();
1.9308 + __UHEAP_CHECK(KExpectedHeapCells);
1.9309 + runInfoArray.Close();
1.9310 + __UHEAP_MARKEND;
1.9311 + }
1.9312 +
1.9313 +
1.9314 + // Step 2: Multiple calls to OpenL() and Close()
1.9315 + //
1.9316 + {
1.9317 + INFO_PRINTF1(_L(" Multiple calls to RRunInfoArray::OpenL()..."));
1.9318 +
1.9319 + __UHEAP_MARK;
1.9320 + RRunInfoArray runInfoArray;
1.9321 + runInfoArray.OpenL();
1.9322 + __UHEAP_CHECK(KExpectedHeapCells);
1.9323 +
1.9324 + // Second call on the same object gets ignored.
1.9325 + runInfoArray.OpenL();
1.9326 + __UHEAP_CHECK(KExpectedHeapCells);
1.9327 +
1.9328 +
1.9329 + // Creating another one reuses the singleton we created
1.9330 + // earlier. No additional storage gets allocated
1.9331 + RRunInfoArray runInfoArray2;
1.9332 + runInfoArray2.OpenL();
1.9333 + __UHEAP_CHECK(KExpectedHeapCells);
1.9334 +
1.9335 +
1.9336 + // Shut down can be done in any order - It is the last one
1.9337 + // that should actually free the memory
1.9338 + INFO_PRINTF1(_L(" Multiple calls to RRunInfoArray::Close()..."));
1.9339 + runInfoArray.Close();
1.9340 + __UHEAP_CHECK(KExpectedHeapCells);
1.9341 + runInfoArray2.Close();
1.9342 + __UHEAP_CHECK(0);
1.9343 +
1.9344 +
1.9345 + // Try to break it by calling Close() again
1.9346 + runInfoArray.Close();
1.9347 + __UHEAP_CHECK(0);
1.9348 +
1.9349 +
1.9350 + __UHEAP_MARKEND;
1.9351 + }
1.9352 +
1.9353 +
1.9354 + // Step 3: Check that OpenL() really does leave if not enough
1.9355 + // memory - only valid for debug builds
1.9356 +#ifdef _DEBUG
1.9357 + {
1.9358 + INFO_PRINTF1(_L(" RRunInfoArray::OpenL() fails for OOM..."));
1.9359 + RRunInfoArray runInfoArray;
1.9360 +
1.9361 + // OOM loop - must successfully allocate for 10 consecutive alloc sizes
1.9362 + TInt allocSuccess = 0;
1.9363 + TInt failAlloc = 1;
1.9364 + do
1.9365 + {
1.9366 + __UHEAP_FAILNEXT(failAlloc);
1.9367 + TRAPD(err, runInfoArray.OpenL());
1.9368 + __UHEAP_RESET;
1.9369 +
1.9370 + if (err == KErrNone)
1.9371 + {
1.9372 + ++allocSuccess;
1.9373 + runInfoArray.Close();
1.9374 + }
1.9375 + else
1.9376 + {
1.9377 + TEST(KErrNoMemory == err);
1.9378 + allocSuccess = 0;
1.9379 + }
1.9380 + ++failAlloc;
1.9381 + }
1.9382 + while (allocSuccess < 10);
1.9383 + }
1.9384 +#endif
1.9385 + }
1.9386 +
1.9387 +
1.9388 +/**
1.9389 + *
1.9390 + * Check that TBidiText will panic if the NewL call contains
1.9391 + * an invalid max length value.
1.9392 + *
1.9393 + * Note: This function will generate a panic and should therefore
1.9394 + * be called from within a separate worker thread.
1.9395 + *
1.9396 + */
1.9397 +static TInt TestPanicMaxLengthInvalidL(TAny*)
1.9398 + {
1.9399 + // A max length of 0 or less is invalid. Should cause a panic.
1.9400 + TBidiText* bidi = TBidiText::NewL(-1, 3);
1.9401 +
1.9402 +
1.9403 + return (KErrNone);
1.9404 + }
1.9405 +
1.9406 +
1.9407 +/**
1.9408 + *
1.9409 + * Check that TBidiText will panic if the NewL call contains
1.9410 + * an invalid max lines value
1.9411 + *
1.9412 + * Note: This function will generate a panic and should therefore
1.9413 + * be called from within a separate worker thread.
1.9414 + *
1.9415 + */
1.9416 +static TInt TestPanicMaxLinesInvalidL(TAny*)
1.9417 + {
1.9418 + // The max number of lines should be 1 or more. Should cause a
1.9419 + // panic.
1.9420 + TBidiText* bidi = TBidiText::NewL(100, -1);
1.9421 +
1.9422 +
1.9423 + return (KErrNone);
1.9424 + }
1.9425 +
1.9426 +
1.9427 +/**
1.9428 + *
1.9429 + * @SYMTestCaseID GRAPHICS-SYSLIB-GDI-CT-0218
1.9430 + * @SYMTestCaseDesc Test the creation of an empty TBidiText object
1.9431 + * @SYMTestPriority low
1.9432 + * @SYMTestActions Step 1: Verify object creation
1.9433 + * Step 2: Verify that object destruction does not leak memory
1.9434 + * Step 3: Verify that the correct panics are generated if an
1.9435 + * invalid parameter is specified
1.9436 + * @SYMTestExpectedResults The test must pass
1.9437 + * @SYMREQ APOS-69QD7N - Change TBidiText to make it useable and easier to port
1.9438 + * code to it
1.9439 + * @SYMDevelopedForRelease Mike
1.9440 + * @SYMTestType CT
1.9441 + *
1.9442 + */
1.9443 +void CTBiDi::DoTestTBidiTextNewL()
1.9444 + {
1.9445 + INFO_PRINTF1(_L("TBidiText::NewL()..."));
1.9446 + const TInt KMaxLength = 100;
1.9447 + const TInt KMaxLines = 3;
1.9448 +#ifdef _DEBUG
1.9449 + const TInt KExpectedHeapCells = 1;
1.9450 +#endif
1.9451 +
1.9452 + TBidiText* bidiText = 0;
1.9453 +
1.9454 + // First we're going to test the successful creation. This
1.9455 + // should (hopefully) be how the client app will use the class)
1.9456 + INFO_PRINTF1(_L(" Create an empty object..."));
1.9457 + __UHEAP_MARK;
1.9458 + TRAPD(err, bidiText = TBidiText::NewL(KMaxLength, KMaxLines));
1.9459 + TEST(KErrNone == err);
1.9460 + __UHEAP_CHECK(KExpectedHeapCells);
1.9461 +
1.9462 +
1.9463 + // Free up the memory and make sure we haven't leaked anything
1.9464 + INFO_PRINTF1(_L(" Delete object..."));
1.9465 + delete bidiText;
1.9466 + bidiText = 0;
1.9467 + __UHEAP_CHECK(0);
1.9468 + __UHEAP_MARKEND;
1.9469 +
1.9470 +
1.9471 + // Now for the invalid parameters. These will generate a panic
1.9472 + // so must be tested in a separate thread.
1.9473 + INFO_PRINTF1(_L(" Invalid max length (will panic!)"));
1.9474 + TEST(EBidiPanic_InvalidReservedMaxLength == TestPanic(TestPanicMaxLengthInvalidL));
1.9475 + INFO_PRINTF1(_L(" Invalid max lines (will panic!)"));
1.9476 + TEST(EBidiPanic_InvalidMaxline == TestPanic(TestPanicMaxLinesInvalidL));
1.9477 + }
1.9478 +
1.9479 +
1.9480 +/**
1.9481 + *
1.9482 + * Check that TBidiText will panic if the SetText call is made
1.9483 + * before RRunInfoArray::OpenL();
1.9484 + *
1.9485 + * Note: This function will generate a panic and should therefore
1.9486 + * be called from within a separate worker thread.
1.9487 + *
1.9488 + */
1.9489 +TInt CTBiDi::DoTestPanicSetTextL()
1.9490 + {
1.9491 + const TInt KMaxLength = 100;
1.9492 + const TInt KMaxLines = 3;
1.9493 + _LIT(KHello, "Hello World");
1.9494 +
1.9495 + TBidiText* bidiText = TBidiText::NewL(KMaxLength, KMaxLines);
1.9496 + CleanupStack::PushL(bidiText);
1.9497 +
1.9498 +
1.9499 + // Will cause a KErrDisconnected panic because we have not
1.9500 + // called RRunInfoArray::OpenL()
1.9501 + RRunInfoArray runArray;
1.9502 + bidiText->SetText(KHello, runArray);
1.9503 +
1.9504 +
1.9505 + CleanupStack::PopAndDestroy(bidiText);
1.9506 + return KErrNone;
1.9507 + }
1.9508 +
1.9509 +
1.9510 +/**
1.9511 + *
1.9512 + * Entry point for the DoTestPanicSetTextL test's worker thread
1.9513 + *
1.9514 + * Provides cleanup stack for the test function
1.9515 + *
1.9516 + */
1.9517 +TInt TestPanicSetTextL(TAny* aData)
1.9518 + {
1.9519 + CTBiDi* theTest = static_cast<CTBiDi*> (aData);
1.9520 + CTrapCleanup* trap = CTrapCleanup::New();
1.9521 + if (!trap)
1.9522 + return KErrNoMemory;
1.9523 +
1.9524 +
1.9525 + TRAP_IGNORE(theTest->DoTestPanicSetTextL());
1.9526 +
1.9527 +
1.9528 + delete trap;
1.9529 + return KErrNone;
1.9530 + }
1.9531 +
1.9532 +
1.9533 +/**
1.9534 + *
1.9535 + * @SYMTestCaseID GRAPHICS-SYSLIB-GDI-CT-0219
1.9536 + * @SYMTestCaseDesc Test the operation of TBidiText::SetText()
1.9537 + * @SYMTestPriority low
1.9538 + * @SYMTestActions Step 1: Verify that RRunInfoArray will panic if OpenL()
1.9539 + * has not been called
1.9540 + * Step 2: Verify that SetText() does change the text and
1.9541 + * string length
1.9542 + * Step 3: Verify that SetText() will return the number of
1.9543 + * characters truncated if the string is too big for
1.9544 + * the object.
1.9545 + * Step 4: Also checks that the text is changed and the
1.9546 + * length is updated.
1.9547 + * Step 5: Verify that RRunInfoArray will panic if it's
1.9548 + * buffer overflows
1.9549 + * @SYMTestExpectedResults The test must pass
1.9550 + * @SYMREQ APOS-69QD7N - Change TBidiText to make it useable and easier to port
1.9551 + * code to it
1.9552 + * @SYMDevelopedForRelease Mike
1.9553 + * @SYMTestType CT
1.9554 + *
1.9555 + */
1.9556 +void CTBiDi::DoTestTBidiTextSetTextL()
1.9557 + {
1.9558 + INFO_PRINTF1(_L("TBidiText::SetText()..."));
1.9559 +
1.9560 +
1.9561 + INFO_PRINTF1(_L(" Run Array not initialised (will panic!)"));
1.9562 + TEST(EBidiPanic_RunArrayNull == TestPanic(TestPanicSetTextL));
1.9563 +
1.9564 +
1.9565 + // Rest of the tests will make use of these resources
1.9566 + _LIT(KLine1, "Mary had a little lamb");
1.9567 + _LIT(KLine2, "and she had a bear");
1.9568 + _LIT(KLine3, "I've often seen her little lamb");
1.9569 + const TInt KExpectedDiff = KLine3.iTypeLength - KLine1.iTypeLength;
1.9570 +
1.9571 +
1.9572 + RRunInfoArray runArray;
1.9573 + runArray.OpenL();
1.9574 +
1.9575 +
1.9576 + INFO_PRINTF1(_L(" Change text..."));
1.9577 + TBidiText* bidiText = TBidiText::NewL(KLine1, 1);
1.9578 + CleanupStack::PushL(bidiText);
1.9579 + TEST(KLine1.iTypeLength == bidiText->Text().Length());
1.9580 +
1.9581 +
1.9582 + // Will fit. Expect an overflow of 0 characters.
1.9583 + TInt overFlow = bidiText->SetText(KLine2, runArray);
1.9584 + TEST(0 == overFlow);
1.9585 + TEST(KLine2.iTypeLength == bidiText->Text().Length());
1.9586 + TEST(!bidiText->Text().Compare(KLine2));
1.9587 +
1.9588 +
1.9589 + // Too long. Expect an overflow for this string. The number of
1.9590 + // characters we have exceeded the buffer by is determined from
1.9591 + // the lengths of the two strings: KLine1 (used to set the initial
1.9592 + // length of the buffer) and KLine3 (used to change the text in the
1.9593 + // buffer
1.9594 + INFO_PRINTF1(_L(" Text overflow..."));
1.9595 + overFlow = bidiText->SetText(KLine3, runArray);
1.9596 + TEST(KExpectedDiff == overFlow);
1.9597 + TEST(KLine1.iTypeLength == bidiText->Text().Length());
1.9598 + TPtrC line3(KLine3);
1.9599 + TEST(!bidiText->Text().Compare(line3.Left(KLine1.iTypeLength)));
1.9600 +
1.9601 +
1.9602 + // If the Run Info Array is too small, the text will be truncated
1.9603 + // and the excess characters returned to the client application as
1.9604 + // a negative integer. (i.e. can be distinguished from simple
1.9605 + // truncation)
1.9606 + TBidiText* bidiText2 = TBidiText::NewL(512, 1);
1.9607 + CleanupStack::PushL(bidiText2);
1.9608 +
1.9609 + // KManyRuns is too long for RRunArray
1.9610 + _LIT(KManyRuns, "1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a");
1.9611 + TInt excessChars = bidiText2->SetText(KManyRuns, runArray);
1.9612 + TEST (52 == excessChars);
1.9613 +
1.9614 +
1.9615 + // Tidy up
1.9616 + CleanupStack::PopAndDestroy(bidiText2);
1.9617 + CleanupStack::PopAndDestroy(bidiText);
1.9618 + runArray.Close();
1.9619 + }
1.9620 +
1.9621 +
1.9622 +/**
1.9623 + *
1.9624 + * @SYMTestCaseID GRAPHICS-SYSLIB-GDI-CT-0220
1.9625 + * @SYMTestCaseDesc Test the operation of TBidiText::MinimumSize()
1.9626 + * @SYMTestPriority low
1.9627 + * @SYMTestActions Step 1: Verify that MinimumSize() returns the correct
1.9628 + * size in pixels both with and without the aMaxLines
1.9629 + * parameter specified
1.9630 + * Step 2: Verify that MinimumSize() will panic if an invalid
1.9631 + * parameter is specified.
1.9632 + * @SYMTestExpectedResults The test must pass
1.9633 + * @SYMREQ APOS-69QD7N - Change TBidiText to make it useable and easier to port
1.9634 + * code to it
1.9635 + * @SYMDevelopedForRelease Mike
1.9636 + * @SYMTestType CT
1.9637 + *
1.9638 + */
1.9639 +void CTBiDi::DoTestTBidiTextMinimumSizeL()
1.9640 + {
1.9641 + INFO_PRINTF1(_L("TBidiText::MinimumSize()..."));
1.9642 +
1.9643 +
1.9644 + CFont* testFont = new (ELeave) CTestFont;
1.9645 + CleanupStack::PushL(testFont);
1.9646 +
1.9647 +
1.9648 + // Create and populate the buffer that holds the test data
1.9649 + // for this test.
1.9650 + HBufC* oldTextBufPtr = HBufC::NewLC(KBufferSize);
1.9651 + TextIterator rIterator(KRightToLeftArabic, KRightToLeftArabicLength);
1.9652 + MLineBreaker breaker;
1.9653 + for (TInt i = 0; i < KBufferSize; ++i)
1.9654 + {
1.9655 + TUint s, e;
1.9656 + TText16 ch = rIterator.NextChar();
1.9657 + if (breaker.LineBreakClass(ch, s, e) == MLineBreaker::EAlLineBreakClass)
1.9658 + oldTextBufPtr->Des().Append(ch);
1.9659 + }
1.9660 + TPtr oldText(oldTextBufPtr->Des());
1.9661 +
1.9662 +
1.9663 + TBidiText* bidiText = TBidiText::NewL(oldText, 50);
1.9664 + CleanupStack::PushL(bidiText);
1.9665 +
1.9666 +
1.9667 + const TUint KWrapWidth = 400;
1.9668 + const TUint KLineGap = 2;
1.9669 + TSize result = bidiText->MinimumSize(KWrapWidth, *testFont, KLineGap);
1.9670 +
1.9671 +
1.9672 + // For a fixed width font where each character is 10 pixels wide, we
1.9673 + // should expect that we will have 40 characters per line for a wrapping
1.9674 + // width of 400.
1.9675 + const TUint KExpectedWidth = KWrapWidth;
1.9676 + const TUint KExpectedCharsPerLine = KWrapWidth/testFont->CharWidthInPixels('a');
1.9677 + const TUint KExpectedLines = (oldText.Length() + KExpectedCharsPerLine - 1)/KExpectedCharsPerLine;
1.9678 + const TUint KExpectedHeight = (testFont->HeightInPixels() + KLineGap) * KExpectedLines - KLineGap;
1.9679 + TEST(KExpectedWidth == result.iWidth);
1.9680 + TEST(KExpectedHeight == result.iHeight);
1.9681 +
1.9682 +
1.9683 + // Repeat the above, but this time specify the maximum number of lines
1.9684 + // we're interested in.
1.9685 + const TUint KMaxLines = 14;
1.9686 + result = bidiText->MinimumSize(KWrapWidth, *testFont, KLineGap, KMaxLines);
1.9687 + const TUint KExpectedHeight2 = (testFont->HeightInPixels() + KLineGap) * KMaxLines - KLineGap;;
1.9688 + TEST(KExpectedWidth == result.iWidth);
1.9689 + TEST(KExpectedHeight2 == result.iHeight);
1.9690 +
1.9691 +
1.9692 + CleanupStack::PopAndDestroy(bidiText);
1.9693 + CleanupStack::PopAndDestroy(oldTextBufPtr);
1.9694 + CleanupStack::PopAndDestroy(testFont);
1.9695 + }
1.9696 +
1.9697 +
1.9698 +/**
1.9699 + *
1.9700 + * Check that TBidiText will panic if MinimumSize is called
1.9701 + * with an invalid wrapping width
1.9702 + *
1.9703 + * Note: This function will generate a panic and should therefore
1.9704 + * be called from within a separate worker thread.
1.9705 + *
1.9706 + */
1.9707 +TInt CTBiDi::DoTestPanicMinimumSizeWidth()
1.9708 + {
1.9709 + CFont* testFont = new (ELeave) CTestFont;
1.9710 + CleanupStack::PushL(testFont);
1.9711 +
1.9712 + _LIT(KDummyText, "Hello World");
1.9713 + const TInt KMaxLines = 50;
1.9714 + TBidiText* bidiText = TBidiText::NewL(KDummyText, KMaxLines);
1.9715 + CleanupStack::PushL(bidiText);
1.9716 +
1.9717 +
1.9718 + RRunInfoArray runArray;
1.9719 + runArray.OpenL();
1.9720 +
1.9721 +
1.9722 + // Should panic - KWrappingWidth is negative
1.9723 + const TInt KWrappingWidth = -1;
1.9724 + const TUint KLineGap = 1;
1.9725 + bidiText->MinimumSize(KWrappingWidth, *testFont, KLineGap);
1.9726 +
1.9727 +
1.9728 + CleanupStack::PopAndDestroy(bidiText);
1.9729 + CleanupStack::PopAndDestroy(testFont);
1.9730 +
1.9731 +
1.9732 + return KErrNone;
1.9733 + }
1.9734 +
1.9735 +
1.9736 +/**
1.9737 + *
1.9738 + * Entry point for the DoTestPanicMinimumSizeWidth test's worker
1.9739 + * thread
1.9740 + *
1.9741 + * Provides cleanup stack for the test function
1.9742 + *
1.9743 + */
1.9744 +static TInt TestPanicMinimumSizeWidth(TAny* aData)
1.9745 + {
1.9746 + CTBiDi* theTest = static_cast<CTBiDi*> (aData);
1.9747 + CTrapCleanup* trap = CTrapCleanup::New();
1.9748 + if (!trap)
1.9749 + return KErrNoMemory;
1.9750 +
1.9751 + TInt result = KErrNone;
1.9752 + TRAP_IGNORE(result = theTest->DoTestPanicMinimumSizeWidth());
1.9753 +
1.9754 + delete trap;
1.9755 + return result;
1.9756 + }
1.9757 +
1.9758 +
1.9759 +/**
1.9760 + *
1.9761 + * Check that TBidiText will panic if MinimumSize is called
1.9762 + * with an invalid line gap
1.9763 + *
1.9764 + * Note: This function will generate a panic and should therefore
1.9765 + * be called from within a separate worker thread.
1.9766 + *
1.9767 + */
1.9768 +TInt CTBiDi::DoTestPanicMinimumSizeLineGap()
1.9769 + {
1.9770 + CFont* testFont = new (ELeave) CTestFont;
1.9771 + CleanupStack::PushL(testFont);
1.9772 +
1.9773 + _LIT(KDummyText, "Hello World");
1.9774 + const TInt KMaxLines = 50;
1.9775 + TBidiText* bidiText = TBidiText::NewL(KDummyText, KMaxLines);
1.9776 + CleanupStack::PushL(bidiText);
1.9777 +
1.9778 +
1.9779 + RRunInfoArray runArray;
1.9780 + runArray.OpenL();
1.9781 +
1.9782 +
1.9783 + // Should panic - KLineGap is negative
1.9784 + const TUint KWrappingWidth = 400;
1.9785 + const TInt KLineGap = -1;
1.9786 + bidiText->MinimumSize(KWrappingWidth, *testFont, KLineGap);
1.9787 +
1.9788 +
1.9789 + CleanupStack::PopAndDestroy(bidiText);
1.9790 + CleanupStack::PopAndDestroy(testFont);
1.9791 +
1.9792 +
1.9793 + return KErrNone;
1.9794 + }
1.9795 +
1.9796 +
1.9797 +/**
1.9798 + *
1.9799 + * Entry point for the DoTestPanicMinimumSizeLineGap test's worker
1.9800 + * thread
1.9801 + *
1.9802 + * Provides cleanup stack for the test function
1.9803 + *
1.9804 + */
1.9805 +static TInt TestPanicMinimumSizeLineGap(TAny* aData)
1.9806 + {
1.9807 + CTBiDi* theTest = static_cast <CTBiDi*> (aData);
1.9808 + CTrapCleanup* trap = CTrapCleanup::New();
1.9809 + if (!trap)
1.9810 + return KErrNoMemory;
1.9811 +
1.9812 + TInt result = KErrNone;;
1.9813 + TRAP_IGNORE(result = theTest->DoTestPanicMinimumSizeLineGap());
1.9814 +
1.9815 + delete trap;
1.9816 + return result;
1.9817 + }
1.9818 +
1.9819 +
1.9820 +/**
1.9821 + *
1.9822 + * Check that TBidiText will panic if MinimumSize is called
1.9823 + * with an invalid maximum number of lines
1.9824 + *
1.9825 + * Note: This function will generate a panic and should therefore
1.9826 + * be called from within a separate worker thread.
1.9827 + *
1.9828 + */
1.9829 +TInt CTBiDi::DoTestPanicMinimumSizeMaxLines()
1.9830 + {
1.9831 + CFont* testFont = new (ELeave) CTestFont;
1.9832 + CleanupStack::PushL(testFont);
1.9833 +
1.9834 + _LIT(KDummyText, "Hello World");
1.9835 + TBidiText* bidiText = TBidiText::NewL(KDummyText, 50);
1.9836 + CleanupStack::PushL(bidiText);
1.9837 +
1.9838 +
1.9839 + RRunInfoArray runArray;
1.9840 + runArray.OpenL();
1.9841 +
1.9842 +
1.9843 + // Should panic - KMaxLines is invalid
1.9844 + const TUint KWrappingWidth = 400;
1.9845 + const TUint KLineGap = 1;
1.9846 + const TInt KMaxLines = -2;
1.9847 + bidiText->MinimumSize(KWrappingWidth, *testFont, KLineGap, KMaxLines);
1.9848 +
1.9849 +
1.9850 + CleanupStack::PopAndDestroy(bidiText);
1.9851 + CleanupStack::PopAndDestroy(testFont);
1.9852 +
1.9853 +
1.9854 + return KErrNone;
1.9855 + }
1.9856 +
1.9857 +
1.9858 +/**
1.9859 + *
1.9860 + * Entry point for the DoTestPanicMinimumSizeMaxLines test's worker
1.9861 + * thread
1.9862 + *
1.9863 + * Provides cleanup stack for the test function
1.9864 + *
1.9865 + */
1.9866 +static TInt TestPanicMinimumSizeMaxLines(TAny* aData)
1.9867 + {
1.9868 + CTBiDi* theTest = static_cast <CTBiDi*> (aData);
1.9869 + CTrapCleanup* trap = CTrapCleanup::New();
1.9870 + if (!trap)
1.9871 + return KErrNoMemory;
1.9872 +
1.9873 + TInt result = KErrNone;;
1.9874 + TRAP_IGNORE(result = theTest->DoTestPanicMinimumSizeMaxLines());
1.9875 +
1.9876 + delete trap;
1.9877 + return result;
1.9878 + }
1.9879 +
1.9880 +
1.9881 +/**
1.9882 + *
1.9883 + * Check that TBidiText will panic if LineOfDisplayText is called
1.9884 + * with an invalid number of lines.
1.9885 + *
1.9886 + * Note: This function will generate a panic and should therefore
1.9887 + * be called from within a separate worker thread.
1.9888 + *
1.9889 + */
1.9890 +TInt CTBiDi::DoTestPanicMinimumNumberOfLinesL()
1.9891 + {
1.9892 + CFont* testFont = new (ELeave) CTestFont;
1.9893 + CleanupStack::PushL(testFont);
1.9894 +
1.9895 + _LIT(KDummyText, "Hello World");
1.9896 + TBidiText* bidiText = TBidiText::NewL(KDummyText, 50);
1.9897 + CleanupStack::PushL(bidiText);
1.9898 +
1.9899 + TInt width = 400;
1.9900 + bidiText->LineOfDisplayText(-2, width);
1.9901 +
1.9902 + CleanupStack::PopAndDestroy(2,testFont);
1.9903 +
1.9904 + return KErrNone;
1.9905 + }
1.9906 +/**
1.9907 + *
1.9908 + * Entry point for the DoTestPanicMinimumNumberOfLinesL test's worker
1.9909 + * thread
1.9910 + *
1.9911 + * Provides cleanup stack for the test function
1.9912 + *
1.9913 + */
1.9914 +static TInt TestPanicMinimumNumberOfLines(TAny* aData)
1.9915 + {
1.9916 + CTBiDi* theTest = static_cast <CTBiDi*> (aData);
1.9917 + CTrapCleanup* trap = CTrapCleanup::New();
1.9918 + if (!trap)
1.9919 + {
1.9920 + return KErrNoMemory;
1.9921 + }
1.9922 + TRAP_IGNORE(theTest->DoTestPanicMinimumNumberOfLinesL());
1.9923 +
1.9924 + delete trap;
1.9925 + return KErrNone;
1.9926 + }
1.9927 +
1.9928 +/**
1.9929 + *
1.9930 + * Test that TBidiText::MinimumSize() will panic in the following
1.9931 + * circumstances:
1.9932 + *
1.9933 + * o Wrapping width is invalid (i.e. <= 0)
1.9934 + * o Line gap is invalid (i.e. < 0)
1.9935 + * o Max. lines is invalid (i.e. < -1)
1.9936 + *
1.9937 + */
1.9938 +void CTBiDi::DoTestTBidiTextMinimumSizePanics()
1.9939 + {
1.9940 + INFO_PRINTF1(_L(" Invalid wrapping width (will panic!)"));
1.9941 + TEST(EBidiPanic_InvalidWrappingWidth == TestPanic(TestPanicMinimumSizeWidth));
1.9942 +
1.9943 + INFO_PRINTF1(_L(" Invalid line gap (will panic!)"));
1.9944 + TEST(EBidiPanic_InvalidLineGap == TestPanic(TestPanicMinimumSizeLineGap));
1.9945 +
1.9946 + INFO_PRINTF1(_L(" Invalid max lines (will panic!)"));
1.9947 + TEST(EBidiPanic_InvalidMaxline == TestPanic(TestPanicMinimumSizeMaxLines));
1.9948 +
1.9949 + INFO_PRINTF1(_L(" Invalid minimum number of lines (will panic!)"));
1.9950 + TEST(EBidiPanic_InvalidVisualOrderedTextLength == TestPanic(TestPanicMinimumNumberOfLines));
1.9951 + }
1.9952 +
1.9953 +
1.9954 +/**
1.9955 + @SYMTestCaseID GRAPHICS-GDI-BiDi-0009
1.9956 +
1.9957 + @SYMDEF Change Request APOS-69QD7N
1.9958 +
1.9959 + @SYMTestCaseDesc Test TBidirectionalState functionality (Unicode Bidirectional Algorithm impmentation withing SymbianOS)
1.9960 +
1.9961 + @SYMTestPriority High
1.9962 +
1.9963 + @SYMTestStatus Implemented
1.9964 +
1.9965 + @SYMTestActions Test detection of 'overall' directionality of a given language/script
1.9966 +
1.9967 + @SYMTestExpectedResults Confirmation the implementation conforms to the Unicode Birdirection Algorithm standard
1.9968 +*/
1.9969 +void CTBiDi::TestCrApos69qd7nL()
1.9970 + {
1.9971 + INFO_PRINTF1(_L("CR APOS-69QD7N - TBidiText"));
1.9972 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-SYSLIB-GDI-CT-0217"));
1.9973 + DoTestRRunInfoArrayInternalsL();
1.9974 + ((CTBiDiStep*)iStep)->RecordTestResultL();
1.9975 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-SYSLIB-GDI-CT-0218"));
1.9976 + DoTestTBidiTextNewL();
1.9977 + ((CTBiDiStep*)iStep)->RecordTestResultL();
1.9978 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-SYSLIB-GDI-CT-0219"));
1.9979 + DoTestTBidiTextSetTextL();
1.9980 + ((CTBiDiStep*)iStep)->RecordTestResultL();
1.9981 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-SYSLIB-GDI-CT-0220"));
1.9982 + DoTestTBidiTextMinimumSizeL();
1.9983 + ((CTBiDiStep*)iStep)->RecordTestResultL();
1.9984 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0009"));
1.9985 + DoTestTBidiTextMinimumSizePanics();
1.9986 + }
1.9987 +
1.9988 +/**
1.9989 + *
1.9990 + * Test for English Strings inserted into Arabic text with brackets interspersed.
1.9991 + *
1.9992 + */
1.9993 +
1.9994 +void CTBiDi::INC086135TestL()
1.9995 + {
1.9996 + // originalText: "<ALEF><LAM> ([h]o{m}e(r)):"
1.9997 + const TText* originalText = _S("\x627\x644 ([h]o{m}e(r)):");
1.9998 + // expected text: ":((h]o{m}e(r]) <LAM><ALEF>
1.9999 + const TText* expectedText = _S(":((h]o{m}e(r]) \x644\x627");
1.10000 +
1.10001 + TPtrC ptrOriginal(originalText);
1.10002 + TPtrC ptrExpected(expectedText);
1.10003 +
1.10004 + // Construct the bidirectional text
1.10005 + TBidiText* bidiText = TBidiText::NewL(ptrOriginal, 16);
1.10006 + CleanupStack::PushL(bidiText);
1.10007 +
1.10008 + // Call wrap text to prepare the text
1.10009 + CFont* testFont = new(ELeave) CTestFont;
1.10010 + CleanupStack::PushL(testFont);
1.10011 + const TInt KLineLength = 192;
1.10012 + const TInt KNumLines = 1;
1.10013 + bidiText->WrapText(KLineLength , *testFont, NULL, KNumLines);
1.10014 +
1.10015 + // Return the text that would be displayed
1.10016 + TPtrC displayText = bidiText->DisplayText();
1.10017 +
1.10018 + // Check the result
1.10019 + if(displayText.Compare(ptrExpected) != 0)
1.10020 + {
1.10021 + INFO_PRINTF1(_L("INC086135Test Failed\r\n"));
1.10022 + PrintTestData(_L("Result "), displayText);
1.10023 + PrintTestData(_L("Expected "), ptrExpected);
1.10024 + TEST(EFalse);
1.10025 + }
1.10026 + else
1.10027 + {
1.10028 + INFO_PRINTF1(_L("INC086135Test Passed\r\n"));
1.10029 + }
1.10030 + CleanupStack::PopAndDestroy(2, bidiText);
1.10031 + }
1.10032 +
1.10033 +
1.10034 +CTBiDi::CTBiDi(CTestStep* aStep) :
1.10035 + CTGraphicsBase(aStep)
1.10036 + {
1.10037 + iTestThreadCounter = 0;
1.10038 + INFO_PRINTF1(_L("TBidirectionalState::ReorderText"));
1.10039 + }
1.10040 +
1.10041 +
1.10042 +void CTBiDi::RunTestCaseL(TInt aCurTestCase)
1.10043 + {
1.10044 + ((CTBiDiStep*)iStep)->SetTestStepID(KUnknownSYMTestCaseIDName);
1.10045 + switch(aCurTestCase)
1.10046 + {
1.10047 + case 1:
1.10048 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0001"));
1.10049 + TRAPD(err, TestTBidirectionalStateInternalsL());
1.10050 + TEST(err == KErrNone);
1.10051 + break;
1.10052 + case 2:
1.10053 +/**
1.10054 +@SYMTestCaseID GRAPHICS-GDI-BiDi-0002
1.10055 +*/
1.10056 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0002"));
1.10057 + TRAP(err, TestTBidirectionalState::TestAPIL(this));
1.10058 + TEST(err == KErrNone);
1.10059 + break;
1.10060 + case 3:
1.10061 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0003"));
1.10062 + TRAP(err, TestTBidirectionalState::TestReorderTextL(this));
1.10063 + TEST(err == KErrNone);
1.10064 + break;
1.10065 + case 4:
1.10066 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0004"));
1.10067 + TRAP(err, TestReorderTextL());
1.10068 + TEST(err == KErrNone);
1.10069 + break;
1.10070 + case 5:
1.10071 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0005"));
1.10072 + TRAP(err, TUnicodeExampleTestL());
1.10073 + TEST(err == KErrNone);
1.10074 + break;
1.10075 + case 6:
1.10076 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0006"));
1.10077 + INFO_PRINTF1(_L("Script directionality"));
1.10078 + TestScriptDirectionality();
1.10079 + break;
1.10080 + case 7:
1.10081 + {
1.10082 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0007"));
1.10083 + INFO_PRINTF1(_L("TBidiText"));
1.10084 + TRAPD(err, TestBidiTextClassL());
1.10085 + TEST(err == KErrNone);
1.10086 + }
1.10087 + break;
1.10088 + case 8:
1.10089 + {
1.10090 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0008"));
1.10091 + INFO_PRINTF1(_L("TBidiLogicalToVisual"));
1.10092 + TRAPD(err, TestBidiLogicalToVisualClassL());
1.10093 + TEST(err == KErrNone);
1.10094 + }
1.10095 + break;
1.10096 + case 9:
1.10097 + {
1.10098 + __UHEAP_MARK;
1.10099 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0009"));
1.10100 + TRAPD(err, TestCrApos69qd7nL());
1.10101 + TEST(err == KErrNone);
1.10102 + ((CTBiDiStep*)iStep)->CloseTMSGraphicsStep();
1.10103 + __UHEAP_MARKEND;
1.10104 + }
1.10105 + break;
1.10106 + case 10:
1.10107 + {
1.10108 +/**
1.10109 +@SYMTestCaseID GRAPHICS-GDI-BiDi-0010
1.10110 +*/
1.10111 + ((CTBiDiStep*)iStep)->SetTestStepID(_L("GRAPHICS-GDI-BiDi-0010"));
1.10112 + INFO_PRINTF1(_L("INC086135Test"));
1.10113 + TRAPD(err, INC086135TestL());
1.10114 + TEST(err == KErrNone);
1.10115 + break;
1.10116 + }
1.10117 + case 11:
1.10118 + ((CTBiDiStep*)iStep)->SetTestStepID(KNotATestSYMTestCaseIDName);
1.10119 + ((CTBiDiStep*)iStep)->CloseTMSGraphicsStep();
1.10120 + TestComplete();
1.10121 + break;
1.10122 + }
1.10123 + ((CTBiDiStep*)iStep)->RecordTestResultL();
1.10124 + }
1.10125 +
1.10126 +//--------------
1.10127 +__CONSTRUCT_STEP__(BiDi)