1// Copyright 2022 The RE2 Authors. All Rights Reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5#ifndef RE2_STRINGPIECE_H_
6#define RE2_STRINGPIECE_H_
7
8#include "absl/strings/string_view.h"
9
10namespace re2 {
11
12// Until RE2 requires C++17 and uses std::string_view, allow users to
13// continue to #include "re2/stringpiece.h" and use re2::StringPiece.
14using StringPiece = absl::string_view;
15
16} // namespace re2
17
18#endif // RE2_STRINGPIECE_H_
19