#include <OpenMS/FORMAT/HANDLERS/XMLHandler.h>
|
| StringManager () |
| Constructor. More...
|
|
| ~StringManager () |
| Destructor. Destroys the strings in the various lists. More...
|
|
void | clear () |
| Frees memory of all owned strings. More...
|
|
XMLCh * | convert (const char *str) const |
| Transcode the supplied C string to XMLCh* and take ownership of the XMLCh*. More...
|
|
XMLCh * | convert (const std::string &str) const |
| Transcode the supplied C++ string to XMLCh* and take ownership of the XMLCh*. More...
|
|
XMLCh * | convert (const String &str) const |
| Transcode the supplied OpenMS string to XMLCh* and take ownership of the XMLCh*. More...
|
|
char * | convert (const XMLCh *str) const |
| Transcode the supplied XMLCh* to a C string and take ownership of the C string. More...
|
|
◆ StringManager()
◆ ~StringManager()
Destructor. Destroys the strings in the various lists.
◆ 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
◆ clear()
Frees memory of all owned strings.
◆ convert() [1/4]
XMLCh* convert |
( |
const char * |
str | ) |
const |
◆ convert() [2/4]
XMLCh* convert |
( |
const std::string & |
str | ) |
const |
Transcode the supplied C++ string to XMLCh* and take ownership of the XMLCh*.
◆ convert() [3/4]
XMLCh* convert |
( |
const String & |
str | ) |
const |
Transcode the supplied OpenMS string to XMLCh* and take ownership of the XMLCh*.
◆ convert() [4/4]
char* convert |
( |
const XMLCh * |
str | ) |
const |
Transcode the supplied XMLCh* to a C string and take ownership of the C string.
◆ c_strings_
std::vector<char *> c_strings_ |
|
mutableprivate |
◆ xml_strings_
std::vector<XMLCh *> xml_strings_ |
|
mutableprivate |