diff options
author | Bruno Haible <bruno@clisp.org> | 2020-01-09 01:56:35 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-09 01:56:35 +0100 |
commit | 4ec96253823bde7488bfee4ee5d890792d6b555b (patch) | |
tree | 04d9f4c525b5c2b9a77b9b7e17ebe7af1b7c71ea /modules/c32rtomb | |
parent | 9be236d67f3d78235c5cbe4381c5dd7b3cddb179 (diff) | |
download | gnulib-4ec96253823bde7488bfee4ee5d890792d6b555b.tar.gz |
c32rtomb: New module.
* lib/uchar.in.h (c32rtomb): New declaration.
* lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
* m4/c32rtomb.m4: New file.
* m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
(gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
REPLACE_C32RTOMB.
* modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
HAVE_C32RTOMB, REPLACE_C32RTOMB.
* modules/c32rtomb: New file.
* tests/test-uchar-c++.cc: Test the signature of c32rtomb.
* doc/posix-functions/c32rtomb.texi: Document the new module.
* doc/posix-functions/wcrtomb.texi: Mention the new module.
Diffstat (limited to 'modules/c32rtomb')
-rw-r--r-- | modules/c32rtomb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/c32rtomb b/modules/c32rtomb new file mode 100644 index 0000000000..ea227dfd5d --- /dev/null +++ b/modules/c32rtomb @@ -0,0 +1,32 @@ +Description: +c32rtomb() function: convert 32-bit wide character to multibyte character. + +Files: +lib/c32rtomb.c +m4/c32rtomb.m4 +m4/mbrtoc32.m4 + +Depends-on: +uchar +wchar [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1] +wcrtomb [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1] +localcharset [{ test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; } && test $SMALL_WCHAR_T = 1] +streq [{ test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; } && test $SMALL_WCHAR_T = 1] + +configure.ac: +gl_FUNC_C32RTOMB +if test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; then + AC_LIBOBJ([c32rtomb]) +fi +gl_UCHAR_MODULE_INDICATOR([c32rtomb]) + +Makefile.am: + +Include: +<uchar.h> + +License: +LGPLv2+ + +Maintainer: +Bruno Haible |