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@free.fr Sent by: wine-devel-admin@winehq.com 14/04/02 10:02 م Please respond to Francois Gouget
To: Shachar Shemesh wine-devel@sun.consumer.org.il cc: Andriy Palamarchuk apa3a@yahoo.com, Geoffrey Hausheer i8e7fkwmsl1@phracturedblue.com, wine-devel@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@free.fr http://fgouget.free.fr/ Broadcast message : fin du monde dans cinq minutes, repentez vous !