summaryrefslogtreecommitdiffstats
path: root/net/base/escape.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-21 01:50:50 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-21 01:50:50 +0000
commit8c0af3834e11d643562c13788c06c695f2666f51 (patch)
treef7e7077e61fe2cc179d175c30b25798c5e063f1d /net/base/escape.h
parentb4aae1439d03c8a1135ee76d3abcd9da601a856f (diff)
downloadchromium_src-8c0af3834e11d643562c13788c06c695f2666f51.zip
chromium_src-8c0af3834e11d643562c13788c06c695f2666f51.tar.gz
chromium_src-8c0af3834e11d643562c13788c06c695f2666f51.tar.bz2
Adding some more escaping method.
This will be used by the translate feature. BUG=None TEST=Run the unit-tests. Review URL: http://codereview.chromium.org/548088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36715 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/escape.h')
-rw-r--r--net/base/escape.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/base/escape.h b/net/base/escape.h
index 67ccc5f..b9b0b6a 100644
--- a/net/base/escape.h
+++ b/net/base/escape.h
@@ -92,6 +92,8 @@ class UnescapeRule {
// conversions need to take place, it only unescapes.
std::string UnescapeURLComponent(const std::string& escaped_text,
UnescapeRule::Type rules);
+string16 UnescapeURLComponent(const string16& escaped_text,
+ UnescapeRule::Type rules);
// Unescapes the given substring as a URL, and then tries to interpret the
// result as being encoded as UTF-8. If the result is convertable into UTF-8, it
@@ -106,6 +108,10 @@ string16 UnescapeAndDecodeUTF8URLComponent(const std::string& text,
UnescapeRule::Type rules,
size_t* offset_for_adjustment);
+// Unescape the following ampersand character codes from |text|:
+// &lt; &gt; &amp; &quot; &#39;
+string16 UnescapeForHTML(const string16& text);
+
// Deprecated ------------------------------------------------------------------
// Escapes characters in text suitable for use as a query parameter value.