Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * libc/string/wcwidth.c: Optimize for speed. | Corinna Vinschen | 2009-06-03 | 1 | -0/+4 |
| | | | | | | | | | | | * libc/locale/locale.c (lc_ctype_cjk_lang): New static int. (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang to 1 if the language is "jp", "ko", or "zh", to 0 otherwise. (__locale_cjk_lang): New function. * libc/string/local.h (__locale_cjk_lang): Declare. * libc/string/wcwidth.c: Fix comments. (__wcwidth): Handle CJK Ambiguous Width characters according to setting returned by __locale_cjk_lang. | ||||
* | * libc/ctype/jp2uc.c: Skip all definition if defined __CYGWIN__. | Corinna Vinschen | 2009-06-02 | 1 | -3/+1 |
| | | | | | | (__jp2uc): Change the scope to static function. * libc/ctype/local.h (_jp2uc): Define as macro if defined __CYGWIN__. * libc/string/local.h (_jp2uc): Include ../ctype/local.h. | ||||
* | * libc/string/local.h: New file. | Corinna Vinschen | 2009-05-15 | 1 | -0/+7 |
* libc/string/wcswidth.c (wcswidth): Convert japanese wide characters to Unicode here. Handle surrogate pairs for UTF-16 systems. Call __wcwidth rather than wcwidth. * libc/string/wcwidth.c: New implementation using Markus Kuhn's wcwidth implementation for Unicode. (bisearch): New static function. (__wcwidth): New function. Take wint_t rather than wchar_t as parameter to allow full Unicode handling on UTF-16 systems. Move old wcwidth implementation here for non-multibyte aware systems. (wcwidth): Convert japanese wide characters to Unicode here. Call __wcwidth rather than using iswprint/iswcntrl. |