diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-05-31 20:04:03 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-06-29 15:43:44 +0200 |
commit | 271457b7a4753c0ee79fe0ee5105b7e496a8d240 (patch) | |
tree | 3fd446969c3ce563e59ec7eabc3a33a3337c269c /src/mem.c | |
parent | 7f5fc0c62f824282b910a573baf6c2712ca33cbe (diff) | |
download | calcurse-271457b7a4753c0ee79fe0ee5105b7e496a8d240.tar.gz calcurse-271457b7a4753c0ee79fe0ee5105b7e496a8d240.zip |
Add basic UTF-8 helper functions
Add utf8_width() and utf8_strwidth() which can be used to calculate the
display width of a single character or a string, respectively. A lookup
table is used to spot double width characters, as well as composing
characters. There currently isn't any code to deal with ambigious
characters.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/mem.c')
0 files changed, 0 insertions, 0 deletions