2 ms·
Certainly on Mac OS, sizeof(wchar_t) had nothing to do with the way text strings got stored. The Mac had an elaborate system for handling international text tha
by Someone 7y ago
Certainly on Mac OS, sizeof(wchar_t) had nothing to do with the way text strings got stored. The Mac had an elaborate system for handling international text that used either bytes or 16-bit quantities for text storage, where the interpretation of what a byte or byte pair meant was stored separately from those bytes. https://developer.apple.com/library/archive/documentation/mac/pdf/Text.pdf https://developer.apple.com/library/archive/documentation/ma...:
”The character codes may be 1-byte or 2-byte codes, but there is nothing else in the text stream except for those codes. Using font information that your program stores separately, Script Manager routines can help you determine whether a character is 1 or 2 bytes, and other managers allow you to work with either character size.”
More cumbersome to use than modern Unicode API’s? Definitely, but it was superior to what Windows provided for years.