diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/evas/src/static_deps/liblinebreak/wordbreakdef.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/libraries/evas/src/static_deps/liblinebreak/wordbreakdef.h b/libraries/evas/src/static_deps/liblinebreak/wordbreakdef.h new file mode 100644 index 0000000..331cd01 --- /dev/null +++ b/libraries/evas/src/static_deps/liblinebreak/wordbreakdef.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /* vim: set tabstop=4 shiftwidth=4: */ | ||
2 | |||
3 | /* | ||
4 | * Word breaking in a Unicode sequence. Designed to be used in a | ||
5 | * generic text renderer. | ||
6 | * | ||
7 | * Copyright (C) 2011-2011 Tom Hacohen <tom@stosb.com> | ||
8 | * | ||
9 | * This software is provided 'as-is', without any express or implied | ||
10 | * warranty. In no event will the author be held liable for any damages | ||
11 | * arising from the use of this software. | ||
12 | * | ||
13 | * Permission is granted to anyone to use this software for any purpose, | ||
14 | * including commercial applications, and to alter it and redistribute | ||
15 | * it freely, subject to the following restrictions: | ||
16 | * | ||
17 | * 1. The origin of this software must not be misrepresented; you must | ||
18 | * not claim that you wrote the original software. If you use this | ||
19 | * software in a product, an acknowledgement in the product | ||
20 | * documentation would be appreciated but is not required. | ||
21 | * 2. Altered source versions must be plainly marked as such, and must | ||
22 | * not be misrepresented as being the original software. | ||
23 | * 3. This notice may not be removed or altered from any source | ||
24 | * distribution. | ||
25 | * | ||
26 | * The main reference is Unicode Standard Annex 29 (UAX #29): | ||
27 | * <URL:http://unicode.org/reports/tr29> | ||
28 | * | ||
29 | * When this library was designed, this annex was at Revision 17, for | ||
30 | * Unicode 6.0.0: | ||
31 | * <URL:http://www.unicode.org/reports/tr29/tr29-17.html> | ||
32 | * | ||
33 | * The Unicode Terms of Use are available at | ||
34 | * <URL:http://www.unicode.org/copyright.html> | ||
35 | */ | ||
36 | |||
37 | /** | ||
38 | * @file wordbreakdef.h | ||
39 | * | ||
40 | * Definitions of internal data structures, declarations of global | ||
41 | * variables, and function prototypes for the word breaking algorithm. | ||
42 | * | ||
43 | * @version 2.0, 2011/12/12 | ||
44 | * @author Tom Hacohen | ||
45 | */ | ||
46 | |||
47 | /** | ||
48 | * Word break classes. This is a direct mapping of Table 3 of Unicode | ||
49 | * Standard Annex 29, Revision 17. | ||
50 | */ | ||
51 | enum WordBreakClass | ||
52 | { | ||
53 | WBP_Undefined, | ||
54 | |||
55 | /* The following break classes are treated in the pair table. */ | ||
56 | WBP_CR, | ||
57 | WBP_LF, | ||
58 | WBP_Newline, | ||
59 | WBP_Extend, | ||
60 | WBP_Format, | ||
61 | WBP_Katakana, | ||
62 | WBP_ALetter, | ||
63 | WBP_MidNumLet, | ||
64 | WBP_MidLetter, | ||
65 | WBP_MidNum, | ||
66 | WBP_Numeric, | ||
67 | WBP_ExtendNumLet, | ||
68 | WBP_Any | ||
69 | }; | ||
70 | |||
71 | /** | ||
72 | * Struct for entries of word break properties. The array of the | ||
73 | * entries \e must be sorted. | ||
74 | */ | ||
75 | struct WordBreakProperties | ||
76 | { | ||
77 | utf32_t start; /**< Starting coding point */ | ||
78 | utf32_t end; /**< End coding point */ | ||
79 | enum WordBreakClass prop; /**< The word breaking property */ | ||
80 | }; | ||