Back to index

glibc  2.9
Defines | Functions
wcfuncs.c File Reference
#include <ctype.h>
#include <wctype.h>
#include <locale/localeinfo.h>
#include "wchar-lookup.h"

Go to the source code of this file.

Defines

#define func(name, type)

Functions

 func (alnum, __ISwalnum)
 libc_hidden_def (towlower)

Define Documentation

#define func (   name,
  type 
)
Value:
extern int __isw##name (wint_t __wc);                                       \
  int                                                                \
  __isw##name (wint_t wc)                                            \
  {                                                                  \
    if (isascii (wc))                                                       \
      return is##name ((int) wc);                                    \
    size_t i = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_CLASS_OFFSET) + type;    \
    const char *desc = _NL_CURRENT (LC_CTYPE, i);                           \
    return wctype_table_lookup (desc, wc);                                  \
  }                                                                  \
  weak_alias (__isw##name, isw##name)

Definition at line 27 of file wcfuncs.c.


Function Documentation

func ( alnum  ,
__ISwalnum   
)

Definition at line 41 of file wcfuncs.c.

{
  size_t i = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MAP_OFFSET) + __TOW_tolower;
  const char *desc = _NL_CURRENT (LC_CTYPE, i);
  return wctrans_table_lookup (desc, wc);
}

Definition at line 80 of file wcfuncs.c.

{
  size_t i = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MAP_OFFSET) + __TOW_toupper;
  const char *desc = _NL_CURRENT (LC_CTYPE, i);
  return wctrans_table_lookup (desc, wc);
}