summaryrefslogtreecommitdiff
path: root/src/static_libs/libunibreak/wordbreak.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/wordbreak.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/wordbreak.c')
-rw-r--r--src/static_libs/libunibreak/wordbreak.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/static_libs/libunibreak/wordbreak.c b/src/static_libs/libunibreak/wordbreak.c
index d7d5a42b02..f6c013f38c 100644
--- a/src/static_libs/libunibreak/wordbreak.c
+++ b/src/static_libs/libunibreak/wordbreak.c
@@ -30,9 +30,9 @@
30 * Unicode 6.0.0: 30 * Unicode 6.0.0:
31 * <URL:http://www.unicode.org/reports/tr29/tr29-17.html> 31 * <URL:http://www.unicode.org/reports/tr29/tr29-17.html>
32 * 32 *
33 * This library has been updated according to Revision 25, for 33 * This library has been updated according to Revision 27, for
34 * Unicode 7.0.0: 34 * Unicode 8.0.0:
35 * <URL:http://www.unicode.org/reports/tr29/tr29-25.html> 35 * <URL:http://www.unicode.org/reports/tr29/tr29-27.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>
@@ -44,7 +44,7 @@
44 * Implementation of the word breaking algorithm as described in Unicode 44 * Implementation of the word breaking algorithm as described in Unicode
45 * Standard Annex 29. 45 * Standard Annex 29.
46 * 46 *
47 * @version 2.6, 2015/04/18 47 * @version 3.1, 2015/05/18
48 * @author Tom Hacohen 48 * @author Tom Hacohen
49 */ 49 */
50 50
@@ -127,6 +127,7 @@ static void set_brks_to(
127 { 127 {
128 utf32_t ch; 128 utf32_t ch;
129 ch = get_next_char(s, len, &posNext); 129 ch = get_next_char(s, len, &posNext);
130 (void)ch;
130 assert(ch != EOS); 131 assert(ch != EOS);
131 for (; posStart < posNext - 1; ++posStart) 132 for (; posStart < posNext - 1; ++posStart)
132 brks[posStart] = WORDBREAK_INSIDEACHAR; 133 brks[posStart] = WORDBREAK_INSIDEACHAR;