skia2/modules/skplaintexteditor/include/stringview.h
Hal Canary a0b66fc79d SkPlainTextEditor: from experimental to modules
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>
2019-08-27 20:32:19 +00:00

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