|
Xerces-C++ 3.2.4
|
#include <xercesc/util/TransService.hpp>
Public Member Functions | |
| TranscodeFromStr (const XMLByte *data, XMLSize_t length, const char *encoding, MemoryManager *manager=XMLPlatformUtils::fgMemoryManager) | |
| Converts from the specified encoding to the internal XMLCh* encoding. | |
| TranscodeFromStr (const XMLByte *data, XMLSize_t length, XMLTranscoder *trans, MemoryManager *manager=XMLPlatformUtils::fgMemoryManager) | |
| Converts from the specified encoding to the internal XMLCh* encoding. | |
| ~TranscodeFromStr () | |
Getter methods | |
| const XMLCh * | str () const |
| Returns the transcoded, null terminated string. | |
| XMLCh * | adopt () |
| Returns the transcoded, null terminated string - adopting the memory allocated to it from the TranscodeFromStr object. | |
| XMLSize_t | length () const |
| Returns the length of the transcoded string in characters. | |
| TranscodeFromStr::TranscodeFromStr | ( | const XMLByte * | data, |
| XMLSize_t | length, | ||
| const char * | encoding, | ||
| MemoryManager * | manager = XMLPlatformUtils::fgMemoryManager ) |
Converts from the specified encoding to the internal XMLCh* encoding.
| data | the source buffer to be transcoded |
| length | the length of the source buffer |
| encoding | the name of the encoding to transcode to |
| manager | the memory manager to use |
References XMLPlatformUtils::fgMemoryManager, and length().
Referenced by ~TranscodeFromStr().
| TranscodeFromStr::TranscodeFromStr | ( | const XMLByte * | data, |
| XMLSize_t | length, | ||
| XMLTranscoder * | trans, | ||
| MemoryManager * | manager = XMLPlatformUtils::fgMemoryManager ) |
Converts from the specified encoding to the internal XMLCh* encoding.
| data | the source buffer to be transcoded |
| length | the length of the source buffer |
| trans | the transcoder to use |
| manager | the memory manager to use |
References XMLPlatformUtils::fgMemoryManager, and length().
| TranscodeFromStr::~TranscodeFromStr | ( | ) |
References adopt(), length(), str(), and TranscodeFromStr().
| XMLCh * TranscodeFromStr::adopt | ( | ) |
Returns the transcoded, null terminated string - adopting the memory allocated to it from the TranscodeFromStr object.
Referenced by ~TranscodeFromStr().
| XMLSize_t TranscodeFromStr::length | ( | ) | const |
Returns the length of the transcoded string in characters.
The length does not include the null terminator.
Referenced by TranscodeFromStr(), TranscodeFromStr(), and ~TranscodeFromStr().
| const XMLCh * TranscodeFromStr::str | ( | ) | const |
Returns the transcoded, null terminated string.
Referenced by ~TranscodeFromStr().