xref: /aosp_15_r20/external/skia/modules/skunicode/include/SkUnicode_client.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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
26