tsm: unicode: add wcwidth() implementation
[platform/upstream/kmscon.git] / external / wcwidth.h
1 /*
2  * This is an implementation of wcwidth() and wcswidth() (defined in
3  * IEEE Std 1002.1-2001) for Unicode.
4  *
5  * Markus Kuhn -- 2007-05-26 (Unicode 5.0)
6  *
7  * Permission to use, copy, modify, and distribute this software
8  * for any purpose and without fee is hereby granted. The author
9  * disclaims all warranties with regard to this software.
10  */
11
12 #include <stdlib.h>
13 #include <wchar.h>
14
15 int mk_wcwidth(wchar_t ucs);
16 int mk_wcswidth(const wchar_t *pwcs, size_t n);
17 int mk_wcwidth_cjk(wchar_t ucs);
18 int mk_wcswidth_cjk(const wchar_t *pwcs, size_t n);