Blame lib/wctype.in.h

Packit Service fdd496
/* A substitute for ISO C99 <wctype.h>, for platforms that lack it.
Packit Service fdd496
Packit Service fdd496
   Copyright (C) 2006-2017 Free Software Foundation, Inc.
Packit Service fdd496
Packit Service fdd496
   This program is free software; you can redistribute it and/or modify
Packit Service fdd496
   it under the terms of the GNU General Public License as published by
Packit Service fdd496
   the Free Software Foundation; either version 3, or (at your option)
Packit Service fdd496
   any later version.
Packit Service fdd496
Packit Service fdd496
   This program is distributed in the hope that it will be useful,
Packit Service fdd496
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service fdd496
   GNU General Public License for more details.
Packit Service fdd496
Packit Service fdd496
   You should have received a copy of the GNU General Public License
Packit Service fdd496
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
/* Written by Bruno Haible and Paul Eggert.  */
Packit Service fdd496
Packit Service fdd496
/*
Packit Service fdd496
 * ISO C 99 <wctype.h> for platforms that lack it.
Packit Service fdd496
 * <http://www.opengroup.org/susv3xbd/wctype.h.html>
Packit Service fdd496
 *
Packit Service fdd496
 * iswctype, towctrans, towlower, towupper, wctrans, wctype,
Packit Service fdd496
 * wctrans_t, and wctype_t are not yet implemented.
Packit Service fdd496
 */
Packit Service fdd496
Packit Service fdd496
#if __GNUC__ >= 3
Packit Service fdd496
@PRAGMA_SYSTEM_HEADER@
Packit Service fdd496
#endif
Packit Service fdd496
@PRAGMA_COLUMNS@
Packit Service fdd496
Packit Service fdd496
#if (defined __MINGW32__ && defined __CTYPE_H_SOURCED__)
Packit Service fdd496
Packit Service fdd496
/* Special invocation convention:
Packit Service fdd496
   - With MinGW 3.22, when <ctype.h> includes <wctype.h>, only some part of
Packit Service fdd496
     <wctype.h> is being processed, which doesn't include the idempotency
Packit Service fdd496
     guard.   */
Packit Service fdd496
Packit Service fdd496
#@INCLUDE_NEXT@ @NEXT_WCTYPE_H@
Packit Service fdd496
Packit Service fdd496
#else
Packit Service fdd496
/* Normal invocation convention.  */
Packit Service fdd496
Packit Service fdd496
#ifndef _@GUARD_PREFIX@_WCTYPE_H
Packit Service fdd496
Packit Service fdd496
#if @HAVE_WINT_T@
Packit Service fdd496
/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>.
Packit Service fdd496
   Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
Packit Service fdd496
   <wchar.h>.
Packit Service fdd496
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
Packit Service fdd496
   included before <wchar.h>.  */
Packit Service fdd496
# include <stddef.h>
Packit Service fdd496
# include <stdio.h>
Packit Service fdd496
# include <time.h>
Packit Service fdd496
# include <wchar.h>
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Native Windows (mingw, MSVC) have declarations of towupper, towlower, and
Packit Service fdd496
   isw* functions in <ctype.h>, <wchar.h> as well as in <wctype.h>.  Include
Packit Service fdd496
   <ctype.h>, <wchar.h> in advance to avoid rpl_ prefix being added to the
Packit Service fdd496
   declarations.  */
Packit Service fdd496
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
Packit Service fdd496
# include <ctype.h>
Packit Service fdd496
# include <wchar.h>
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Include the original <wctype.h> if it exists.
Packit Service fdd496
   BeOS 5 has the functions but no <wctype.h>.  */
Packit Service fdd496
/* The include_next requires a split double-inclusion guard.  */
Packit Service fdd496
#if @HAVE_WCTYPE_H@
Packit Service fdd496
# @INCLUDE_NEXT@ @NEXT_WCTYPE_H@
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#ifndef _@GUARD_PREFIX@_WCTYPE_H
Packit Service fdd496
#define _@GUARD_PREFIX@_WCTYPE_H
Packit Service fdd496
Packit Service fdd496
#ifndef _GL_INLINE_HEADER_BEGIN
Packit Service fdd496
 #error "Please include config.h first."
Packit Service fdd496
#endif
Packit Service fdd496
_GL_INLINE_HEADER_BEGIN
Packit Service fdd496
#ifndef _GL_WCTYPE_INLINE
Packit Service fdd496
# define _GL_WCTYPE_INLINE _GL_INLINE
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
Packit Service fdd496
Packit Service fdd496
/* The definition of _GL_WARN_ON_USE is copied here.  */
Packit Service fdd496
Packit Service fdd496
/* Solaris 2.6 <wctype.h> includes <widec.h> which includes <euc.h> which
Packit Service fdd496
   #defines a number of identifiers in the application namespace.  Revert
Packit Service fdd496
   these #defines.  */
