Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1888)

Unified Diff: net/base/escape.cc

Issue 7978039: net: Put more functions from escape.h into net namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/escape.h ('k') | net/base/escape_icu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/escape.cc
diff --git a/net/base/escape.cc b/net/base/escape.cc
index fcdcbe3409efed3847dc5e028571d72a5bc65dc7..0ab01e467bd7b28f5b4e2d590ae70d6ace5fb2e9 100644
--- a/net/base/escape.cc
+++ b/net/base/escape.cc
@@ -191,10 +191,6 @@ static const Charmap kQueryCharmap(
0xffffffffL, 0xfc00987dL, 0x78000001L, 0xb8000001L,
0xffffffffL, 0xffffffffL, 0xffffffffL, 0xffffffffL);
-std::string EscapeQueryParamValue(const std::string& text, bool use_plus) {
- return Escape(text, kQueryCharmap, use_plus);
-}
-
// non-printable, non-7bit, and (including space) "#%:<>?[\]^`{|}
static const Charmap kPathCharmap(
0xffffffffL, 0xd400002dL, 0x78000000L, 0xb8000001L,
@@ -364,6 +360,10 @@ string16 UnescapeForHTML(const string16& input) {
namespace net {
+std::string EscapeQueryParamValue(const std::string& text, bool use_plus) {
+ return Escape(text, kQueryCharmap, use_plus);
+}
+
// Convert the string to a sequence of bytes and then % escape anything
// except alphanumerics and !'()*-._~
string16 EscapeQueryParamValueUTF8(const string16& text, bool use_plus) {
« no previous file with comments | « net/base/escape.h ('k') | net/base/escape_icu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698