unicode.h File Reference

Helper classes and types for manipulating Unicode. More...

#include <xmltooling/base.h>
#include <string>
#include <iostream>
#include <xercesc/util/XMLString.hpp>

Namespaces

namespace  xmltooling

Classes

class  xmltooling::auto_ptr_char
 A minimal auto_ptr-like class that can copy or transcode a buffer into the local code page and free the result automatically. More...
class  xmltooling::auto_ptr_XMLCh
 A minimal auto_ptr-like class that can copy or transcode a buffer into 16-bit Unicode and free the result automatically. More...
class  xmltooling::auto_arrayptr< T >
 An auto_ptr that uses array delete on its contents. More...

Typedefs

typedef std::basic_string<
XMLCh > 
xmltooling::xstring
 An STL string type that supports 16-bit Unicode.

Functions

char * xmltooling::toUTF8 (const XMLCh *src, bool use_malloc=false)
 Transcodes a 16-bit Unicode string into UTF-8.
XMLCh * xmltooling::fromUTF8 (const char *src, bool use_malloc=false)
 Transcodes a UTF-8 string into 16-bit Unicode.
std::ostream & xmltooling::operator<< (std::ostream &ostr, const XMLCh *s)
 Writes a Unicode string to an ASCII stream by transcoding to UTF8.
std::ostream & xmltooling::operator<< (std::ostream &ostr, const xstring &s)
 Writes a Unicode string to an ASCII stream by transcoding to UTF8.


Detailed Description

Helper classes and types for manipulating Unicode.


Generated on Mon Oct 19 14:18:34 2009 for xmltooling by  doxygen 1.4.7