OpenMS  2.8.0
Public Member Functions | Static Public Member Functions | Private Types | Static 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...
 

Static Public Member Functions

static XercesString convert (const char *str)
 Transcode the supplied C string to a xerces string. More...
 
static XercesString convert (const std::string &str)
 Transcode the supplied C++ string to a xerces string. More...
 
static XercesString convert (const String &str)
 Transcode the supplied OpenMS string to a xerces string. More...
 
static unique_xerces_ptr< XMLCh > convertPtr (const char *str)
 Transcode the supplied C string to a xerces string pointer. More...
 
static unique_xerces_ptr< XMLCh > convertPtr (const std::string &str)
 Transcode the supplied C++ string to a xerces string pointer. More...
 
static unique_xerces_ptr< XMLCh > convertPtr (const String &str)
 Transcode the supplied OpenMS string to a xerces string pointer. More...
 
static String convert (const XMLCh *str)
 Transcode the supplied XMLCh* to a String. More...
 
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
 

Static Private Member Functions

static unique_xerces_ptr< XMLCh > fromNative_ (const char *str)
 
static unique_xerces_ptr< XMLCh > fromNative_ (const String &str)
 
static String toNative_ (const XMLCh *str)
 
static String toNative_ (const unique_xerces_ptr< XMLCh > &str)
 

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]

static XercesString convert ( const char *  str)
inlinestatic

◆ convert() [2/4]

static XercesString convert ( const std::string &  str)
inlinestatic

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

◆ convert() [3/4]

static XercesString convert ( const String str)
inlinestatic

Transcode the supplied OpenMS string to a xerces string.

◆ convert() [4/4]

static String convert ( const XMLCh *  str)
inlinestatic

Transcode the supplied XMLCh* to a String.

◆ convertPtr() [1/3]

static unique_xerces_ptr<XMLCh> convertPtr ( const char *  str)
inlinestatic

◆ convertPtr() [2/3]

static unique_xerces_ptr<XMLCh> convertPtr ( const std::string &  str)
inlinestatic

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

◆ convertPtr() [3/3]

static unique_xerces_ptr<XMLCh> convertPtr ( const String str)
inlinestatic

Transcode the supplied OpenMS string to a xerces string pointer.

◆ fromNative_() [1/2]

static unique_xerces_ptr<XMLCh> fromNative_ ( const char *  str)
inlinestaticprivate

◆ fromNative_() [2/2]

static unique_xerces_ptr<XMLCh> fromNative_ ( const String str)
inlinestaticprivate

◆ toNative_() [1/2]

static String toNative_ ( const unique_xerces_ptr< XMLCh > &  str)
inlinestaticprivate

◆ toNative_() [2/2]

static String toNative_ ( const XMLCh *  str)
inlinestaticprivate