Packit Service fdd496
#ifdef __sun
Packit Service fdd496
# undef multibyte
Packit Service fdd496
# undef eucw1
Packit Service fdd496
# undef eucw2
Packit Service fdd496
# undef eucw3
Packit Service fdd496
# undef scrw1
Packit Service fdd496
# undef scrw2
Packit Service fdd496
# undef scrw3
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Define wint_t and WEOF.  (Also done in wchar.in.h.)  */
Packit Service fdd496
#if !@HAVE_WINT_T@ && !defined wint_t
Packit Service fdd496
# define wint_t int
Packit Service fdd496
# ifndef WEOF
Packit Service fdd496
#  define WEOF -1
Packit Service fdd496
# endif
Packit Service fdd496
#else
Packit Service fdd496
/* mingw and MSVC define wint_t as 'unsigned short' in <crtdefs.h> or
Packit Service fdd496
   <stddef.h>.  This is too small: ISO C 99 section 7.24.1.(2) says that
Packit Service fdd496
   wint_t must be "unchanged by default argument promotions".  Override it.  */
Packit Service fdd496
# if @GNULIB_OVERRIDES_WINT_T@
Packit Service fdd496
#  if !GNULIB_defined_wint_t
Packit Service fdd496
#   if @HAVE_CRTDEFS_H@
Packit Service fdd496
#    include <crtdefs.h>
Packit Service fdd496
#   else
Packit Service fdd496
#    include <stddef.h>
Packit Service fdd496
#   endif
Packit Service fdd496
typedef unsigned int rpl_wint_t;
Packit Service fdd496
#   undef wint_t
Packit Service fdd496
#   define wint_t rpl_wint_t
Packit Service fdd496
#   define GNULIB_defined_wint_t 1
Packit Service fdd496
#  endif
Packit Service fdd496
# endif
Packit Service fdd496
# ifndef WEOF
Packit Service fdd496
#  define WEOF ((wint_t) -1)
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
Packit Service fdd496
#if !GNULIB_defined_wctype_functions
Packit Service fdd496
Packit Service fdd496
/* FreeBSD 4.4 to 4.11 has <wctype.h> but lacks the functions.
Packit Service fdd496
   Linux libc5 has <wctype.h> and the functions but they are broken.
Packit Service fdd496
   Assume all 11 functions (all isw* except iswblank) are implemented the
Packit Service fdd496
   same way, or not at all.  */
Packit Service fdd496
# if ! @HAVE_ISWCNTRL@ || @REPLACE_ISWCNTRL@
Packit Service fdd496
Packit Service fdd496
/* IRIX 5.3 has macros but no functions, its isw* macros refer to an
Packit Service fdd496
   undefined variable _ctmp_ and to <ctype.h> macros like _P, and they
Packit Service fdd496
   refer to system functions like _iswctype that are not in the
Packit Service fdd496
   standard C library.  Rather than try to get ancient buggy
Packit Service fdd496
   implementations like this to work, just disable them.  */
