| 1 |
/* |
| 2 |
* Copyright 2024 Google LLC |
| 3 |
* |
| 4 |
* Use of this source code is governed by a BSD-style license that can be |
| 5 |
* found in the LICENSE file. |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef SkUnicode_client_DEFINED |
| 9 |
#define SkUnicode_client_DEFINED |
| 10 |
|
| 11 |
#include "include/core/SkSpan.h" |
| 12 |
#include "modules/skunicode/include/SkUnicode.h" |
| 13 |
|
| 14 |
#include <memory> |
| 15 |
#include <vector> |
| 16 |
|
| 17 |
namespace SkUnicodes::Client { |
| 18 |
SKUNICODE_API sk_sp<SkUnicode> Make( |
| 19 |
SkSpan<char> text, |
| 20 |
std::vector<SkUnicode::Position> words, |
| 21 |
std::vector<SkUnicode::Position> graphemeBreaks, |
| 22 |
std::vector<SkUnicode::LineBreakBefore> lineBreaks); |
| 23 |
} |
| 24 |
|
| 25 |
#endif // SkUnicode_client_DEFINED |