| 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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 template <typename... Args> | 23 template <typename... Args> |
| 24 inline void SpdyStrAppendImpl(std::string* output, Args... args) { | 24 inline void SpdyStrAppendImpl(std::string* output, Args... args) { |
| 25 output->append(SpdyStrCatImpl(args...)); | 25 output->append(SpdyStrCatImpl(args...)); |
| 26 } | 26 } |
| 27 | 27 |
| 28 template <typename... Args> | 28 template <typename... Args> |
| 29 inline std::string SpdyStringPrintfImpl(const Args&... args) { | 29 inline std::string SpdyStringPrintfImpl(const Args&... args) { |
| 30 return base::StringPrintf(std::forward<const Args&>(args)...); | 30 return base::StringPrintf(std::forward<const Args&>(args)...); |
| 31 } | 31 } |
| 32 | 32 |
| 33 template <typename... Args> |
| 34 inline void SpdyStringAppendFImpl(const Args&... args) { |
| 35 base::StringAppendF(std::forward<const Args&>(args)...); |
| 36 } |
| 37 |
| 33 } // namespace net | 38 } // namespace net |
| 34 | 39 |
| 35 #endif // NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ | 40 #endif // NET_SPDY_PLATFORM_IMPL_SPDY_STRING_UTILS_IMPL_H_ |
| OLD | NEW |