blob: f5e90ea20620817bb5ef3a04b85076cd757a08ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// 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 "base/strings/strcat_internal.h"
namespace base {
std::string StrCat(span<const StringPiece> pieces) {
return internal::StrCatT(pieces);
}
std::u16string StrCat(span<const StringPiece16> 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 StringPiece> pieces) {
internal::StrAppendT(*dest, pieces);
}
void StrAppend(std::u16string* dest, span<const StringPiece16> 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
|