Xerces-C++  3.2.0
Public Member Functions | List of all members
TranscodeToStr Class Reference

Public Member Functions

 TranscodeToStr (const XMLCh *in, const char *encoding, MemoryManager *manager=XMLPlatformUtils::fgMemoryManager)
 Converts from the internal XMLCh* encoding to the specified encoding. More...
 
 TranscodeToStr (const XMLCh *in, XMLSize_t length, const char *encoding, MemoryManager *manager=XMLPlatformUtils::fgMemoryManager)
 Converts from the internal XMLCh* encoding to the specified encoding. More...
 
 TranscodeToStr (const XMLCh *in, XMLTranscoder *trans, MemoryManager *manager=XMLPlatformUtils::fgMemoryManager)
 Converts from the internal XMLCh* encoding to the specified encoding. More...
 
 TranscodeToStr (const XMLCh *in, XMLSize_t length, XMLTranscoder *trans, MemoryManager *manager=XMLPlatformUtils::fgMemoryManager)
 Converts from the internal XMLCh* encoding to the specified encoding. More...
 
 ~TranscodeToStr ()
 
Getter methods
const XMLBytestr () const
 Returns the transcoded, null terminated string. More...
 
XMLByteadopt ()
 Returns the transcoded, null terminated string - adopting the memory allocated to it from the TranscodeToStr object. More...
 
XMLSize_t length () const
 Returns the length of the transcoded string in bytes. More...
 

Constructor & Destructor Documentation

◆ TranscodeToStr() [1/4]

TranscodeToStr::TranscodeToStr ( const XMLCh in,
const char *  encoding,
MemoryManager manager = XMLPlatformUtils::fgMemoryManager 
)

Converts from the internal XMLCh* encoding to the specified encoding.

Parameters
inthe null terminated source buffer to be transcoded
encodingthe name of the encoding to transcode to
managerthe memory manager to use

◆ TranscodeToStr() [2/4]

TranscodeToStr::TranscodeToStr ( const XMLCh in,
XMLSize_t  length,
const char *  encoding,
MemoryManager manager = XMLPlatformUtils::fgMemoryManager 
)

Converts from the internal XMLCh* encoding to the specified encoding.

Parameters
inthe source buffer to be transcoded
lengththe length of the source buffer
encodingthe name of the encoding to transcode to
managerthe memory manager to use

◆ TranscodeToStr() [3/4]

TranscodeToStr::TranscodeToStr ( const XMLCh in,
XMLTranscoder trans,
MemoryManager manager = XMLPlatformUtils::fgMemoryManager 
)

Converts from the internal XMLCh* encoding to the specified encoding.

Parameters
inthe null terminated source buffer to be transcoded
transthe transcoder to use
managerthe memory manager to use

◆ TranscodeToStr() [4/4]

TranscodeToStr::TranscodeToStr ( const XMLCh in,
XMLSize_t  length,
XMLTranscoder trans,
MemoryManager manager = XMLPlatformUtils::fgMemoryManager 
)

Converts from the internal XMLCh* encoding to the specified encoding.

Parameters
inthe source buffer to be transcoded
lengththe length of the source buffer
transthe transcoder to use
managerthe memory manager to use

◆ ~TranscodeToStr()

TranscodeToStr::~TranscodeToStr ( )

Member Function Documentation

◆ adopt()

XMLByte * TranscodeToStr::adopt ( )

Returns the transcoded, null terminated string - adopting the memory allocated to it from the TranscodeToStr object.

Returns
the transcoded string

◆ length()

XMLSize_t TranscodeToStr::length ( ) const

Returns the length of the transcoded string in bytes.

The length does not include the null terminator.

Returns
the length of the transcoded string in bytes

◆ str()

const XMLByte * TranscodeToStr::str ( ) const

Returns the transcoded, null terminated string.

Returns
the transcoded string

The documentation for this class was generated from the following file: