Click here to Skip to main content
16,020,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwchar_t in C Pin
Anonygeeker13-Dec-17 22:18
Anonygeeker13-Dec-17 22:18 
AnswerRe: wchar_t in C Pin
CPallini13-Dec-17 22:44
mveCPallini13-Dec-17 22:44 
AnswerRe: wchar_t in C Pin
Jochen Arndt13-Dec-17 22:50
professionalJochen Arndt13-Dec-17 22:50 
GeneralRe: wchar_t in C Pin
Anonygeeker13-Dec-17 23:51
Anonygeeker13-Dec-17 23:51 
GeneralRe: wchar_t in C Pin
Jochen Arndt14-Dec-17 0:09
professionalJochen Arndt14-Dec-17 0:09 
GeneralRe: wchar_t in C Pin
jschell14-Dec-17 8:48
jschell14-Dec-17 8:48 
GeneralRe: wchar_t in C Pin
Jochen Arndt14-Dec-17 11:46
professionalJochen Arndt14-Dec-17 11:46 
GeneralRe: wchar_t in C Pin
jschell16-Dec-17 8:34
jschell16-Dec-17 8:34 
Jochen Arndt wrote:
Why? As far as I know wchar_t is not used for variable length encodings.


It is intended for any character set, not just unicode. Most representations are not unicode.

And unicode IS a variable length encoding to some meaning of that definition. There are escape characters in the 8/16/32 bit unicode character sets that allow for the definition of additional characters using multiple 'character' values. So two wchar_t might be needed for a single character.


Jochen Arndt wrote:
While that is true for UTF-16 it is not for UTF-32.


"UTF-32 does not make calculating the displayed width of a string easier, since even with a "fixed width" font there may be more than one code point per character position"

UTF-32 - Wikipedia[^]

I will state that it is unlikely for this to be used.

Jochen Arndt wrote:
That is wrong.


Presumably you are claiming that UTF-32 contains every possible character.

So based on that logic what exactly is in UTF-64? Just UTF-32 for the first half and the empty space for the rest?

Jochen Arndt wrote:
Still 14 of 32 bits unused.


That isn't relevant. It isn't how the character set is defined but rather the extent and how it is used.

There are unused spots in a number of places in unicode in general. No idea why. Perhaps they figure a specific range of the character set might have a few more characters added in the future.

Far as I can recall many character sets beyond 7 bits end up duplicating or adding to a real character set. For example the normal extended ascii set has several dashes and a few mathematical symbols. And that is only using 8 bits.
GeneralRe: wchar_t in C Pin
Jochen Arndt17-Dec-17 0:33
professionalJochen Arndt17-Dec-17 0:33 
GeneralRe: wchar_t in C Pin
jschell18-Dec-17 15:30
jschell18-Dec-17 15:30 
GeneralRe: wchar_t in C Pin
Jochen Arndt18-Dec-17 21:12
professionalJochen Arndt18-Dec-17 21:12 
GeneralRe: wchar_t in C Pin
jschell23-Dec-17 12:50
jschell23-Dec-17 12:50 
GeneralRe: wchar_t in C Pin
Anonygeeker14-Dec-17 17:25
Anonygeeker14-Dec-17 17:25 
GeneralRe: wchar_t in C Pin
Jochen Arndt14-Dec-17 20:48
professionalJochen Arndt14-Dec-17 20:48 
GeneralRe: wchar_t in C Pin
Anonygeeker14-Dec-17 21:53
Anonygeeker14-Dec-17 21:53 
AnswerRe: wchar_t in C Pin
leon de boer14-Dec-17 7:08
leon de boer14-Dec-17 7:08 
QuestionMFC libary makefile Pin
jung-kreidler12-Dec-17 4:29
jung-kreidler12-Dec-17 4:29 
QuestionRe: MFC libary makefile Pin
David Crow13-Dec-17 6:54
David Crow13-Dec-17 6:54 
AnswerRe: MFC libary makefile Pin
jung-kreidler13-Dec-17 21:14
jung-kreidler13-Dec-17 21:14 
AnswerRe: MFC libary makefile Pin
Richard MacCutchan13-Dec-17 7:37
mveRichard MacCutchan13-Dec-17 7:37 
GeneralRe: MFC libary makefile Pin
jung-kreidler13-Dec-17 21:17
jung-kreidler13-Dec-17 21:17 
AnswerRe: MFC libary makefile Pin
Randor 13-Dec-17 11:16
professional Randor 13-Dec-17 11:16 
AnswerRe: MFC libary makefile Pin
jung-kreidler13-Dec-17 21:23
jung-kreidler13-Dec-17 21:23 
Questioncurrent user Pin
john563211-Dec-17 19:14
john563211-Dec-17 19:14 
AnswerRe: current user Pin
Jochen Arndt11-Dec-17 23:02
professionalJochen Arndt11-Dec-17 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.