xref: /aosp_15_r20/external/skia/tools/unicode_comparison/cpp/bridge.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 // Copyright 2023 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef BRIDGE_H
6 #define BRIDGE_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 #include <stdbool.h>
12 
13   bool   init_skunicode_impl(char* impl);
14   void   cleanup_unicode_impl();
15   void*  toUpper(char* str);
16   void   print(void* str);
17   double perf_compute_codeunit_flags(char* text);
18   int    getFlags(int index);
19   void*  getSentences(char* text, int* length);
20   bool   trimSentence(char* text, int* sentence, int wordLimit);
21 
22 #ifdef __cplusplus
23 } // extern "C"
24 #endif
25 #endif // BRIDGE_H
26