Back to index

glibc  2.9
Defines | Typedefs | Functions | Variables
wctype.h File Reference
#include <stddef.h>
#include <wctype/wctype.h>

Go to the source code of this file.

Defines

#define __need_wint_t
#define _WINT_T
#define iswdigit(c)   ({ wint_t __c = (c); __c >= L'0' && __c <= L'9'; })
#define iswdigit_l(c, l)   ({ wint_t __c = (c); __c >= L'0' && __c <= L'9'; })
#define __iswdigit_l(c, l)   ({ wint_t __c = (c); __c >= L'0' && __c <= L'9'; })

Typedefs

typedef unsigned int wint_t

Functions

int iswalpha (wint_t __wc)
int iswalnum (wint_t __wc)
int iswdigit (wint_t __wc)
int iswlower (wint_t __wc)
int iswspace (wint_t __wc)
int iswxdigit (wint_t __wc)
wint_t towlower (wint_t __wc)
wint_t towupper (wint_t __wc)
 libc_hidden_proto (iswalpha) libc_hidden_proto(iswalnum) libc_hidden_proto(iswdigit) libc_hidden_proto(iswlower) libc_hidden_proto(iswspace) libc_hidden_proto(iswxdigit) libc_hidden_proto(towlower) libc_hidden_proto(towupper) extern int __iswalpha_l_internal(wint_t __wc
int __iswdigit_l_internal (wint_t __wc, __locale_t __locale) attribute_hidden
int __iswspace_l_internal (wint_t __wc, __locale_t __locale) attribute_hidden
int __iswxdigit_l_internal (wint_t __wc, __locale_t __locale) attribute_hidden
int __iswspace (wint_t __wc)
int __iswctype (wint_t __wc, wctype_t __desc)
int __iswctype_internal (wint_t __wc, wctype_t __desc) attribute_hidden
wctype_t __wctype (__const char *__property)
wctrans_t __wctrans (const char *__property)
wint_t __towctrans (wint_t __wc, wctrans_t __desc)
 __typeof (iswalnum_l) __iswalnum_l
 __typeof (iswalpha_l) __iswalpha_l
 __typeof (iswblank_l) __iswblank_l
 __typeof (iswcntrl_l) __iswcntrl_l
 __typeof (iswdigit_l) __iswdigit_l
 __typeof (iswlower_l) __iswlower_l
 __typeof (iswgraph_l) __iswgraph_l
 __typeof (iswprint_l) __iswprint_l
 __typeof (iswpunct_l) __iswpunct_l
 __typeof (iswspace_l) __iswspace_l
 __typeof (iswupper_l) __iswupper_l
 __typeof (iswxdigit_l) __iswxdigit_l
 __typeof (towlower_l) __towlower_l
 __typeof (towupper_l) __towupper_l

Variables

__locale_t __locale attribute_hidden

Define Documentation

#define __iswdigit_l (   c,
  l 
)    ({ wint_t __c = (c); __c >= L'0' && __c <= L'9'; })
#define __need_wint_t

Definition at line 5 of file wctype.h.

#define _WINT_T

Definition at line 12 of file wctype.h.

#define iswdigit (   c)    ({ wint_t __c = (c); __c >= L'0' && __c <= L'9'; })
#define iswdigit_l (   c,
  l 
)    ({ wint_t __c = (c); __c >= L'0' && __c <= L'9'; })

Typedef Documentation

typedef unsigned int wint_t

Definition at line 13 of file wctype.h.


Function Documentation

int __iswctype ( wint_t  __wc,
wctype_t  __desc 
)

Definition at line 28 of file iswctype.c.

{
  /* If the user passes in an invalid DESC valid (the one returned from
     `wctype' in case of an error) simply return 0.  */
  if (desc == (wctype_t) 0)
    return 0;

  return wctype_table_lookup ((const char *) desc, wc);
}
int __iswctype_internal ( wint_t  __wc,
wctype_t  __desc 
)
int __iswdigit_l_internal ( wint_t  __wc,
__locale_t  __locale 
)
int __iswspace ( wint_t  __wc)
int __iswspace_l_internal ( wint_t  __wc,
__locale_t  __locale 
)
int __iswxdigit_l_internal ( wint_t  __wc,
__locale_t  __locale 
)
wint_t __towctrans ( wint_t  __wc,
wctrans_t  __desc 
)

Definition at line 26 of file towctrans.c.

{
  /* If the user passes in an invalid DESC valid (the one returned from
     `wctrans' in case of an error) simply return the value.  */
  if (desc == (wctrans_t) 0)
    return wc;

  return wctrans_table_lookup ((const char *) desc, wc);
}

Here is the caller graph for this function:

__typeof ( iswalnum_l  )
__typeof ( iswalpha_l  )
__typeof ( iswblank_l  )
__typeof ( iswcntrl_l  )
__typeof ( iswlower_l  )
__typeof ( iswgraph_l  )
__typeof ( iswprint_l  )
__typeof ( iswpunct_l  )
__typeof ( iswspace_l  )
__typeof ( iswupper_l  )
__typeof ( iswxdigit_l  )
__typeof ( towlower_l  )
__typeof ( towupper_l  )
wctrans_t __wctrans ( const char *  __property)

Definition at line 26 of file wctrans.c.

{
  const char *names;
  size_t cnt;
  size_t i;

  names = _NL_CURRENT (LC_CTYPE, _NL_CTYPE_MAP_NAMES);
  cnt = 0;
  while (names[0] != '\0')
    {
      if (strcmp (property, names) == 0)
       break;

      names = strchr (names, '\0') + 1;
      ++cnt;
    }

  if (names[0] == '\0')
    return 0;

  i = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MAP_OFFSET) + cnt;
  return (wctrans_t) _NL_CURRENT_DATA (LC_CTYPE)->values[i].string;
}

Here is the caller graph for this function:

wctype_t __wctype ( __const char *  __property)
int iswalnum ( wint_t  __wc)
int iswalpha ( wint_t  __wc)
int iswdigit ( wint_t  __wc)
int iswlower ( wint_t  __wc)

Here is the caller graph for this function:

int iswspace ( wint_t  __wc)
int iswxdigit ( wint_t  __wc)
wint_t towlower ( wint_t  __wc)

Here is the caller graph for this function:

wint_t towupper ( wint_t  __wc)

Here is the caller graph for this function:


Variable Documentation

Definition at line 41 of file wctype.h.