1 /* Test of <wctype.h> substitute in C++ mode.
2 Copyright (C) 2010-2020 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
24 #include "signature.h"
27 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalnum
, int, (wint_t));
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalpha
, int, (wint_t));
29 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswcntrl
, int, (wint_t));
30 #if GNULIB_TEST_ISWDIGIT
31 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswdigit
, int, (wint_t));
33 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswgraph
, int, (wint_t));
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswlower
, int, (wint_t));
35 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswprint
, int, (wint_t));
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswpunct
, int, (wint_t));
37 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswspace
, int, (wint_t));
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswupper
, int, (wint_t));
39 #if GNULIB_TEST_ISWXDIGIT
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswxdigit
, int, (wint_t));
42 #if GNULIB_TEST_ISWBLANK
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswblank
, int, (wint_t));
46 #if GNULIB_TEST_WCTYPE
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctype
, wctype_t, (const char *));
50 #if GNULIB_TEST_ISWCTYPE
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswctype
, int, (wint_t, wctype_t));
54 SIGNATURE_CHECK (GNULIB_NAMESPACE::towlower
, wint_t, (wint_t));
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::towupper
, wint_t, (wint_t));
57 #if GNULIB_TEST_WCTRANS
58 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctrans
, wctrans_t, (const char *));
61 #if GNULIB_TEST_TOWCTRANS
62 SIGNATURE_CHECK (GNULIB_NAMESPACE::towctrans
, wint_t, (wint_t, wctrans_t));