blob: 4b0dca803d3d843d83a34d24e4223e80db29fb07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef __KINGATE_UTIL_H
#define __KINGATE_UTIL_H
#include <string>
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:
*/
|