summaryrefslogtreecommitdiffstats
path: root/unicode/unicode_graphemebreak.c
diff options
context:
space:
mode:
Diffstat (limited to 'unicode/unicode_graphemebreak.c')
-rw-r--r--unicode/unicode_graphemebreak.c5
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 */