OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_BASE_ESCAPE_H_ | 5 #ifndef NET_BASE_ESCAPE_H_ |
6 #define NET_BASE_ESCAPE_H_ | 6 #define NET_BASE_ESCAPE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | |
12 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
13 #include "base/strings/utf_offset_string_conversions.h" | 14 #include "base/strings/utf_offset_string_conversions.h" |
14 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 // Escaping -------------------------------------------------------------------- | 19 // Escaping -------------------------------------------------------------------- |
19 | 20 |
20 // Escapes characters in text suitable for use as a query parameter value. | 21 // Escapes characters in text suitable for use as a query parameter value. |
21 // We %XX everything except alphanumerics and -_.!~*'() | 22 // We %XX everything except alphanumerics and -_.!~*'() |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 UnescapeRule::Type rules, | 137 UnescapeRule::Type rules, |
137 base::OffsetAdjuster::Adjustments* adjustments); | 138 base::OffsetAdjuster::Adjustments* adjustments); |
138 | 139 |
139 // Unescapes the following ampersand character codes from |text|: | 140 // Unescapes the following ampersand character codes from |text|: |
140 // < > & " ' | 141 // < > & " ' |
141 NET_EXPORT base::string16 UnescapeForHTML(const base::string16& text); | 142 NET_EXPORT base::string16 UnescapeForHTML(const base::string16& text); |
142 | 143 |
143 } // namespace net | 144 } // namespace net |
144 | 145 |
145 #endif // NET_BASE_ESCAPE_H_ | 146 #endif // NET_BASE_ESCAPE_H_ |
OLD | NEW |