1 | /* Pango |
2 | * pango-emoji-private.h: Emoji handling, private definitions |
3 | * |
4 | * Copyright (C) 2017 Google, Inc. |
5 | * |
6 | * This library is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU Library General Public |
8 | * License as published by the Free Software Foundation; either |
9 | * version 2 of the License, or (at your option) any later version. |
10 | * |
11 | * This library is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * Library General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Library General Public |
17 | * License along with this library; if not, write to the |
18 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | * Boston, MA 02111-1307, USA. |
20 | */ |
21 | |
22 | #ifndef __PANGO_EMOJI_PRIVATE_H__ |
23 | #define __PANGO_EMOJI_PRIVATE_H__ |
24 | |
25 | #include <glib.h> |
26 | |
27 | gboolean |
28 | _pango_Is_Emoji_Base_Character (gunichar ch); |
29 | |
30 | gboolean |
31 | _pango_Is_Emoji_Extended_Pictographic (gunichar ch); |
32 | |
33 | typedef struct _PangoEmojiIter PangoEmojiIter; |
34 | |
35 | struct _PangoEmojiIter |
36 | { |
37 | const gchar *text_start; |
38 | const gchar *text_end; |
39 | const gchar *start; |
40 | const gchar *end; |
41 | gboolean is_emoji; |
42 | |
43 | unsigned char *types; |
44 | unsigned int n_chars; |
45 | unsigned int cursor; |
46 | }; |
47 | |
48 | PangoEmojiIter * |
49 | _pango_emoji_iter_init (PangoEmojiIter *iter, |
50 | const char *text, |
51 | int length); |
52 | |
53 | gboolean |
54 | _pango_emoji_iter_next (PangoEmojiIter *iter); |
55 | |
56 | void |
57 | _pango_emoji_iter_fini (PangoEmojiIter *iter); |
58 | |
59 | #endif /* __PANGO_EMOJI_PRIVATE_H__ */ |
60 | |