Code Search for Developers
 
 
  

iswctype.c from Gdb at Krugle


Show iswctype.c syntax highlighted

/*
FUNCTION
	<<iswctype>>---extensible wide-character test

INDEX
	iswctype

ANSI_SYNOPSIS
	#include <wctype.h>
	int iswctype(wint_t <[c]>, wctype_t <[desc]>);

TRAD_SYNOPSIS
	#include <wctype.h>
	int iswctype(<[c]>, <[desc]>)
	wint_t <[c]>;
	wctype_t <[desc]>;

DESCRIPTION
<<iswctype>> is a function which classifies wide-character values using the
wide-character test specified by <[desc]>.

RETURNS
<<iswctype>> returns non-zero if and only if <[c]> matches the test specified by <[desc]>.
If <[desc]> is unknown, zero is returned.

PORTABILITY
<<iswctype>> is C99.

No supporting OS subroutines are required.
*/
#include <_ansi.h>
#include <wctype.h>
#include "local.h"

int
_DEFUN(iswctype,(c, desc), wint_t c _AND wctype_t desc)
{
  switch (desc)
    {
    case WC_ALNUM:
      return iswalnum (c);
    case WC_ALPHA:
      return iswalpha (c);
    case WC_BLANK:
      return iswblank (c);
    case WC_CNTRL:
      return iswcntrl (c);
    case WC_DIGIT:
      return iswdigit (c);
    case WC_GRAPH:
      return iswgraph (c);
    case WC_LOWER:
      return iswlower (c);
    case WC_PRINT:
      return iswprint (c);
    case WC_PUNCT:
      return iswpunct (c);
    case WC_SPACE:
      return iswspace (c);
    case WC_UPPER:
      return iswupper (c);
    case WC_XDIGIT:
      return iswxdigit (c);
    default:
      return 0; /* eliminate warning */
    }

  /* otherwise unknown */
  return 0;
}





See more files for this project here

Gdb

GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.

Project homepage: http://sources.redhat.com/gdb/
Programming language(s): Assembly,C,C++,Expect
License: other

  Makefile.am
  Makefile.in
  _tolower.c
  _toupper.c
  ctype.tex
  ctype_.c
  isalnum.c
  isalpha.c
  isascii.c
  isblank.c
  iscntrl.c
  isdigit.c
  islower.c
  isprint.c
  ispunct.c
  isspace.c
  isupper.c
  iswalnum.c
  iswalpha.c
  iswblank.c
  iswcntrl.c
  iswctype.c
  iswdigit.c
  iswgraph.c
  iswlower.c
  iswprint.c
  iswpunct.c
  iswspace.c
  iswupper.c
  iswxdigit.c
  isxdigit.c
  jp2uc.c
  jp2uc.h
  local.h
  toascii.c
  tolower.c
  toupper.c
  towctrans.c
  towlower.c
  towupper.c
  utf8alpha.h
  utf8print.h
  utf8punct.h
  wctrans.c
  wctype.c