1 /* Test of <uchar.h> substitute in C++ mode.
2 Copyright (C) 2019-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>, 2019. */
19 #define GNULIB_NAMESPACE gnulib
24 #include "signature.h"
27 #if GNULIB_TEST_BTOC32
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::btoc32
, wint_t, (int));
31 #if GNULIB_TEST_C32ISALNUM
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isalnum
, int, (wint_t));
35 #if GNULIB_TEST_C32ISALPHA
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isalpha
, int, (wint_t));
39 #if GNULIB_TEST_C32ISBLANK
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isblank
, int, (wint_t));
43 #if GNULIB_TEST_C32ISCNTRL
44 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32iscntrl
, int, (wint_t));
47 #if GNULIB_TEST_C32ISDIGIT
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isdigit
, int, (wint_t));
51 #if GNULIB_TEST_C32ISGRAPH
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isgraph
, int, (wint_t));
55 #if GNULIB_TEST_C32ISLOWER
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32islower
, int, (wint_t));
59 #if GNULIB_TEST_C32ISPRINT
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isprint
, int, (wint_t));
63 #if GNULIB_TEST_C32ISPUNCT
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32ispunct
, int, (wint_t));
67 #if GNULIB_TEST_C32ISSPACE
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isspace
, int, (wint_t));
71 #if GNULIB_TEST_C32ISUPPER
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isupper
, int, (wint_t));
75 #if GNULIB_TEST_C32ISXDIGIT
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isxdigit
, int, (wint_t));
79 #if GNULIB_TEST_C32RTOMB
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32rtomb
, size_t,
81 (char *, char32_t
, mbstate_t *));
84 #if GNULIB_TEST_C32SNRTOMBS
85 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32snrtombs
, size_t,
86 (char *, const char32_t
**, size_t, size_t, mbstate_t *));
89 #if GNULIB_TEST_C32SRTOMBS
90 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32srtombs
, size_t,
91 (char *, const char32_t
**, size_t, mbstate_t *));
94 #if GNULIB_TEST_C32STOMBS
95 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32stombs
, size_t,
96 (char *, const char32_t
*, size_t));
99 #if GNULIB_TEST_C32TOB
100 SIGNATURE_CHECK (GNULIB_NAMESPACE::c32tob
, int, (wint_t));
103 #if GNULIB_TEST_MBRTOC32
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbrtoc32
, size_t,
105 (char32_t
*, const char *, size_t, mbstate_t *));
108 #if GNULIB_TEST_MBSNRTOC32S
109 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsnrtoc32s
, size_t,
110 (char32_t
*, const char **, size_t, size_t, mbstate_t *));
114 #if GNULIB_TEST_MBSRTOC32S
115 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsrtoc32s
, size_t,
116 (char32_t
*, const char **, size_t, mbstate_t *));
119 #if GNULIB_TEST_MBSTOC32S
120 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbstoc32s
, size_t,
121 (char32_t
*, const char *, size_t));