On 07/28/2010 05:46 PM, Stanisław Findeisen wrote:
On 07/24/2010 07:48 PM, David Bertoni wrote:
On 7/24/2010 1:43 AM, Stanisław Findeisen wrote:
Hi
Is XMLCh type guaranteed to be UTF-16 code unit?
What about byte order?
Yes, XMLCh always contains UTF-16 code units, and the byte order is that
of the platform.
Is this possible:
sizeof(XMLCh) != 2
?
Hi, what about this?
Look here:
http://www.parashift.com/c++-faq-lite/intrinsic-types.html#faq-26.4
What if char has more than 8 bits? Has anyone ever used Xerces on such a
machine?...
What about surrogate pairs and their order? Is it the same as in UTF-16,
that is, the high surrogate comes first?
Yes, the processor operates internally in UTF-16. Arrays of XMLCh are
always UTF-16.
Is anything of this a subject to change in the future?
No.
Dave
STF