47 static string rfc822_date(
const time_t t ) ;
49 static string entity(
char c ) ;
64 static string www2id(
const string &in,
65 const string &escape =
"%",
66 const string &except =
"" ) ;
70 static string lowercase(
const string &s ) ;
73 static string unescape(
const string &s ) ;
78 bool follow_sym_links ) ;
91 static string id2xml(
string in,
92 const string ¬_allowed =
"><&'\"" ) ;
95 static string xml2id(
string in ) ;
98 static void explode(
char delim,
const string &str,
99 list<string> &values ) ;
102 static string implode(
const list<string> &values,
106 #endif // E_BESUtil_h static string lowercase(const string &s)
Convert a string to all lower case.
static string www2id(const string &in, const string &escape="%", const string &except="")
This functions are used to unescape hex characters from strings.
static void removeLeadingAndTrailingBlanks(string &key)
remove leading and trailing blanks from a string
static string implode(const list< string > &values, char delim)
implode a list of values into a single string delimited by delim
static string xml2id(string in)
unescape xml escaped characters
static void set_mime_html(ostream &strm)
Generate an HTTP 1.0 response header for a html document.
static void explode(char delim, const string &str, list< string > &values)
explode a string into an array given a delimiter
static void set_mime_text(ostream &strm)
Generate an HTTP 1.0 response header for a text document.
static string unhexstring(string s)
static string id2xml(string in, const string ¬_allowed="><&'\)
convert characters not allowed in xml to escaped characters
static char * fastpidconverter(char *buf, int base)
convert pid and place in provided buffer
static string unescape(const string &s)
Unescape characters with backslash before them.
static void check_path(const string &path, const string &root, bool follow_sym_links)
Check if the specified path is valid.