]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxSWIG/swig_lib/ctype.i
Updates for building wxSWIG on Linux
[wxWidgets.git] / wxPython / wxSWIG / swig_lib / ctype.i
1 //
2 // ctype.i
3 // Dave Beazley
4 // November 30, 1996
5 // SWIG file for character tests
6 //
7
8 %module ctype
9 %{
10 #include <ctype.h>
11 %}
12
13 %section "Character Class Testing Module",after,info,nosort,pre,chop_left=3,chop_bottom=0,chop_top=0,chop_right=0,skip=1
14
15 %text %{
16 %include ctype.i
17
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.
23 %}
24
25 int isalnum(char c);
26 /* Returns 1 if isalpha(c) or isdigit(c) is true. */
27
28 int isalpha(char c);
29 /* Returns 1 if isupper(c) or islower(c) is true. */
30
31 int iscntrl(char c);
32 /* Returns 1 if c is a control character. */
33
34 int isdigit(char c);
35 /* Returns 1 if c is a decimal digit. */
36
37 int isgraph(char c);
38 /* Returns 1 if c is a printing character except space. */
39
40 int islower(char c);
41 /* Returns 1 if c is a lower-case letter. */
42
43 int isprint(char c);
44 /* Returns 1 if c is a printing character including space. */
45
46 int ispunct(char c);
47 /* Returns 1 if c is a printing character except space or letter
48 or digit. */
49
50 int isspace(char c);
51 /* Returns 1 if c is a space, formfeed, newline, carriage return,
52 tab, or vertical tab. */
53
54 int isupper(char c);
55 /* Returns 1 if c is an upper case letter. */
56
57 int isxdigit(char c);
58 /* Returns 1 if c is a hexadecimal digit. */
59
60 char tolower(char c);
61 /* Converts c to lower case */
62
63 char toupper(char c);
64 /* Converts c to upper case */