From 1ca6396a3dd284241de11bcaa210ad5836e8e5a8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Dec 2009 16:18:01 +0200 Subject: Multiple object model character encodings support Also add support for ISO-8859-1. --- documentation/cxx/tree/guide/index.xhtml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'documentation/cxx/tree/guide/index.xhtml') diff --git a/documentation/cxx/tree/guide/index.xhtml b/documentation/cxx/tree/guide/index.xhtml index 787610a..f96b09b 100644 --- a/documentation/cxx/tree/guide/index.xhtml +++ b/documentation/cxx/tree/guide/index.xhtml @@ -226,7 +226,7 @@ 3Overall Mapping Configuration - + @@ -1148,7 +1148,7 @@ $ doxygen hello.doxygen Compiler Command Line Manual.

-

3.1 Character Type

+

3.1 Character Type and Encoding

The C++/Tree mapping has built-in support for two character types: char and wchar_t. You can select the @@ -1160,14 +1160,25 @@ $ doxygen hello.doxygen

Another aspect of the mapping that depends on the character type is character encoding. For the char character type - the encoding is UTF-8. For the wchar_t character type - the encoding is automatically selected between UTF-16 and - UTF-32/UCS-4 depending on the size of the wchar_t type. - On some platforms (for example, Windows with Visual C++ and AIX with IBM XL - C++) wchar_t is 2 bytes long. For these platforms the + the default encoding is UTF-8. Other supported encodings are + ISO-8859-1, Xerces-C++ Local Code Page (LPC), as well as + custom encodings. You can select which encoding should be used + in the object model with the --char-encoding command + line option.

+ +

For the wchar_t character type the encoding is + automatically selected between UTF-16 and UTF-32/UCS-4 depending + on the size of the wchar_t type. On some platforms + (for example, Windows with Visual C++ and AIX with IBM XL C++) + wchar_t is 2 bytes long. For these platforms the encoding is UTF-16. On other platforms wchar_t is 4 bytes long and UTF-32/UCS-4 is used.

+

Note also that the character encoding that is used in the object model + is independent of the encodings used in input and output XML. In fact, + all three (object mode, input XML, and output XML) can have different + encodings.

+

3.2 Support for Polymorphism

By default XSD generates non-polymorphic code. If your vocabulary -- cgit v1.1

3.1Character Type
3.1Character Type and Encoding
3.2Support for Polymorphism
3.3Namespace Mapping
3.4Thread Safety