diff options
Diffstat (limited to 'src/utf8.cc')
-rw-r--r-- | src/utf8.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utf8.cc b/src/utf8.cc index a4a8504b..3d25f4f5 100644 --- a/src/utf8.cc +++ b/src/utf8.cc @@ -100,3 +100,8 @@ bool_t a_Utf8_combining_char(int unicode) (unicode >= 0x20d0 && unicode <= 0x20ff) || (unicode >= 0xfe20 && unicode <= 0xfe2f)); } + +int a_Utf8_char_count(const char *str, int len) +{ + return fl_utf_nb_char((const uchar_t*)str, len); +} |