comparison src/utf8.cc @ 2104:3e7e5395f0bc

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.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents 719f4bae567c
children
comparison
equal deleted inserted replaced
2103:16e52ecf20a8 2104:3e7e5395f0bc
98 return ((unicode >= 0x0300 && unicode <= 0x036f) || 98 return ((unicode >= 0x0300 && unicode <= 0x036f) ||
99 (unicode >= 0x1dc0 && unicode <= 0x1dff) || 99 (unicode >= 0x1dc0 && unicode <= 0x1dff) ||
100 (unicode >= 0x20d0 && unicode <= 0x20ff) || 100 (unicode >= 0x20d0 && unicode <= 0x20ff) ||
101 (unicode >= 0xfe20 && unicode <= 0xfe2f)); 101 (unicode >= 0xfe20 && unicode <= 0xfe2f));
102 } 102 }
103
104 int a_Utf8_char_count(const char *str, int len)
105 {
106 return fl_utf_nb_char((const uchar_t*)str, len);
107 }