OpenMS  2.5.0
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | List of all members
StringManager Class Reference

#include <OpenMS/FORMAT/HANDLERS/XMLHandler.h>

Public Member Functions

 StringManager ()
 Constructor. More...
 
 ~StringManager ()
 Destructor. More...
 
XercesString convert (const char *str) const
 Transcode the supplied C string to a xerces string. More...
 
XercesString convert (const std::string &str) const
 Transcode the supplied C++ string to a xerces string. More...
 
XercesString convert (const String &str) const
 Transcode the supplied OpenMS string to a xerces string. More...
 
String convert (const XMLCh *str) const
 Transcode the supplied XMLCh* to a String. More...
 

Static Public Member Functions

static void appendASCII (const XMLCh *str, const XMLSize_t length, String &result)
 Transcodes the supplied XMLCh* and appends it to the OpenMS String. More...
 

Private Types

typedef std::basic_string< XMLCh > XercesString
 

Private Member Functions

XercesString fromNative_ (const char *str) const
 
XercesString fromNative_ (const String &str) const
 
String toNative_ (const XMLCh *str) const
 
String toNative_ (const XercesString &str) const
 

Member Typedef Documentation

◆ XercesString

typedef std::basic_string<XMLCh> XercesString
private

Constructor & Destructor Documentation

◆ StringManager()

Constructor.

◆ ~StringManager()

Destructor.

Member Function Documentation

◆ appendASCII()

static void appendASCII ( const XMLCh *  str,
const XMLSize_t  length,
String result 
)
static

Transcodes the supplied XMLCh* and appends it to the OpenMS String.

Note
Assumes that the XMLCh* only contains ASCII characters

◆ convert() [1/4]

XercesString convert ( const char *  str) const
inline

◆ convert() [2/4]

XercesString convert ( const std::string &  str) const
inline

Transcode the supplied C++ string to a xerces string.

◆ convert() [3/4]

XercesString convert ( const String str) const
inline

Transcode the supplied OpenMS string to a xerces string.

◆ convert() [4/4]

String convert ( const XMLCh *  str) const
inline

Transcode the supplied XMLCh* to a String.

◆ fromNative_() [1/2]

XercesString fromNative_ ( const char *  str) const
inlineprivate

◆ fromNative_() [2/2]

XercesString fromNative_ ( const String str) const
inlineprivate

◆ toNative_() [1/2]

String toNative_ ( const XercesString str) const
inlineprivate

◆ toNative_() [2/2]

String toNative_ ( const XMLCh *  str) const
inlineprivate