Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace xercesc;
- using namespace std;
- class XStr
- {
- public :
- XStr(const char* const toTranscode)
- {
- // Call the private transcoding method
- fUnicodeForm = XMLString::transcode(toTranscode);
- }
- ~XStr()
- {
- XMLString::release(&fUnicodeForm);
- }
- const XMLCh* unicodeForm() const
- {
- return fUnicodeForm;
- }
- private :
- XMLCh* fUnicodeForm;
- };
- #define X(str) XStr(str).unicodeForm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement