blob: 3eb3a0262e2c8acd231dbb59dd14ea116b9c256e [file] [log] [blame] [edit]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/strings/strcat.h"
#include <string>
#include <string_view>
#include "base/strings/strcat_internal.h"
namespace gurl_base {
std::string StrCat(span<const std::string_view> pieces) {
return internal::StrCatT(pieces);
}
std::u16string StrCat(span<const std::u16string_view> pieces) {
return internal::StrCatT(pieces);
}
std::string StrCat(span<const std::string> pieces) {
return internal::StrCatT(pieces);
}
std::u16string StrCat(span<const std::u16string> pieces) {
return internal::StrCatT(pieces);
}
void StrAppend(std::string* dest, span<const std::string_view> pieces) {
internal::StrAppendT(*dest, pieces);
}
void StrAppend(std::u16string* dest, span<const std::u16string_view> pieces) {
internal::StrAppendT(*dest, pieces);
}
void StrAppend(std::string* dest, span<const std::string> pieces) {
internal::StrAppendT(*dest, pieces);
}
void StrAppend(std::u16string* dest, span<const std::u16string> pieces) {
internal::StrAppendT(*dest, pieces);
}
} // namespace base