1
XERCES_CPP_NAMESPACE_USE
2
// ---------------------------------------------------------------------------
3
// This is a simple class that lets us do easy (though not terribly efficient)
4
// trancoding of char* data to XMLCh data.
5
// ---------------------------------------------------------------------------
9
// -----------------------------------------------------------------------
10
// Constructors and Destructor
11
// -----------------------------------------------------------------------
12
XStr(const char* const toTranscode)
14
// Call the private transcoding method
15
fUnicodeForm = XMLString::transcode(toTranscode);
20
delete [] fUnicodeForm;
24
// -----------------------------------------------------------------------
26
// -----------------------------------------------------------------------
27
const XMLCh* unicodeForm() const
33
// -----------------------------------------------------------------------
34
// Private data members
37
// This is the Unicode XMLCh format of the string.
38
// -----------------------------------------------------------------------
42
#define X(str) XStr(str).unicodeForm()