From 0942697ed6ee058809db963f9cc3126f93139de2 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Thu, 31 Mar 2005 22:06:45 +0000 Subject: 1. renamed url_escape/unescape to encode/decode 2. introduced a number of wrappers for accessing meta-variables mentioned in RFC3875 3. bumped library version info --- (limited to 'src/util.cc') diff --git a/src/util.cc b/src/util.cc index 2e2d305..3166e62 100644 --- a/src/util.cc +++ b/src/util.cc @@ -9,7 +9,7 @@ namespace kingate { "0123456789" "_-" ; - string url_escape(const string& str) { + string url_encode(const string& str) { string rv = str; string::size_type screwed = 0; for(;;) { @@ -30,7 +30,7 @@ namespace kingate { } return rv; } - string url_unescape(const string& str) { + string url_decode(const string& str) { string rv = str; string::size_type unscrewed = 0; for(;;) { -- cgit v0.9.0.2