summaryrefslogtreecommitdiffabout
path: root/include/kingate/util.h
authorMichael Krelin <hacker@klever.net>2005-01-29 20:14:37 (UTC)
committer Michael Krelin <hacker@klever.net>2005-01-29 20:14:37 (UTC)
commitff4b919683537625f693eedf53006364d0f8444d (patch) (unidiff)
tree4c19e38c0832b16b4ca98ae5af6542d932373eb1 /include/kingate/util.h
parentf9a64a67c89a7566e63ed66c3a69c359abea4dfd (diff)
downloadkingate-ff4b919683537625f693eedf53006364d0f8444d.zip
kingate-ff4b919683537625f693eedf53006364d0f8444d.tar.gz
kingate-ff4b919683537625f693eedf53006364d0f8444d.tar.bz2
initial commit into repository0.0
Diffstat (limited to 'include/kingate/util.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/kingate/util.h26
1 files changed, 26 insertions, 0 deletions
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 @@
1#ifndef __KINGATE_UTIL_H
2#define __KINGATE_UTIL_H
3
4#include <string>
5
6namespace kingate {
7 using namespace std;
8
9 /**
10 * Escape string for passing via URL.
11 * @param str string unescaped.
12 * @return the escaped string.
13 */
14 string url_escape(const string& str);
15 /**
16 * Remove URL-encoding from the string.
17 * @param str the URL-encoded string.
18 * @return the unescaped string.
19 */
20 string url_unescape(const string& str);
21}
22
23#endif /* __KINGATE_UTIL_H */
24/*
25 * vim:set ft=cpp:
26 */