diff options
author | corvid <corvid@lavabit.com> | 2011-06-23 19:24:11 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-06-23 19:24:11 +0000 |
commit | 70617461d5c20b5b362961feb6dba53368a98fbe (patch) | |
tree | 8ddfa829f1a2826636f011ca2c90cc8a09807584 /src/utf8.cc | |
parent | 86ad9513a8d090501dd602b00b70fecc31eeaaa4 (diff) |
non-ASCII keybindings
Alexander Voigt has kindly done some testing, and it seems that this
makes bindings to most keys on a German keyboard possible -- except
those that need AltGr don't work yet.
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); +} |