diff options
Diffstat (limited to 'src/utf8.cc')
-rw-r--r-- | src/utf8.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utf8.cc b/src/utf8.cc index 47d8112b..0138c616 100644 --- a/src/utf8.cc +++ b/src/utf8.cc @@ -92,3 +92,11 @@ bool_t a_Utf8_ideographic(const char *s, const char *end, int *len) } return ret; } + +bool_t a_Utf8_combining_char(int unicode) +{ + return ((unicode >= 0x0300 && unicode <= 0x036f) || + (unicode >= 0x1dc0 && unicode <= 0x1dff) || + (unicode >= 0x20d0 && unicode <= 0x20ff) || + (unicode >= 0xfe20 && unicode <= 0xfe2f)); +} |