bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new module 'c32snrtombs'


From: Bruno Haible
Subject: new module 'c32snrtombs'
Date: Fri, 10 Jan 2020 23:32:58 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-171-generic; KDE/5.18.0; x86_64; ; )

The function c32snrtombs is like wcsnrtombs, except that it takes a char32_t[]
string as argument instead of a wchar_t[] string.


2020-01-10  Bruno Haible  <address@hidden>

        c32snrtombs: Add tests.
        * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
        * tests/test-c32snrtombs-1.sh: New file, based on
        tests/test-wcsnrtombs1.sh.
        * tests/test-c32snrtombs-2.sh: New file, based on
        tests/test-wcsnrtombs2.sh.
        * tests/test-c32snrtombs-3.sh: New file, based on
        tests/test-wcsnrtombs3.sh.
        * tests/test-c32snrtombs-4.sh: New file, based on
        tests/test-wcsnrtombs4.sh.
        * modules/c32snrtombs-tests: New file, based on
        modules/wcsnrtombs-tests.

        c32snrtombs: New module.
        * lib/uchar.in.h (c32snrtombs): New declaration.
        * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
        INTERNAL_STATE, WCRTOMB.
        * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
        * lib/c32snrtombs.c: New file.
        * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
        * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
        * modules/c32snrtombs: New file.
        * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
        * doc/posix-functions/wcsnrtombs.texi: Mention the new module.

Attachment: 0001-c32snrtombs-New-module.patch
Description: Text Data

Attachment: 0002-c32snrtombs-Add-tests.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]