summaryrefslogtreecommitdiff
path: root/chromium/base/strings/strcat_win.cc
blob: ad2f2e16ab16c4176ccb277a707a0379c2228e8a (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
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/strings/strcat_win.h"

#include <string>

#include "base/containers/span.h"
#include "base/strings/strcat_internal.h"
#include "base/strings/string_piece.h"

namespace base {

#if defined(BASE_STRING16_IS_STD_U16STRING)

std::wstring StrCat(span<const WStringPiece> pieces) {
  return internal::StrCatT(pieces);
}

std::wstring StrCat(span<const std::wstring> pieces) {
  return internal::StrCatT(pieces);
}

void StrAppend(std::wstring* dest, span<const WStringPiece> pieces) {
  internal::StrAppendT(dest, pieces);
}

void StrAppend(std::wstring* dest, span<const std::wstring> pieces) {
  internal::StrAppendT(dest, pieces);
}

#endif

}  // namespace base