[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
new modules 'wmemcmp', ..., 'wcswidth'
From: |
Bruno Haible |
Subject: |
new modules 'wmemcmp', ..., 'wcswidth' |
Date: |
Sun, 6 Feb 2011 17:59:18 +0100 |
User-agent: |
KMail/1.9.9 |
> Let's start with the 'wmemchr' function.
And here are proposed modules for the other wide string functions that are
declared in <wchar.h>:
wmemcmp
wmemcpy
wmemmove
wmemset
wcslen
wcsnlen
wcscpy
wcpcpy
wcsncpy
wcpncpy
wcscat
wcsncat
wcscmp
wcsncmp
wcscasecmp
wcsncasecmp
wcscoll
wcsxfrm
wcsdup
wcschr
wcsrchr
wcscspn
wcsspn
wcspbrk
wcsstr
wcstok
wcswidth
It's always the same idioms, except for wcswidth which may need to be replaced.
The implementation comes from libutf8, except for wcscoll and wcsxfrm which is
new and a bit complicated code (untested so far; review is appreciated).
Bruno
--
In memoriam Chris Gueffroy <http://en.wikipedia.org/wiki/Chris_Gueffroy>
patches.tar.gz
Description: application/tgz
- new module 'wmemchr', Bruno Haible, 2011/02/05
- new modules 'wmemcmp', ..., 'wcswidth',
Bruno Haible <=