47 static string rfc822_date(
const time_t t ) ;
49 static string entity(
char c ) ;
65 static string www2id(
const string &in,
66 const string &escape =
"%",
67 const string &except =
"" ) ;
71 static string lowercase(
const string &s ) ;
74 static string unescape(
const string &s ) ;
79 bool follow_sym_links ) ;
92 static string id2xml(
string in,
93 const string ¬_allowed =
"><&'\"" ) ;
96 static string xml2id(
string in ) ;
99 static void explode(
char delim,
const string &str,
100 list<string> &values ) ;
103 static string implode(
const list<string> &values,
121 #endif // E_BESUtil_h
static string id2xml(string in, const string ¬_allowed="><&'\"")
convert characters not allowed in xml to escaped characters
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 void url_explode(const string &url_str, BESUtil::url &url_parts)
Given a url, break the url into its different parts.
static string url_create(BESUtil::url &url_parts)
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.