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 <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 14/04/02 10:02 ã
|
To: Shachar Shemesh <[EMAIL PROTECTED]> cc: Andriy Palamarchuk <[EMAIL PROTECTED]>, Geoffrey Hausheer <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] http://fgouget.free.fr/
Broadcast message : fin du monde dans cinq minutes, repentez vous !