OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef _URLENCODE_H_ | 11 #ifndef WEBRTC_BASE_URLENCODE_H_ |
12 #define _URLENCODE_H_ | 12 #define WEBRTC_BASE_URLENCODE_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 namespace rtc { | 16 namespace rtc { |
17 | 17 |
18 // Decode all encoded characters. Also decode + as space. | 18 // Decode all encoded characters. Also decode + as space. |
19 int UrlDecode(const char *source, char *dest); | 19 int UrlDecode(const char *source, char *dest); |
20 | 20 |
21 // Decode all encoded characters. | 21 // Decode all encoded characters. |
22 int UrlDecodeWithoutEncodingSpaceAsPlus(const char *source, char *dest); | 22 int UrlDecodeWithoutEncodingSpaceAsPlus(const char *source, char *dest); |
(...skipping 11 matching lines...) Expand all Loading... |
34 int UrlEncodeOnlyUnsafeChars(const char *source, char *dest, unsigned max); | 34 int UrlEncodeOnlyUnsafeChars(const char *source, char *dest, unsigned max); |
35 | 35 |
36 std::string UrlDecodeString(const std::string & encoded); | 36 std::string UrlDecodeString(const std::string & encoded); |
37 std::string UrlDecodeStringWithoutEncodingSpaceAsPlus( | 37 std::string UrlDecodeStringWithoutEncodingSpaceAsPlus( |
38 const std::string & encoded); | 38 const std::string & encoded); |
39 std::string UrlEncodeString(const std::string & decoded); | 39 std::string UrlEncodeString(const std::string & decoded); |
40 std::string UrlEncodeStringWithoutEncodingSpaceAsPlus( | 40 std::string UrlEncodeStringWithoutEncodingSpaceAsPlus( |
41 const std::string & decoded); | 41 const std::string & decoded); |
42 std::string UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded); | 42 std::string UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded); |
43 | 43 |
44 #endif | 44 #endif // WEBRTC_BASE_URLENCODE_H_ |
45 | 45 |
46 } // namespace rtc | 46 } // namespace rtc |
OLD | NEW |