>From 5c182835f6cb2afa10c822be39b82c5e3dfe1098 Mon Sep 17 00:00:00 2001 From: Bruno Haible
Date: Sat, 25 Jan 2020 23:56:13 +0100 Subject: [PATCH 14/25] c32islower: New module. * lib/c32islower.c: New file. * modules/c32islower: New file. * doc/posix-functions/iswlower.texi: Mention the new module. --- ChangeLog | 7 +++++++ doc/posix-functions/iswlower.texi | 7 +++++-- lib/c32islower.c | 25 +++++++++++++++++++++++++ modules/c32islower | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 lib/c32islower.c create mode 100644 modules/c32islower diff --git a/ChangeLog b/ChangeLog index a3ede41..d17201e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2020-01-25 Bruno Haible + c32islower: New module. + * lib/c32islower.c: New file. + * modules/c32islower: New file. + * doc/posix-functions/iswlower.texi: Mention the new module. + +2020-01-25 Bruno Haible + c32isgraph: Add tests. * tests/test-c32isgraph.c: New file. * tests/test-c32isgraph.sh: New file. diff --git a/doc/posix-functions/iswlower.texi b/doc/posix-functions/iswlower.texi index fca7f51..a65ac2c 100644 --- a/doc/posix-functions/iswlower.texi +++ b/doc/posix-functions/iswlower.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{c32islower}, provided by Gnulib module +@code{c32islower}, operates on 32-bit wide characters and therefore does not +have this limitation. @end itemize diff --git a/lib/c32islower.c b/lib/c32islower.c new file mode 100644 index 0000000..ec055d8 --- /dev/null +++ b/lib/c32islower.c @@ -0,0 +1,25 @@ +/* Test 32-bit wide character for being lowercase. + 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