16 #include <xercesc/framework/MemBufFormatTarget.hpp>
17 #include <xercesc/framework/XMLFormatter.hpp>
37 static string parse(
const string &text,
38 const map <
string,
string, less<string> > &to_parse,
39 string tag_begin,
string tag_end);
48 static int gsub(
string &buffer,
const char *pat,
const char *drp);
57 static inline string to_string(
const char* format,
const kind &number)
60 const int _NUMBER_SIZE = 128;
63 p =
new char[_NUMBER_SIZE];
64 snprintf(p, (_NUMBER_SIZE - 1), format, number);
110 static string &
ltrim(
string &s);
117 static string&
rtrim(
string &s);
124 static string&
trim(
string &s);
128 #endif //__STRUTIL_H__
StrUtil Class: String Manipulation Utilities.
Definition: StrUtil.H:26
static string to_string(const char *format, const kind &number)
Convert number to string where the format string looks like printf format.
Definition: StrUtil.H:57
static string & rtrim(string &s)
Trim from end.
static string & trim(string &s)
Trim from both ends.
static int iso88591_to_utf8(const string &iso88591, string &utf8)
static string parse(const string &text, const map< string, string, less< string > > &to_parse, string tag_begin, string tag_end)
Used for parsing XML Templates.
static int utf8_to_iso88591(const string &utf8, string &iso88591)
static string esc_xml_markup(const string &input_txt)
Escape &'><" characters.
string xml_beautifier(const string &input_txt)
XML Beautifier.
static int gsub(string &buffer, const char *pat, const char *drp)
Used for substitution of pat for drp within buffer.
static string & ltrim(string &s)
Trim from start.