[go: up one dir, main page]

File: ctype.i

package info (click to toggle)
swig1.3 1.3.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,852 kB
  • ctags: 4,764
  • sloc: ansic: 20,489; cpp: 10,052; sh: 7,256; yacc: 2,669; makefile: 2,381; python: 873; java: 762; tcl: 686; perl: 474; lisp: 444; ruby: 370; php: 367
file content (64 lines) | stat: -rw-r--r-- 1,542 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// ctype.i
// Dave Beazley
// November 30, 1996
// SWIG file for character tests
//

%module ctype
%{
#include <ctype.h>
%}

%section "Character Class Testing Module",after,info,nosort,pre,chop_left=3,chop_bottom=0,chop_top=0,chop_right=0,skip=1

%text %{
%include ctype.i

This module provides access to a number of functions for testing
characters.   These functions are in the C <ctype.h> library.
Most scripting languages already provide much of this functionality,
but just in case you want to use one of the built-in C functions,
you can use this module.
%}

int isalnum(char c);
/* Returns 1 if isalpha(c) or isdigit(c) is true. */

int isalpha(char c);
/* Returns 1 if isupper(c) or islower(c) is true. */

int iscntrl(char c);
/* Returns 1 if c is a control character. */

int isdigit(char c);
/* Returns 1 if c is a decimal digit. */

int isgraph(char c);
/* Returns 1 if c is a printing character except space. */

int islower(char c);
/* Returns 1 if c is a lower-case letter. */

int isprint(char c);
/* Returns 1 if c is a printing character including space. */

int ispunct(char c);
/* Returns 1 if c is a printing character except space or letter
   or digit. */

int isspace(char c);
/* Returns 1 if c is a space, formfeed, newline, carriage return,
   tab, or vertical tab. */

int isupper(char c);
/* Returns 1 if c is an upper case letter. */

int isxdigit(char c);
/* Returns 1 if c is a hexadecimal digit. */

char tolower(char c);
/* Converts c to lower case */

char toupper(char c);
/* Converts c to upper case */