5 // SWIG file for character tests
 
  13 %section "Character Class Testing Module",after,info,nosort,pre,chop_left=3,chop_bottom=0,chop_top=0,chop_right=0,skip=1
 
  18 This module provides access to a number of functions for testing
 
  19 characters.   These functions are in the C <ctype.h> library.
 
  20 Most scripting languages already provide much of this functionality,
 
  21 but just in case you want to use one of the built-in C functions,
 
  22 you can use this module.
 
  26 /* Returns 1 if isalpha(c) or isdigit(c) is true. */
 
  29 /* Returns 1 if isupper(c) or islower(c) is true. */
 
  32 /* Returns 1 if c is a control character. */
 
  35 /* Returns 1 if c is a decimal digit. */
 
  38 /* Returns 1 if c is a printing character except space. */
 
  41 /* Returns 1 if c is a lower-case letter. */
 
  44 /* Returns 1 if c is a printing character including space. */
 
  47 /* Returns 1 if c is a printing character except space or letter
 
  51 /* Returns 1 if c is a space, formfeed, newline, carriage return,
 
  52    tab, or vertical tab. */
 
  55 /* Returns 1 if c is an upper case letter. */
 
  58 /* Returns 1 if c is a hexadecimal digit. */
 
  61 /* Converts c to lower case */
 
  64 /* Converts c to upper case */