#include <xmltooling/unicode.h>
Public Member Functions | |
| auto_ptr_XMLCh () | |
| Default constructor. | |
| auto_ptr_XMLCh (const char *src, bool trim=true) | |
| Constructor transcodes a local code page (NOT UTF-8) string into 16-bit Unicode and wraps the result. | |
| auto_ptr_XMLCh (const XMLCh *src, bool trim=true) | |
| Constructor copies a 16-bit Unicode string and wraps the result. | |
| ~auto_ptr_XMLCh () | |
| Destructor frees the wrapped buffer using the Xerces memory manager. | |
| const XMLCh * | get () const |
| Returns the wrapped buffer. | |
| XMLCh * | release () |
| Returns the wrapped buffer and transfers ownership of it to the caller. | |
Needed because a standard auto_ptr would use delete on the resulting pointer.
|
||||||||||||
|
Constructor transcodes a local code page (NOT UTF-8) string into 16-bit Unicode and wraps the result.
|
|
||||||||||||
|
Constructor copies a 16-bit Unicode string and wraps the result.
|
|
|
Returns the wrapped buffer.
|
|
|
Returns the wrapped buffer and transfers ownership of it to the caller.
|
1.4.6