skia2/experimental/editor/word_boundaries.h
Hal Canary e9cb762215 experimental/editor : handle word-left and word-right
Bug: skia:9020
Change-Id: I308a0c9867777eb5c008f583d86d8d1c8ff5d8e0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/230745
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2019-07-30 15:48:29 +00:00

12 lines
437 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 word_boundaries_DEFINED
#define word_boundaries_DEFINED
#include <vector>
// TODO: Decide if this functionality should be moved into SkShaper as an extra utility.
std::vector<bool> GetUtf8WordBoundaries(const char* begin, const char* end, const char* locale);
#endif // word_boundaries_DEFINED