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