Loading...
Searching...
No Matches
graphemebreakdef.h
Go to the documentation of this file.
/*
* Grapheme breaking in a Unicode sequence. Designed to be used in a
* generic text renderer.
*
* Copyright (C) 2016-2019 Andreas Röver <roever at users dot sf dot net>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the author be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute
* it freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must
* not claim that you wrote the original software. If you use this
* software in a product, an acknowledgement in the product
* documentation would be appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must
* not be misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source
* distribution.
*
* The main reference is Unicode Standard Annex 29 (UAX #29):
* <URL:http://unicode.org/reports/tr29>
*
* When this library was designed, this annex was at Revision 29, for
* Unicode 9.0.0:
* <URL:http://www.unicode.org/reports/tr29/tr29-29.html>
*
* This library has been updated according to Revision 37, for
* Unicode 13.0.0:
* <URL:http://www.unicode.org/reports/tr29/tr29-37.html>
*
* The Unicode Terms of Use are available at
* <URL:http://www.unicode.org/copyright.html>
*/
#ifndef GRAPHEMEBREAKDEF_H
#define GRAPHEMEBREAKDEF_H
#include "unibreakdef.h"
enum GraphemeBreakClass
{
GBP_CR,
GBP_LF,
GBP_Control,
GBP_Virama,
GBP_LinkingConsonant,
GBP_Extend,
GBP_ZWJ,
GBP_Regional_Indicator,
GBP_Prepend,
GBP_SpacingMark,
GBP_L,
GBP_V,
GBP_T,
GBP_LV,
GBP_LVT,
GBP_Other,
GBP_Undefined
};
struct GraphemeBreakProperties
{
utf32_t start;
utf32_t end;
enum GraphemeBreakClass prop;
};
#endif /* GRAPHEMEBREAKDEF_H */
GraphemeBreakClass
GraphemeBreakClass
Word break classes.
Definition graphemebreakdef.h:58
GBP_V
@ GBP_V
Definition graphemebreakdef.h:70
GBP_ZWJ
@ GBP_ZWJ
Definition graphemebreakdef.h:65
GBP_T
@ GBP_T
Definition graphemebreakdef.h:71
GBP_Prepend
@ GBP_Prepend
Definition graphemebreakdef.h:67
GBP_SpacingMark
@ GBP_SpacingMark
Definition graphemebreakdef.h:68
GBP_LinkingConsonant
@ GBP_LinkingConsonant
Definition graphemebreakdef.h:63
GBP_LV
@ GBP_LV
Definition graphemebreakdef.h:72
GBP_Control
@ GBP_Control
Definition graphemebreakdef.h:61
GBP_Regional_Indicator
@ GBP_Regional_Indicator
Definition graphemebreakdef.h:66
GBP_L
@ GBP_L
Definition graphemebreakdef.h:69
GBP_LVT
@ GBP_LVT
Definition graphemebreakdef.h:73
GBP_LF
@ GBP_LF
Definition graphemebreakdef.h:60
GBP_Virama
@ GBP_Virama
Definition graphemebreakdef.h:62
GBP_Extend
@ GBP_Extend
Definition graphemebreakdef.h:64
GBP_Other
@ GBP_Other
Definition graphemebreakdef.h:74
GBP_CR
@ GBP_CR
Definition graphemebreakdef.h:59
GBP_Undefined
@ GBP_Undefined
Definition graphemebreakdef.h:75
GraphemeBreakProperties
Struct for entries of grapheme break properties.
Definition graphemebreakdef.h:83
GraphemeBreakProperties::end
utf32_t end
End codepoint, inclusive.
Definition graphemebreakdef.h:85
GraphemeBreakProperties::prop
enum GraphemeBreakClass prop
The grapheme breaking property.
Definition graphemebreakdef.h:86
GraphemeBreakProperties::start
utf32_t start
Start codepoint.
Definition graphemebreakdef.h:84
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.