summaryrefslogtreecommitdiff
path: root/src/static_libs/libunibreak/linebreak.h
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-01-21 16:41:06 +0000
committerTom Hacohen <tom@stosb.com>2014-01-21 16:41:06 +0000
commitcff1a9a59f40b1e83ed1db8145108cae53504d4f (patch)
tree524c58e21db031ab6acd6382dfdacb9c66d91a65 /src/static_libs/libunibreak/linebreak.h
parentcc8fa1da451d588e4218a2b8f8d3eebb9b38890f (diff)
Synced libunibreak local copy with upstream.
This fixes T805.
Diffstat (limited to 'src/static_libs/libunibreak/linebreak.h')
-rw-r--r--src/static_libs/libunibreak/linebreak.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/static_libs/libunibreak/linebreak.h b/src/static_libs/libunibreak/linebreak.h
index 288ef1b352..94fbca0f9f 100644
--- a/src/static_libs/libunibreak/linebreak.h
+++ b/src/static_libs/libunibreak/linebreak.h
@@ -1,4 +1,4 @@
1/* vim: set tabstop=4 shiftwidth=4: */ 1/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
2 2
3/* 3/*
4 * Line breaking in a Unicode sequence. Designed to be used in a 4 * Line breaking in a Unicode sequence. Designed to be used in a
@@ -24,27 +24,27 @@
24 * distribution. 24 * distribution.
25 * 25 *
26 * The main reference is Unicode Standard Annex 14 (UAX #14): 26 * The main reference is Unicode Standard Annex 14 (UAX #14):
27 * <URL:http://www.unicode.org/reports/tr14/> 27 * <URL:http://www.unicode.org/reports/tr14/>
28 * 28 *
29 * When this library was designed, this annex was at Revision 19, for 29 * When this library was designed, this annex was at Revision 19, for
30 * Unicode 5.0.0: 30 * Unicode 5.0.0:
31 * <URL:http://www.unicode.org/reports/tr14/tr14-19.html> 31 * <URL:http://www.unicode.org/reports/tr14/tr14-19.html>
32 * 32 *
33 * This library has been updated according to Revision 30, for 33 * This library has been updated according to Revision 30, for
34 * Unicode 6.2.0: 34 * Unicode 6.2.0:
35 * <URL:http://www.unicode.org/reports/tr14/tr14-30.html> 35 * <URL:http://www.unicode.org/reports/tr14/tr14-30.html>
36 * 36 *
37 * The Unicode Terms of Use are available at 37 * The Unicode Terms of Use are available at
38 * <URL:http://www.unicode.org/copyright.html> 38 * <URL:http://www.unicode.org/copyright.html>
39 */ 39 */
40 40
41/** 41/**
42 * @file linebreak.h 42 * @file linebreak.h
43 * 43 *
44 * Header file for the line breaking algorithm. 44 * Header file for the line breaking algorithm.
45 * 45 *
46 * @version 2.2, 2012/10/06 46 * @version 2.2, 2012/10/06
47 * @author Wu Yongwei 47 * @author Wu Yongwei
48 */ 48 */
49 49
50#ifndef LINEBREAK_H 50#ifndef LINEBREAK_H
@@ -56,28 +56,28 @@
56extern "C" { 56extern "C" {
57#endif 57#endif
58 58
59#define LINEBREAK_VERSION 0x0202 /**< Version of the library linebreak */ 59#define LINEBREAK_VERSION 0x0202 /**< Version of the library linebreak */
60extern const int linebreak_version; 60extern const int linebreak_version;
61 61
62#ifndef LINEBREAK_UTF_TYPES_DEFINED 62#ifndef LINEBREAK_UTF_TYPES_DEFINED
63#define LINEBREAK_UTF_TYPES_DEFINED 63#define LINEBREAK_UTF_TYPES_DEFINED
64typedef unsigned char utf8_t; /**< Type for UTF-8 data points */ 64typedef unsigned char utf8_t; /**< Type for UTF-8 data points */
65typedef unsigned short utf16_t; /**< Type for UTF-16 data points */ 65typedef unsigned short utf16_t; /**< Type for UTF-16 data points */
66typedef unsigned int utf32_t; /**< Type for UTF-32 data points */ 66typedef unsigned int utf32_t; /**< Type for UTF-32 data points */
67#endif 67#endif
68 68
69#define LINEBREAK_MUSTBREAK 0 /**< Break is mandatory */ 69#define LINEBREAK_MUSTBREAK 0 /**< Break is mandatory */
70#define LINEBREAK_ALLOWBREAK 1 /**< Break is allowed */ 70#define LINEBREAK_ALLOWBREAK 1 /**< Break is allowed */
71#define LINEBREAK_NOBREAK 2 /**< No break is possible */ 71#define LINEBREAK_NOBREAK 2 /**< No break is possible */
72#define LINEBREAK_INSIDEACHAR 3 /**< A UTF-8/16 sequence is unfinished */ 72#define LINEBREAK_INSIDEACHAR 3 /**< A UTF-8/16 sequence is unfinished */
73 73
74void init_linebreak(void); 74void init_linebreak(void);
75void set_linebreaks_utf8( 75void set_linebreaks_utf8(
76 const utf8_t *s, size_t len, const char* lang, char *brks); 76 const utf8_t *s, size_t len, const char* lang, char *brks);
77void set_linebreaks_utf16( 77void set_linebreaks_utf16(
78 const utf16_t *s, size_t len, const char* lang, char *brks); 78 const utf16_t *s, size_t len, const char* lang, char *brks);
79void set_linebreaks_utf32( 79void set_linebreaks_utf32(
80 const utf32_t *s, size_t len, const char* lang, char *brks); 80 const utf32_t *s, size_t len, const char* lang, char *brks);
81int is_line_breakable(utf32_t char1, utf32_t char2, const char* lang); 81int is_line_breakable(utf32_t char1, utf32_t char2, const char* lang);
82 82
83#ifdef __cplusplus 83#ifdef __cplusplus