Wide Characters

T

Tomás

Is the numerical value for a wide character the same as it is for a
normal character, by which I mean:

'a' == static_cast< char > ( L'a' );

'7' == static_cast< char > ( L'7' );

'k' == static_cast< char > ( L'k' );

'w' == static_cast< char > ( L'w' );

't' == static_cast< char > ( L't' );


I know that it is on MS Windows, but what about Standard C++?

-Tomás
 
P

peter koch

Tomás said:
Is the numerical value for a wide character the same as it is for a
normal character, by which I mean:

'a' == static_cast< char > ( L'a' );

'7' == static_cast< char > ( L'7' );

'k' == static_cast< char > ( L'k' );

'w' == static_cast< char > ( L'w' );

't' == static_cast< char > ( L't' );


I know that it is on MS Windows, but what about Standard C++?

I doubt that this has been specified. One could imagine e.g. a system
using EBCDIC for char and some unicode-format for wchar_t.

/Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top