bug-gnulib
[Top][All Lists]
Advanced

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

Re: From wchar_t to char32_t


From: Bruno Haible
Subject: Re: From wchar_t to char32_t
Date: Thu, 13 Jul 2023 01:05:59 +0200

I wrote:
>   7.32.2.2
>   iswctype            --             rarely used
>   wctype              --             rarely used

Well, 'fnmatch' and 'regex' uses iswctype and wctype. So, we need to have
counterparts of these functions in the char32_t world.

Since the ISO C names are idiosyncratic, let me choose more regular
identifiers:

  wchar_t             char32_t
  -------             --------

  iswctype            c32_apply_type_test
  wctype              c32_get_type_test


2023-07-12  Bruno Haible  <bruno@clisp.org>

        doc: Mention c32_get_type_test, c32_apply_type_test.
        * doc/posix-functions/wctype.texi: Mention c32_get_type_test.
        * doc/posix-functions/iswctype.texi: Mention c32_apply_type_test.
        * doc/strings.texi (Comparison of character APIs): Mention both.

        c32_apply_type_test: Add tests.
        * tests/test-c32_apply_type_test.c: New file.
        * modules/c32_apply_type_test-tests: New file.

        c32_apply_type_test: New module.
        * lib/uchar.in.h (c32_apply_type_test): New declaration.
        * lib/c32_apply_type_test.c: New file.
        * m4/uchar_h.m4 (gl_UCHAR_H_REQUIRE_DEFAULTS): Initialize
        GNULIB_C32_APPLY_TYPE_TEST.
        * modules/uchar (Makefile.am): Substitute GNULIB_C32_APPLY_TYPE_TEST.
        * modules/c32_apply_type_test: New file.

        c32_get_type_test: Add tests.
        * tests/test-c32_get_type_test.c: New file.
        * modules/c32_get_type_test-tests: New file.

        c32_get_type_test: New module.
        * lib/uchar.in.h (c32_type_test_t): New type.
        (c32_get_type_test): New declaration.
        * lib/c32_get_type_test.c: New file, based on lib/wctype-impl.h.
        * m4/uchar_h.m4 (gl_UCHAR_H_REQUIRE_DEFAULTS): Initialize
        GNULIB_C32_GET_TYPE_TEST.
        * modules/uchar (Makefile.am): Substitute GNULIB_C32_GET_TYPE_TEST.
        * modules/c32_get_type_test: New file.

        iswctype: Relax license.
        * modules/iswctype (License): Change to LGPLv2+.
        * lib/iswctype.c: Update license notice.
        * lib/iswctype-impl.h: Likewise.

        wctype: Relax license.
        * modules/wctype (License): Change to LGPLv2+.
        * lib/wctype.c: Update license notice.
        * lib/wctype-impl.h: Likewise.

Attachment: 0001-wctype-Relax-license.patch
Description: Text Data

Attachment: 0002-iswctype-Relax-license.patch
Description: Text Data

Attachment: 0003-c32_get_type_test-New-module.patch
Description: Text Data

Attachment: 0004-c32_get_type_test-Add-tests.patch
Description: Text Data

Attachment: 0005-c32_apply_type_test-New-module.patch
Description: Text Data

Attachment: 0006-c32_apply_type_test-Add-tests.patch
Description: Text Data

Attachment: 0007-doc-Mention-c32_get_type_test-c32_apply_type_test.patch
Description: Text Data


reply via email to

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