diff options
author | Bruno Haible <bruno@clisp.org> | 2020-01-25 23:52:46 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-25 23:52:46 +0100 |
commit | 86c08463fd407d674097cb911007a1b9273a5246 (patch) | |
tree | 46a97d62fe64911a698b08e39f647b025ed69e23 /lib/c32isdigit.c | |
parent | 6575363405a8ca2b5d5d29eca65b313233bd0468 (diff) | |
download | gnulib-86c08463fd407d674097cb911007a1b9273a5246.tar.gz |
c32isdigit: New module.
* lib/c32isdigit.c: New file.
* modules/c32isdigit: New file.
* doc/posix-functions/iswdigit.texi: Mention the new module.
Diffstat (limited to 'lib/c32isdigit.c')
-rw-r--r-- | lib/c32isdigit.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/c32isdigit.c b/lib/c32isdigit.c new file mode 100644 index 0000000000..93c8235458 --- /dev/null +++ b/lib/c32isdigit.c @@ -0,0 +1,25 @@ +/* Test 32-bit wide character for being a digit. + 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 <https://www.gnu.org/licenses/>. */ + +#include <config.h> + +/* Specification. */ +#include <uchar.h> + +#define FUNC c32isdigit +#define WCHAR_FUNC iswdigit +#define UCS_FUNC uc_is_digit +#include "c32is-impl.h" |