| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 WEBRTC_RTC_BASE_STRINGENCODE_H_ | 11 #ifndef WEBRTC_RTC_BASE_STRINGENCODE_H_ |
| 12 #define WEBRTC_RTC_BASE_STRINGENCODE_H_ | 12 #define WEBRTC_RTC_BASE_STRINGENCODE_H_ |
| 13 | 13 |
| 14 #include <sstream> | 14 #include <sstream> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/rtc_base/checks.h" | 18 #include "webrtc/base/checks.h" |
| 19 | 19 |
| 20 namespace rtc { | 20 namespace rtc { |
| 21 | 21 |
| 22 ////////////////////////////////////////////////////////////////////// | 22 ////////////////////////////////////////////////////////////////////// |
| 23 // String Encoding Utilities | 23 // String Encoding Utilities |
| 24 ////////////////////////////////////////////////////////////////////// | 24 ////////////////////////////////////////////////////////////////////// |
| 25 | 25 |
| 26 // Convert an unsigned value to it's utf8 representation. Returns the length | 26 // Convert an unsigned value to it's utf8 representation. Returns the length |
| 27 // of the encoded string, or 0 if the encoding is longer than buflen - 1. | 27 // of the encoded string, or 0 if the encoding is longer than buflen - 1. |
| 28 size_t utf8_encode(char* buffer, size_t buflen, unsigned long value); | 28 size_t utf8_encode(char* buffer, size_t buflen, unsigned long value); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 // simple function to strip out characters which shouldn't be | 216 // simple function to strip out characters which shouldn't be |
| 217 // used in filenames | 217 // used in filenames |
| 218 char make_char_safe_for_filename(char c); | 218 char make_char_safe_for_filename(char c); |
| 219 | 219 |
| 220 ////////////////////////////////////////////////////////////////////// | 220 ////////////////////////////////////////////////////////////////////// |
| 221 | 221 |
| 222 } // namespace rtc | 222 } // namespace rtc |
| 223 | 223 |
| 224 #endif // WEBRTC_RTC_BASE_STRINGENCODE_H__ | 224 #endif // WEBRTC_RTC_BASE_STRINGENCODE_H__ |
| OLD | NEW |