a0b66fc79d
Change-Id: I8896283ee3a57af926a43f6647e27059d52dd7a8 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/237146 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
20 lines
382 B
C++
20 lines
382 B
C++
// Copyright 2019 Google LLC.
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
#ifndef stringview_DEFINED
|
|
#define stringview_DEFINED
|
|
|
|
#include <cstddef>
|
|
|
|
namespace SkPlainTextEditor {
|
|
|
|
template <typename T>
|
|
struct Span {
|
|
T* data;
|
|
std::size_t size;
|
|
};
|
|
|
|
using StringView = Span<const char>;
|
|
|
|
}
|
|
#endif // stringview_DEFINED
|