bes
Updated for version 3.20.5
|
40 #include <BESCatalog.h>
48 static string rfc822_date(
const time_t t);
50 static string entity(
char c);
66 static string www2id(
const string &in,
const string &escape =
"%",
const string &except =
"");
67 static string unhexstring(
string s);
73 static string unescape(
const string &s);
76 static void check_path(
const string &path,
const string &root,
bool follow_sym_links);
86 static string id2xml(
string in,
const string ¬_allowed =
"><&'\"");
89 static string xml2id(
string in);
92 static void explode(
char delim,
const string &str, list<string> &values);
95 static string implode(
const list<string> &values,
char delim);
109 static string assemblePath(
const string &firstPart,
const string &secondPart,
bool leadingSlash =
false,
bool trailingSlash =
false);
110 static string pathConcat(
const string &firstPart,
const string &secondPart,
char separator=
'/');
112 static bool endsWith(std::string
const &fullString, std::string
const &ending);
115 static void replace_all(std::string &s, std::string find_this, std::string replace_with_this);
116 static std::string
normalize_path(
const std::string &path,
bool leading_separator,
bool trailing_separator,
const string separator =
"/");
117 static void tokenize(
const std::string& str, std::vector<std::string>& tokens,
const std::string& delimiters =
"/");
118 static string get_time(
bool use_local_time =
false);
119 static string get_time(time_t the_time,
bool use_local_time =
false);
120 static std::vector<std::string>
split(
const string &s,
char delim=
'/',
bool skip_empty=
true);
122 static BESCatalog *separateCatalogFromPath(std::string &path);
128 #endif // E_BESUtil_h
static void set_mime_html(ostream &strm)
Generate an HTTP 1.0 response header for a html document.
static void replace_all(std::string &s, std::string find_this, std::string replace_with_this)
Operates on the string 's' to replaces every occurrence of the value of the string 'find_this' with t...
static string unescape(const string &s)
static void tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters="/")
static void removeLeadingAndTrailingBlanks(string &key)
static void explode(char delim, const string &str, list< string > &values)
static string assemblePath(const string &firstPart, const string &secondPart, bool leadingSlash=false, bool trailingSlash=false)
Assemble path fragments making sure that they are separated by a single '/' character.
static void url_explode(const string &url_str, BESUtil::url &url_parts)
Given a url, break the url into its different parts.
static void conditional_timeout_cancel()
static string get_time(bool use_local_time=false)
static std::vector< std::string > split(const string &s, char delim='/', bool skip_empty=true)
Splits the string s into the return vector of tokens using the delimiter delim and skipping empty val...
static std::string normalize_path(const std::string &path, bool leading_separator, bool trailing_separator, const string separator="/")
Removes duplicate separators and provides leading and trailing separators as directed.
static void set_mime_text(ostream &strm)
Generate an HTTP 1.0 response header for a text document.
static char * fastpidconverter(char *buf, int base)
static string lowercase(const string &s)
static void check_path(const string &path, const string &root, bool follow_sym_links)
Check if the specified path is valid.
static bool endsWith(std::string const &fullString, std::string const &ending)
static string pathConcat(const string &firstPart, const string &secondPart, char separator='/')
Concatenate path fragments making sure that they are separated by a single '/' character.
static string xml2id(string in)
Catalogs provide a hierarchical organization for data.
static string www2id(const string &in, const string &escape="%", const string &except="")
static string implode(const list< string > &values, char delim)
static string id2xml(string in, const string ¬_allowed="><&'\"")