summaryrefslogtreecommitdiff
path: root/tests/test-uchar-c++.cc
blob: 09952123ff8f2cd770dedd207861e7586beea693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* Test of <uchar.h> substitute in C++ mode.
   Copyright (C) 2019-2023 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 3 of the License, 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/>.  */

/* Written by Bruno Haible <bruno@clisp.org>, 2019.  */

#define GNULIB_NAMESPACE gnulib
#include <config.h>

#include <uchar.h>

#include "signature.h"


#if GNULIB_TEST_BTOC32
SIGNATURE_CHECK (GNULIB_NAMESPACE::btoc32, wint_t, (int));
#endif

#if GNULIB_TEST_C32ISALNUM
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isalnum, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISALPHA
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isalpha, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISBLANK
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isblank, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISCNTRL
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32iscntrl, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISDIGIT
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isdigit, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISGRAPH
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isgraph, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISLOWER
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32islower, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISPRINT
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isprint, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISPUNCT
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32ispunct, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISSPACE
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isspace, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISUPPER
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isupper, int, (wint_t));
#endif

#if GNULIB_TEST_C32ISXDIGIT
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32isxdigit, int, (wint_t));
#endif

#if GNULIB_TEST_C32RTOMB
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32rtomb, size_t,
                 (char *, char32_t , mbstate_t *));
#endif

#if GNULIB_TEST_C32SNRTOMBS
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32snrtombs, size_t,
                 (char *, const char32_t **, size_t, size_t, mbstate_t *));
#endif

#if GNULIB_TEST_C32SRTOMBS
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32srtombs, size_t,
                 (char *, const char32_t **, size_t, mbstate_t *));
#endif

#if GNULIB_TEST_C32STOMBS
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32stombs, size_t,
                 (char *, const char32_t *, size_t));
#endif

#if GNULIB_TEST_C32TOB
SIGNATURE_CHECK (GNULIB_NAMESPACE::c32tob, int, (wint_t));
#endif

#if GNULIB_TEST_MBRTOC32
SIGNATURE_CHECK (GNULIB_NAMESPACE::mbrtoc32, size_t,
                 (char32_t *, const char *, size_t, mbstate_t *));
#endif

#if GNULIB_TEST_MBSNRTOC32S
SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsnrtoc32s, size_t,
                 (char32_t *, const char **, size_t, size_t, mbstate_t *));

#endif

#if GNULIB_TEST_MBSRTOC32S
SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsrtoc32s, size_t,
                 (char32_t *, const char **, size_t, mbstate_t *));
#endif

#if GNULIB_TEST_MBSTOC32S
SIGNATURE_CHECK (GNULIB_NAMESPACE::mbstoc32s, size_t,
                 (char32_t *, const char *, size_t));
#endif


int
main ()
{
}