Via Chris Oldwood on Twitter: the real meaning of various C++ character types wchart_t, char, tchar and varchar
Posted by jpluimers on 2024/02/21
A while ago there was this great thread of various C++ character types:
- [Wayback/Archive] Chris Oldwood on Twitter: “The difference between
charandwchar_tin C++ is thatcharis for narrow characters andwchar_tis for wide characters. So you’d store letters like i, l, and t in acharbut M and W in awchar_t…” - [Wayback/Archive] Alan Stokes on Twitter: “@chrisoldwood
tcharis for really tiny characters, like ‘.‘.” - [Wayback/Archive] Chris Marrin on Twitter: “@chrisoldwood That all makes sense, but what do you do with this? “
And since most above talk about character width:
- [Wayback/Archive] Rob King on Twitter: “@chrisoldwood And the part of the operating system that handles the spacing between letters is the kern-el.”
–jeroen







Leave a comment