1 // Copyright 2019 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3 #ifndef stringview_DEFINED
4 #define stringview_DEFINED
5 
6 #include <cstddef>
7 
8 namespace SkPlainTextEditor {
9 
10 template <typename T>
11 struct Span {
12     T* data;
13     std::size_t size;
14 };
15 
16 using StringView = Span<const char>;
17 
18 }  // namespace SkPlainTextEditor
19 #endif  // stringview_DEFINED
20