| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ | 5 #ifndef NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ |
| 6 #define NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ | 6 #define NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ |
| 7 | 7 |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <utility> |
| 9 | 10 |
| 10 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 12 #include "net/spdy/platform/api/spdy_string.h" | 13 #include "net/spdy/platform/api/spdy_string.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 | 16 |
| 16 template <typename... Args> | 17 template <typename... Args> |
| 17 inline SpdyString SpdyStrCatImpl(const Args&... args) { | 18 inline SpdyString SpdyStrCatImpl(const Args&... args) { |
| 18 std::ostringstream oss; | 19 std::ostringstream oss; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 base::StringAppendF(std::forward<const Args&>(args)...); | 37 base::StringAppendF(std::forward<const Args&>(args)...); |
| 37 } | 38 } |
| 38 | 39 |
| 39 inline char SpdyHexDigitToIntImpl(char c) { | 40 inline char SpdyHexDigitToIntImpl(char c) { |
| 40 return base::HexDigitToInt(c); | 41 return base::HexDigitToInt(c); |
| 41 } | 42 } |
| 42 | 43 |
| 43 } // namespace net | 44 } // namespace net |
| 44 | 45 |
| 45 #endif // NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ | 46 #endif // NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ |
| OLD | NEW |