QUICHE team | 83e0444 | 2019-12-11 06:49:49 -0800 | [diff] [blame] | 1 | // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_COMMON_PLATFORM_API_QUICHE_STR_CAT_H_ |
| 6 | #define QUICHE_COMMON_PLATFORM_API_QUICHE_STR_CAT_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | #include <utility> |
| 10 | |
| 11 | #include "net/quiche/common/platform/impl/quiche_str_cat_impl.h" |
| 12 | |
| 13 | namespace quiche { |
| 14 | |
| 15 | // Merges given strings or numbers with no delimiter. |
| 16 | template <typename... Args> |
| 17 | inline std::string QuicheStrCat(const Args&... args) { |
| 18 | return quiche::QuicheStrCatImpl(std::forward<const Args&>(args)...); |
| 19 | } |
| 20 | |
| 21 | template <typename... Args> |
| 22 | inline std::string QuicheStringPrintf(const Args&... args) { |
| 23 | return QuicheStringPrintfImpl(std::forward<const Args&>(args)...); |
| 24 | } |
| 25 | |
| 26 | } // namespace quiche |
| 27 | |
| 28 | #endif // QUICHE_COMMON_PLATFORM_API_QUICHE_STR_CAT_H_ |