Regression tests, UNICODE vs ASCII
Lina Kemmel
LKEMMEL at il.ibm.com
Mon Apr 15 05:10:51 CDT 2002
You can write something like the following:
const WCHAR zeroWidthNonJoiner = 0x200C;
const WCHAR zeroWidthJoiner = 0x200D;
const WCHAR leftToRightMark = 0x200E;
const WCHAR rightToLeftMark = 0x200F;
const WCHAR leftToRightEmbedding = 0x202A;
const WCHAR rightToLeftEmbedding = 0x202B;
const WCHAR popDirectionalFormatting = 0x202C;
const WCHAR leftToRightOverride = 0x202D;
const WCHAR rightToLeftOverride = 0x202E;
( or
enum
{
zeroWidthNonJoiner = 0x200C,
zeroWidthJoiner,
leftToRightMark,
rightToLeftMark,
leftToRightEmbedding = 0x202A,
rightToLeftEmbedding,
popDirectionalFormatting,
leftToRightOverride,
rightToLeftOverride
};
)
const WCHAR test_string[] = {zeroWidthNonJoiner, zeroWidthJoiner, leftToRightMark, ... , rightToLeftOverride};
Lina
Francois Gouget <fgouget at free.fr>
Sent by: wine-devel-admin at winehq.com
14/04/02 10:02 م
Please respond to Francois Gouget
To: Shachar Shemesh <wine-devel at sun.consumer.org.il>
cc: Andriy Palamarchuk <apa3a at yahoo.com>, Geoffrey Hausheer
<i8e7fkwmsl1 at phracturedblue.com>, <wine-devel at winehq.com>
Subject: Re: Regression tests, UNICODE vs ASCII
On Sun, 14 Apr 2002, Shachar Shemesh wrote:
> One thing you may try are the explicit BiDi specifiers (Right to left,
> left to right etc.). These are Unicode characters designed to explicitly
> specify the direction of otherwise amigious characters.
>
> Ansii does not have, to the best of my knowledge, an equivalent encoded
> characters.
But what would these Unicode characters look like?
I.e. what would I write in my code:
const WCHAR test_string[]={'???','???','???'};
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Broadcast message : fin du monde dans cinq minutes, repentez vous !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20020415/4677fd34/attachment.htm
More information about the wine-devel
mailing list