frepple::utils::XMLEscape Class Reference
#include <utils.h>
Public Member Functions | |
XMLEscape (const char *p) | |
XMLEscape (const string &p) | |
Friends | |
ostream & | operator<< (ostream &, const XMLEscape &) |
Detailed Description
@ brief This utility class escapes special characters from a string.
The following characters are replaced:
- &: replaced with &
- <: replaced with <
- >: replaced with >
- ": replaced with "
- ': replaced with '
- all other characters are left unchanged The reverse process of un-escaping the special character sequences is taken care of by the Xerces library.
This class works fine with UTF-8 and single-byte encodings, but will NOT work with other multibyte encodings (such as UTF-116 or UTF-32).
Constructor & Destructor Documentation
frepple::utils::XMLEscape::XMLEscape | ( | const char * | p | ) | [inline] |
frepple::utils::XMLEscape::XMLEscape | ( | const string & | p | ) | [inline] |
Friends And Related Function Documentation
ostream& operator<< | ( | ostream & | , |
const XMLEscape & | |||
) | [friend] |
Prints the escaped value of the string to the outputstream.
Definition at line 536 of file xmlparser.cpp.
The documentation for this class was generated from the following file:
Documentation generated for frePPLe by
