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

Side by Side Diff: webrtc/base/urlencode.h

Issue 2572703002: Delete method Pathname::url and base/urlencode* (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « webrtc/base/pathutils_unittest.cc ('k') | webrtc/base/urlencode.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2008 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef _URLENCODE_H_
12 #define _URLENCODE_H_
13
14 #include <string>
15
16 namespace rtc {
17
18 // Decode all encoded characters. Also decode + as space.
19 int UrlDecode(const char *source, char *dest);
20
21 // Decode all encoded characters.
22 int UrlDecodeWithoutEncodingSpaceAsPlus(const char *source, char *dest);
23
24 // Encode all characters except alphas, numbers, and -_.!~*'()
25 // Also encode space as +.
26 int UrlEncode(const char *source, char *dest, unsigned max);
27
28 // Encode all characters except alphas, numbers, and -_.!~*'()
29 int UrlEncodeWithoutEncodingSpaceAsPlus(const char *source, char *dest,
30 unsigned max);
31
32 // Encode only unsafe chars, including \ "^&`<>[]{}
33 // Also encode space as %20, instead of +
34 int UrlEncodeOnlyUnsafeChars(const char *source, char *dest, unsigned max);
35
36 std::string UrlDecodeString(const std::string & encoded);
37 std::string UrlDecodeStringWithoutEncodingSpaceAsPlus(
38 const std::string & encoded);
39 std::string UrlEncodeString(const std::string & decoded);
40 std::string UrlEncodeStringWithoutEncodingSpaceAsPlus(
41 const std::string & decoded);
42 std::string UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded);
43
44 #endif
45
46 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/pathutils_unittest.cc ('k') | webrtc/base/urlencode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698