1// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
2// Copyright 2010, SIL International, All rights reserved.
3
4#include <cassert>
5#include "graphite2/Segment.h"
6#include "inc/CharInfo.h"
7
8extern "C"
9{
10
11unsigned int gr_cinfo_unicode_char(const gr_char_info* p/*not NULL*/)
12{
13 assert(p);
14 return p->unicodeChar();
15}
16
17
18int gr_cinfo_break_weight(const gr_char_info* p/*not NULL*/)
19{
20 assert(p);
21 return p->breakWeight();
22}
23
24int gr_cinfo_after(const gr_char_info *p/*not NULL*/)
25{
26 assert(p);
27 return p->after();
28}
29
30int gr_cinfo_before(const gr_char_info *p/*not NULL*/)
31{
32 assert(p);
33 return p->before();
34}
35
36size_t gr_cinfo_base(const gr_char_info *p/*not NULL*/)
37{
38 assert(p);
39 return p->base();
40}
41
42} // extern "C"
43