From ff4b919683537625f693eedf53006364d0f8444d Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 29 Jan 2005 20:14:37 +0000 Subject: initial commit into repository --- (limited to 'include/kingate/util.h') diff --git a/include/kingate/util.h b/include/kingate/util.h new file mode 100644 index 0000000..4b0dca8 --- a/dev/null +++ b/include/kingate/util.h @@ -0,0 +1,26 @@ +#ifndef __KINGATE_UTIL_H +#define __KINGATE_UTIL_H + +#include + +namespace kingate { + using namespace std; + + /** + * Escape string for passing via URL. + * @param str string unescaped. + * @return the escaped string. + */ + string url_escape(const string& str); + /** + * Remove URL-encoding from the string. + * @param str the URL-encoded string. + * @return the unescaped string. + */ + string url_unescape(const string& str); +} + +#endif /* __KINGATE_UTIL_H */ +/* + * vim:set ft=cpp: + */ -- cgit v0.9.0.2