Packit Service fdd496
#  undef iswalnum
Packit Service fdd496
#  undef iswalpha
Packit Service fdd496
#  undef iswblank
Packit Service fdd496
#  undef iswcntrl
Packit Service fdd496
#  undef iswdigit
Packit Service fdd496
#  undef iswgraph
Packit Service fdd496
#  undef iswlower
Packit Service fdd496
#  undef iswprint
Packit Service fdd496
#  undef iswpunct
Packit Service fdd496
#  undef iswspace
Packit Service fdd496
#  undef iswupper
Packit Service fdd496
#  undef iswxdigit
Packit Service fdd496
#  undef towlower
Packit Service fdd496
#  undef towupper
Packit Service fdd496
Packit Service fdd496
/* Linux libc5 has <wctype.h> and the functions but they are broken.  */
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Service fdd496
#    define iswalnum rpl_iswalnum
Packit Service fdd496
#    define iswalpha rpl_iswalpha
Packit Service fdd496
#    define iswblank rpl_iswblank
Packit Service fdd496
#    define iswcntrl rpl_iswcntrl
Packit Service fdd496
#    define iswdigit rpl_iswdigit
Packit Service fdd496
#    define iswgraph rpl_iswgraph
Packit Service fdd496
#    define iswlower rpl_iswlower
Packit Service fdd496
#    define iswprint rpl_iswprint
Packit Service fdd496
#    define iswpunct rpl_iswpunct
Packit Service fdd496
#    define iswspace rpl_iswspace
Packit Service fdd496
#    define iswupper rpl_iswupper
Packit Service fdd496
#    define iswxdigit rpl_iswxdigit
Packit Service fdd496
#   endif
Packit Service fdd496
#  endif
Packit Service fdd496
#  if @REPLACE_TOWLOWER@
Packit Service fdd496
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Service fdd496
#    define towlower rpl_towlower
Packit Service fdd496
#    define towupper rpl_towupper
Packit Service fdd496
#   endif
Packit Service fdd496
#  endif
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswalnum
Packit Service fdd496
#  else
Packit Service fdd496
iswalnum
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return ((wc >= '0' && wc <= '9')
Packit Service fdd496
          || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'));
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswalpha
Packit Service fdd496
#  else
Packit Service fdd496
iswalpha
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z';
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswblank
Packit Service fdd496
#  else
Packit Service fdd496
iswblank
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return wc == ' ' || wc == '\t';
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswcntrl
Packit Service fdd496
#  else
Packit Service fdd496
iswcntrl
Packit Service fdd496
#  endif
Packit Service fdd496
        (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wc & ~0x1f) == 0 || wc == 0x7f;
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswdigit
Packit Service fdd496
#  else
Packit Service fdd496
iswdigit
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return wc >= '0' && wc <= '9';
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswgraph
Packit Service fdd496
#  else
Packit Service fdd496
iswgraph
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return wc >= '!' && wc <= '~';
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswlower
Packit Service fdd496
#  else
Packit Service fdd496
iswlower
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return wc >= 'a' && wc <= 'z';
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswprint
Packit Service fdd496
#  else
Packit Service fdd496
iswprint
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return wc >= ' ' && wc <= '~';
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswpunct
Packit Service fdd496
#  else
Packit Service fdd496
iswpunct
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wc >= '!' && wc <= '~'
Packit Service fdd496
          && !((wc >= '0' && wc <= '9')
Packit Service fdd496
               || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')));
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswspace
Packit Service fdd496
#  else
Packit Service fdd496
iswspace
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wc == ' ' || wc == '\t'
Packit Service fdd496
          || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r');
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswupper
Packit Service fdd496
#  else
Packit Service fdd496
iswupper
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return wc >= 'A' && wc <= 'Z';
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE int
Packit Service fdd496
#  if @REPLACE_ISWCNTRL@
Packit Service fdd496
rpl_iswxdigit
Packit Service fdd496
#  else
Packit Service fdd496
iswxdigit
Packit Service fdd496
#  endif
Packit Service fdd496
          (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return ((wc >= '0' && wc <= '9')
Packit Service fdd496
          || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F'));
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE wint_t
Packit Service fdd496
#  if @REPLACE_TOWLOWER@
Packit Service fdd496
rpl_towlower
Packit Service fdd496
#  else
Packit Service fdd496
towlower
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wc >= 'A' && wc <= 'Z' ? wc - 'A' + 'a' : wc);
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE wint_t
Packit Service fdd496
#  if @REPLACE_TOWLOWER@
Packit Service fdd496
rpl_towupper
Packit Service fdd496
#  else
Packit Service fdd496
towupper
Packit Service fdd496
#  endif
Packit Service fdd496
         (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wc >= 'a' && wc <= 'z' ? wc - 'a' + 'A' : wc);
Packit Service fdd496
}
Packit Service fdd496
Packit Service fdd496
# elif @GNULIB_ISWBLANK@ && (! @HAVE_ISWBLANK@ || @REPLACE_ISWBLANK@)
Packit Service fdd496
/* Only the iswblank function is missing.  */
Packit Service fdd496
Packit Service fdd496
#  if @REPLACE_ISWBLANK@
Packit Service fdd496
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Service fdd496
#    define iswblank rpl_iswblank
Packit Service fdd496
#   endif
Packit Service fdd496
_GL_FUNCDECL_RPL (iswblank, int, (wint_t wc));
Packit Service fdd496
#  else
Packit Service fdd496
_GL_FUNCDECL_SYS (iswblank, int, (wint_t wc));
Packit Service fdd496
#  endif
Packit Service fdd496
Packit Service fdd496
# endif
Packit Service fdd496
Packit Service fdd496
# if defined __MINGW32__
Packit Service fdd496
Packit Service fdd496
/* On native Windows, wchar_t is uint16_t, and wint_t is uint32_t.
Packit Service fdd496
   The functions towlower and towupper are implemented in the MSVCRT library
Packit Service fdd496
   to take a wchar_t argument and return a wchar_t result.  mingw declares
Packit Service fdd496
   these functions to take a wint_t argument and return a wint_t result.
Packit Service fdd496
   This means that:
Packit Service fdd496
   1. When the user passes an argument outside the range 0x0000..0xFFFF, the
Packit Service fdd496
      function will look only at the lower 16 bits.  This is allowed according
Packit Service fdd496
      to POSIX.
Packit Service fdd496
   2. The return value is returned in the lower 16 bits of the result register.
Packit Service fdd496
      The upper 16 bits are random: whatever happened to be in that part of the
Packit Service fdd496
      result register.  We need to fix this by adding a zero-extend from
Packit Service fdd496
      wchar_t to wint_t after the call.  */
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE wint_t
Packit Service fdd496
rpl_towlower (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wint_t) (wchar_t) towlower (wc);
Packit Service fdd496
}
Packit Service fdd496
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Service fdd496
#   define towlower rpl_towlower
Packit Service fdd496
#  endif
Packit Service fdd496
Packit Service fdd496
_GL_WCTYPE_INLINE wint_t
Packit Service fdd496
rpl_towupper (wint_t wc)
Packit Service fdd496
{
Packit Service fdd496
  return (wint_t) (wchar_t) towupper (wc);
Packit Service fdd496
}
Packit Service fdd496
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Service fdd496
#   define towupper rpl_towupper
Packit Service fdd496
#  endif
Packit Service fdd496
Packit Service fdd496
# endif /* __MINGW32__ */
Packit Service fdd496
Packit Service fdd496
# define GNULIB_defined_wctype_functions 1
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#if @REPLACE_ISWCNTRL@
Packit Service fdd496
_GL_CXXALIAS_RPL (iswalnum, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswalpha, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswcntrl, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswdigit, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswgraph, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswlower, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswprint, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswpunct, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswspace, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswupper, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (iswxdigit, int, (wint_t wc));
Packit Service fdd496
#else
Packit Service fdd496
_GL_CXXALIAS_SYS (iswalnum, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswalpha, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswcntrl, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswdigit, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswgraph, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswlower, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswprint, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswpunct, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswspace, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswupper, int, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (iswxdigit, int, (wint_t wc));
Packit Service fdd496
#endif
Packit Service fdd496
_GL_CXXALIASWARN (iswalnum);
Packit Service fdd496
_GL_CXXALIASWARN (iswalpha);
Packit Service fdd496
_GL_CXXALIASWARN (iswcntrl);
Packit Service fdd496
_GL_CXXALIASWARN (iswdigit);
Packit Service fdd496
_GL_CXXALIASWARN (iswgraph);
Packit Service fdd496
_GL_CXXALIASWARN (iswlower);
Packit Service fdd496
_GL_CXXALIASWARN (iswprint);
Packit Service fdd496
_GL_CXXALIASWARN (iswpunct);
Packit Service fdd496
_GL_CXXALIASWARN (iswspace);
Packit Service fdd496
_GL_CXXALIASWARN (iswupper);
Packit Service fdd496
_GL_CXXALIASWARN (iswxdigit);
Packit Service fdd496
Packit Service fdd496
#if @GNULIB_ISWBLANK@
Packit Service fdd496
# if @REPLACE_ISWCNTRL@ || @REPLACE_ISWBLANK@
Packit Service fdd496
_GL_CXXALIAS_RPL (iswblank, int, (wint_t wc));
Packit Service fdd496
# else
Packit Service fdd496
_GL_CXXALIAS_SYS (iswblank, int, (wint_t wc));
Packit Service fdd496
# endif
Packit Service fdd496
_GL_CXXALIASWARN (iswblank);
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#if !@HAVE_WCTYPE_T@
Packit Service fdd496
# if !GNULIB_defined_wctype_t
Packit Service fdd496
typedef void * wctype_t;
Packit Service fdd496
#  define GNULIB_defined_wctype_t 1
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Get a descriptor for a wide character property.  */
Packit Service fdd496
#if @GNULIB_WCTYPE@
Packit Service fdd496
# if !@HAVE_WCTYPE_T@
Packit Service fdd496
_GL_FUNCDECL_SYS (wctype, wctype_t, (const char *name));
Packit Service fdd496
# endif
Packit Service fdd496
_GL_CXXALIAS_SYS (wctype, wctype_t, (const char *name));
Packit Service fdd496
_GL_CXXALIASWARN (wctype);
Packit Service fdd496
#elif defined GNULIB_POSIXCHECK
Packit Service fdd496
# undef wctype
Packit Service fdd496
# if HAVE_RAW_DECL_WCTYPE
Packit Service fdd496
_GL_WARN_ON_USE (wctype, "wctype is unportable - "
Packit Service fdd496
                 "use gnulib module wctype for portability");
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Test whether a wide character has a given property.
Packit Service fdd496
   The argument WC must be either a wchar_t value or WEOF.
Packit Service fdd496
   The argument DESC must have been returned by the wctype() function.  */
Packit Service fdd496
#if @GNULIB_ISWCTYPE@
Packit Service fdd496
# if !@HAVE_WCTYPE_T@
Packit Service fdd496
_GL_FUNCDECL_SYS (iswctype, int, (wint_t wc, wctype_t desc));
Packit Service fdd496
# endif
Packit Service fdd496
_GL_CXXALIAS_SYS (iswctype, int, (wint_t wc, wctype_t desc));
Packit Service fdd496
_GL_CXXALIASWARN (iswctype);
Packit Service fdd496
#elif defined GNULIB_POSIXCHECK
Packit Service fdd496
# undef iswctype
Packit Service fdd496
# if HAVE_RAW_DECL_ISWCTYPE
Packit Service fdd496
_GL_WARN_ON_USE (iswctype, "iswctype is unportable - "
Packit Service fdd496
                 "use gnulib module iswctype for portability");
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#if @REPLACE_TOWLOWER@ || defined __MINGW32__
Packit Service fdd496
_GL_CXXALIAS_RPL (towlower, wint_t, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_RPL (towupper, wint_t, (wint_t wc));
Packit Service fdd496
#else
Packit Service fdd496
_GL_CXXALIAS_SYS (towlower, wint_t, (wint_t wc));
Packit Service fdd496
_GL_CXXALIAS_SYS (towupper, wint_t, (wint_t wc));
Packit Service fdd496
#endif
Packit Service fdd496
_GL_CXXALIASWARN (towlower);
Packit Service fdd496
_GL_CXXALIASWARN (towupper);
Packit Service fdd496
Packit Service fdd496
#if !@HAVE_WCTRANS_T@
Packit Service fdd496
# if !GNULIB_defined_wctrans_t
Packit Service fdd496
typedef void * wctrans_t;
Packit Service fdd496
#  define GNULIB_defined_wctrans_t 1
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Get a descriptor for a wide character case conversion.  */
Packit Service fdd496
#if @GNULIB_WCTRANS@
Packit Service fdd496
# if !@HAVE_WCTRANS_T@
Packit Service fdd496
_GL_FUNCDECL_SYS (wctrans, wctrans_t, (const char *name));
Packit Service fdd496
# endif
Packit Service fdd496
_GL_CXXALIAS_SYS (wctrans, wctrans_t, (const char *name));
Packit Service fdd496
_GL_CXXALIASWARN (wctrans);
Packit Service fdd496
#elif defined GNULIB_POSIXCHECK
Packit Service fdd496
# undef wctrans
Packit Service fdd496
# if HAVE_RAW_DECL_WCTRANS
Packit Service fdd496
_GL_WARN_ON_USE (wctrans, "wctrans is unportable - "
Packit Service fdd496
                 "use gnulib module wctrans for portability");
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Perform a given case conversion on a wide character.
Packit Service fdd496
   The argument WC must be either a wchar_t value or WEOF.
Packit Service fdd496
   The argument DESC must have been returned by the wctrans() function.  */
Packit Service fdd496
#if @GNULIB_TOWCTRANS@
Packit Service fdd496
# if !@HAVE_WCTRANS_T@
Packit Service fdd496
_GL_FUNCDECL_SYS (towctrans, wint_t, (wint_t wc, wctrans_t desc));
Packit Service fdd496
# endif
Packit Service fdd496
_GL_CXXALIAS_SYS (towctrans, wint_t, (wint_t wc, wctrans_t desc));
Packit Service fdd496
_GL_CXXALIASWARN (towctrans);
Packit Service fdd496
#elif defined GNULIB_POSIXCHECK
Packit Service fdd496
# undef towctrans
Packit Service fdd496
# if HAVE_RAW_DECL_TOWCTRANS
Packit Service fdd496
_GL_WARN_ON_USE (towctrans, "towctrans is unportable - "
Packit Service fdd496
                 "use gnulib module towctrans for portability");
Packit Service fdd496
# endif
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
_GL_INLINE_HEADER_END
Packit Service fdd496
Packit Service fdd496
#endif /* _@GUARD_PREFIX@_WCTYPE_H */
Packit Service fdd496
#endif /* _@GUARD_PREFIX@_WCTYPE_H */
Packit Service fdd496
#endif