libunibreak: emojidef.h Source File

libunibreak 5.1

Loading...
Searching...
No Matches
emojidef.h
Go to the documentation of this file.
1/*
2 * Emoji-related routine and data.
3 *
4 * Copyright (C) 2018 Andreas Röver <roever at users dot sf dot net>
5 *
6 * This software is provided 'as-is', without any express or implied
7 * warranty. In no event will the author be held liable for any damages
8 * arising from the use of this software.
9 *
10 * Permission is granted to anyone to use this software for any purpose,
11 * including commercial applications, and to alter it and redistribute
12 * it freely, subject to the following restrictions:
13 *
14 * 1. The origin of this software must not be misrepresented; you must
15 * not claim that you wrote the original software. If you use this
16 * software in a product, an acknowledgement in the product
17 * documentation would be appreciated but is not required.
18 * 2. Altered source versions must be plainly marked as such, and must
19 * not be misrepresented as being the original software.
20 * 3. This notice may not be removed or altered from any source
21 * distribution.
22 */
23
33#ifndef EMOJIDEF_H
34#define EMOJIDEF_H
35
36#include "unibreakdef.h"
37
43 struct ExtendedPictograpic
44{
45 utf32_t start;
46 utf32_t end;
47};
48
49bool ub_is_extended_pictographic(utf32_t ch);
50
51#endif /* EMOJIDEF_H */
ub_is_extended_pictographic
bool ub_is_extended_pictographic(utf32_t ch)
Finds out if a codepoint is extended pictographic.
Definition: emojidef.c:42
ExtendedPictograpic
Struct for entries of extended pictographic properties.
Definition: emojidef.h:44
ExtendedPictograpic::start
utf32_t start
Start codepoint.
Definition: emojidef.h:45
ExtendedPictograpic::end
utf32_t end
End codepoint, inclusive.
Definition: emojidef.h:46
utf32_t
unsigned int utf32_t
Type for UTF-32 data points.
Definition: unibreakbase.h:49
unibreakdef.h
Header file for private definitions in the libunibreak library.