J
jjf
Do Standard C's wide characters and wide strings require absolutely
that each character be stored in a single wchar_t, or can characters be
"multi-wchar_t" in the same way that they can be multibyte? Is it a
requirement that the number of wchar_t's in a string is the same as the
number of characters in the string (give or take the terminal null
character)?
The particular case I'm puzzling over is whether or not it is
conforming for an implementation with a 16-bit wchar_t to use UTF-16 as
a character encoding, since this would require some characters to be
endoded as two wchar_t's. I understand that this is what one popular
C-like implementation does.
that each character be stored in a single wchar_t, or can characters be
"multi-wchar_t" in the same way that they can be multibyte? Is it a
requirement that the number of wchar_t's in a string is the same as the
number of characters in the string (give or take the terminal null
character)?
The particular case I'm puzzling over is whether or not it is
conforming for an implementation with a 16-bit wchar_t to use UTF-16 as
a character encoding, since this would require some characters to be
endoded as two wchar_t's. I understand that this is what one popular
C-like implementation does.