>From d746876521aa42b1a4e3b54c3a57e4b2896c1985 Mon Sep 17 00:00:00 2001 From: Bruno Haible
Date: Sat, 25 Jan 2020 23:45:56 +0100 Subject: [PATCH 04/25] c32isalpha: New module. * lib/c32isalpha.c: New file. * modules/c32isalpha: New file. * doc/posix-functions/iswalpha.texi: Mention the new module. --- ChangeLog | 7 +++++++ doc/posix-functions/iswalpha.texi | 7 +++++-- lib/c32isalpha.c | 25 +++++++++++++++++++++++++ modules/c32isalpha | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 lib/c32isalpha.c create mode 100644 modules/c32isalpha diff --git a/ChangeLog b/ChangeLog index 89cf3d5..21ee937 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2020-01-25 Bruno Haible + c32isalpha: New module. + * lib/c32isalpha.c: New file. + * modules/c32isalpha: New file. + * doc/posix-functions/iswalpha.texi: Mention the new module. + +2020-01-25 Bruno Haible + c32isalnum: Add tests. * tests/test-c32isalnum.c: New file. * tests/test-c32isalnum.sh: New file. diff --git a/doc/posix-functions/iswalpha.texi b/doc/posix-functions/iswalpha.texi index c7797ab..7e87d81 100644 --- a/doc/posix-functions/iswalpha.texi +++ b/doc/posix-functions/iswalpha.texi @@ -20,6 +20,9 @@ OS X 10.8. Portability problems not fixed by Gnulib: @itemize @item -On Windows and 32-bit AIX platforms, @code{wchar_t} is a 16-bit type and therefore cannot -accommodate all Unicode characters. +On Windows and 32-bit AIX platforms, @code{wchar_t} is a 16-bit type and +therefore cannot accommodate all Unicode characters. +However, the Gnulib function @code{c32isalpha}, provided by Gnulib module +@code{c32isalpha}, operates on 32-bit wide characters and therefore does not +have this limitation. @end itemize diff --git a/lib/c32isalpha.c b/lib/c32isalpha.c new file mode 100644 index 0000000..1b1db71 --- /dev/null +++ b/lib/c32isalpha.c @@ -0,0 +1,25 @@ +/* Test 32-bit wide character for being alphabetic. + Copyright (C) 2020 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, see