|
| From: | Bruno Haible |
| Subject: | Re: From wchar_t to char32_t |
| Date: | Thu, 13 Jul 2023 14:07:16 +0200 |
I wrote:
> 7.32.3.2
> towctrans -- rarely used
> wctrans -- rarely used
It's not hard to implement replacements for these two functions either.
So that we get this correspondence:
wchar_t char32_t
------- --------
towctrans c32_apply_mapping
wctrans c32_get_mapping
2023-07-13 Bruno Haible <bruno@clisp.org>
doc: Mention c32_get_mapping, c32_apply_mapping.
* doc/posix-functions/wctrans.texi: Mention c32_get_mapping.
* doc/posix-functions/towctrans.texi: Mention c32_apply_mapping.
* doc/strings.texi (Comparison of character APIs): Mention both.
c32_apply_mapping: Add tests.
* tests/test-c32_apply_mapping.c: New file.
* modules/c32_apply_mapping-tests: New file.
c32_apply_mapping: New module.
* lib/uchar.in.h (c32_apply_mapping): New declaration.
* lib/c32_apply_mapping.c: New file.
* m4/uchar_h.m4 (gl_UCHAR_H_REQUIRE_DEFAULTS): Initialize
GNULIB_C32_APPLY_MAPPING.
* modules/uchar (Makefile.am): Substitute GNULIB_C32_APPLY_MAPPING.
* modules/c32_apply_mapping: New file.
c32_get_mapping: Add tests.
* tests/test-c32_get_mapping.c: New file.
* modules/c32_get_mapping-tests: New file.
c32_get_mapping: New module.
* lib/uchar.in.h (c32_mapping_t): New type.
(c32_get_mapping): New declaration.
* lib/c32_get_mapping.c: New file, based on lib/wctrans-impl.h.
* m4/uchar_h.m4 (gl_UCHAR_H_REQUIRE_DEFAULTS): Initialize
GNULIB_C32_GET_MAPPING.
* modules/uchar (Makefile.am): Substitute GNULIB_C32_GET_MAPPING.
* modules/c32_get_mapping: New file.
towctrans: Relax license.
* modules/towctrans (License): Change to LGPLv2+.
* lib/towctrans.c: Update license notice.
* lib/towctrans-impl.h: Likewise.
wctrans: Relax license.
* modules/wctrans (License): Change to LGPLv2+.
* lib/wctrans.c: Update license notice.
* lib/wctrans-impl.h: Likewise.
0001-wctrans-Relax-license.patch
Description: Text Data
0002-towctrans-Relax-license.patch
Description: Text Data
0003-c32_get_mapping-New-module.patch
Description: Text Data
0004-c32_get_mapping-Add-tests.patch
Description: Text Data
0005-c32_apply_mapping-New-module.patch
Description: Text Data
0006-c32_apply_mapping-Add-tests.patch
Description: Text Data
0007-doc-Mention-c32_get_mapping-c32_apply_mapping.patch
Description: Text Data
| [Prev in Thread] | Current Thread | [Next in Thread] |