summaryrefslogtreecommitdiff
path: root/src/static_libs/libunibreak/linebreak.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-12-21 11:10:35 +0000
committerTom Hacohen <tom@stosb.com>2015-12-21 11:10:37 +0000
commitdb72b936019b7455e1471d24deb05416fd5ac535 (patch)
treebc3f07862717b1652e125b9bbf1c8b9c1f1d8ddb /src/static_libs/libunibreak/linebreak.c
parent9626acdb4d14f9e258870778e516532b9ffe0ab6 (diff)
Static deps unibreak: Update to latest version.
This version supports Unicode 8.0 and includes fixes over the previous version. Reference version: 03ae8dd7d6ce6d19a38c1e62c70afc6ad82513bc @feature
Diffstat (limited to 'src/static_libs/libunibreak/linebreak.c')
-rw-r--r--src/static_libs/libunibreak/linebreak.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/static_libs/libunibreak/linebreak.c b/src/static_libs/libunibreak/linebreak.c
index 7c8ff9ed19..4383fa632d 100644
--- a/src/static_libs/libunibreak/linebreak.c
+++ b/src/static_libs/libunibreak/linebreak.c
@@ -31,9 +31,9 @@
31 * Unicode 5.0.0: 31 * Unicode 5.0.0:
32 * <URL:http://www.unicode.org/reports/tr14/tr14-19.html> 32 * <URL:http://www.unicode.org/reports/tr14/tr14-19.html>
33 * 33 *
34 * This library has been updated according to Revision 33, for 34 * This library has been updated according to Revision 35, for
35 * Unicode 7.0.0: 35 * Unicode 8.0.0:
36 * <URL:http://www.unicode.org/reports/tr14/tr14-33.html> 36 * <URL:http://www.unicode.org/reports/tr14/tr14-35.html>
37 * 37 *
38 * The Unicode Terms of Use are available at 38 * The Unicode Terms of Use are available at
39 * <URL:http://www.unicode.org/copyright.html> 39 * <URL:http://www.unicode.org/copyright.html>
@@ -45,7 +45,7 @@
45 * Implementation of the line breaking algorithm as described in Unicode 45 * Implementation of the line breaking algorithm as described in Unicode
46 * Standard Annex 14. 46 * Standard Annex 14.
47 * 47 *
48 * @version 2.7, 2015/04/18 48 * @version 3.0, 2015/05/10
49 * @author Wu Yongwei 49 * @author Wu Yongwei
50 * @author Petr Filipsky 50 * @author Petr Filipsky
51 */ 51 */
@@ -123,12 +123,12 @@ static enum BreakAction baTable[LBP_RI][LBP_RI] = {
123 { /* EX */ 123 { /* EX */
124 DIR_BRK, PRH_BRK, PRH_BRK, IND_BRK, IND_BRK, IND_BRK, PRH_BRK, 124 DIR_BRK, PRH_BRK, PRH_BRK, IND_BRK, IND_BRK, IND_BRK, PRH_BRK,
125 PRH_BRK, PRH_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, 125 PRH_BRK, PRH_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK,
126 DIR_BRK, DIR_BRK, IND_BRK, IND_BRK, DIR_BRK, DIR_BRK, PRH_BRK, 126 DIR_BRK, PRH_BRK, IND_BRK, IND_BRK, DIR_BRK, DIR_BRK, PRH_BRK,
127 CMI_BRK, PRH_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, 127 CMI_BRK, PRH_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK,
128 DIR_BRK }, 128 DIR_BRK },
129 { /* SY */ 129 { /* SY */
130 DIR_BRK, PRH_BRK, PRH_BRK, IND_BRK, IND_BRK, IND_BRK, PRH_BRK, 130 DIR_BRK, PRH_BRK, PRH_BRK, IND_BRK, IND_BRK, IND_BRK, PRH_BRK,
131 PRH_BRK, PRH_BRK, DIR_BRK, DIR_BRK, IND_BRK, DIR_BRK, DIR_BRK, 131 PRH_BRK, PRH_BRK, DIR_BRK, DIR_BRK, IND_BRK, DIR_BRK, PRH_BRK,
132 DIR_BRK, DIR_BRK, IND_BRK, IND_BRK, DIR_BRK, DIR_BRK, PRH_BRK, 132 DIR_BRK, DIR_BRK, IND_BRK, IND_BRK, DIR_BRK, DIR_BRK, PRH_BRK,
133 CMI_BRK, PRH_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, 133 CMI_BRK, PRH_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK, DIR_BRK,
134 DIR_BRK }, 134 DIR_BRK },
@@ -503,7 +503,7 @@ static int get_lb_result_simple(
503 lbpCtx->lbcCur = LBP_CR; 503 lbpCtx->lbcCur = LBP_CR;
504 return LINEBREAK_NOBREAK; /* Rule LB6 */ 504 return LINEBREAK_NOBREAK; /* Rule LB6 */
505 case LBP_CB: 505 case LBP_CB:
506 lbpCtx->lbcCur = LBP_BA; 506 lbpCtx->lbcCur = LBP_B2;
507 return LINEBREAK_ALLOWBREAK; /* Rule LB20 */ 507 return LINEBREAK_ALLOWBREAK; /* Rule LB20 */
508 default: 508 default:
509 return LINEBREAK_UNDEFINED; /* Table lookup is needed */ 509 return LINEBREAK_UNDEFINED; /* Table lookup is needed */