blob: 36d054f0541b636b386fba6e982385df6877c0e0 [file] [log] [blame]
QUICHE team83e04442019-12-11 06:49:49 -08001// 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
13namespace quiche {
14
15// Merges given strings or numbers with no delimiter.
16template <typename... Args>
17inline std::string QuicheStrCat(const Args&... args) {
18 return quiche::QuicheStrCatImpl(std::forward<const Args&>(args)...);
19}
20
21template <typename... Args>
22inline 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_