diff options
| author | Sam Varshavchik | 2013-12-29 09:31:59 -0500 |
|---|---|---|
| committer | Sam Varshavchik | 2013-12-29 09:31:59 -0500 |
| commit | 17317c25aecbf38f43bfcf8e7a63194cd345e696 (patch) | |
| tree | d12e47126ea281cb42cce345e174a8be2d726b6c /unicode/unicode_graphemebreak.c | |
| parent | 6c5a9de8c051f9c98fa76cc0318f54290edc7ad4 (diff) | |
| download | courier-libs-17317c25aecbf38f43bfcf8e7a63194cd345e696.tar.bz2 | |
2013-12-29 Sam Varshavchik <mrsam@courier-mta.com>
* libunicode: Updated unicode word, grapheme, and linebreaking rules
* to the Unicode 6.3.0 standard.
Diffstat (limited to 'unicode/unicode_graphemebreak.c')
| -rw-r--r-- | unicode/unicode_graphemebreak.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unicode/unicode_graphemebreak.c b/unicode/unicode_graphemebreak.c index 5939dc8..57ce9c7 100644 --- a/unicode/unicode_graphemebreak.c +++ b/unicode/unicode_graphemebreak.c @@ -22,6 +22,7 @@ #define UNICODE_GRAPHEMEBREAK_T 0x09 #define UNICODE_GRAPHEMEBREAK_LV 0x0A #define UNICODE_GRAPHEMEBREAK_LVT 0x0B +#define UNICODE_GRAPHEMEBREAK_Regional_Indicator 0x0C #include "graphemebreaktab.h" @@ -82,6 +83,10 @@ int unicode_grapheme_break(unicode_char a, unicode_char b) bc == UNICODE_GRAPHEMEBREAK_T) return 0; /* GB8 */ + if (ac == UNICODE_GRAPHEMEBREAK_Regional_Indicator && + bc == UNICODE_GRAPHEMEBREAK_Regional_Indicator) + return 0; /* GB8a */ + if (bc == UNICODE_GRAPHEMEBREAK_Extend) return 0; /* GB9 */ |
