File: vcl_cctype.h

package info (click to toggle)
insighttoolkit 3.20.1%2Bgit20120521-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 80,652 kB
  • sloc: cpp: 458,133; ansic: 196,223; fortran: 28,000; python: 3,839; tcl: 1,811; sh: 1,184; java: 583; makefile: 430; csh: 220; perl: 193; xml: 20
file content (100 lines) | stat: -rw-r--r-- 1,624 bytes parent folder | download | duplicates (8)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// This is vcl/vcl_cctype.h
#ifndef vcl_cctype_h_
#define vcl_cctype_h_
//:
// \file
// \author fsm

#include "vcl_compiler.h"

#if !VCL_CXX_HAS_HEADER_CCTYPE
# include <ctype.h>
# define vcl_generic_cctype_STD /* */
# include "generic/vcl_cctype.h"
#elif defined(VCL_VC)
  // VC doesn't put the cctype in STD
# define vcl_generic_cctype_STD /* */
#include <cctype>
# include "generic/vcl_cctype.h"
#else
# include "iso/vcl_cctype.h"
#endif

// Sometimes they are not functions, but macros (this is non-standard).
//  isspace
//  isprint
//  iscntrl
//  isupper
//  islower
//  isalpha
//  isdigit
//  ispunct
//  isxdigit
//  isalnum
//  isgraph
#ifdef isspace
# undef  vcl_isspace
# define vcl_isspace isspace
#endif

#ifdef isprint
# undef  vcl_isprint
# define vcl_isprint isprint
#endif

#ifdef iscntrl
# undef  vcl_iscntrl
# define vcl_iscntrl iscntrl
#endif

#ifdef isupper
# undef  vcl_isupper
# define vcl_isupper isupper
#endif

#ifdef toupper
# undef  vcl_toupper
# define vcl_toupper toupper
#endif

#ifdef islower
# undef  vcl_islower
# define vcl_islower islower
#endif

#ifdef tolower
# undef  vcl_tolower
# define vcl_tolower tolower
#endif

#ifdef isalpha
# undef  vcl_isalpha
# define vcl_isalpha isalpha
#endif

#ifdef isdigit
# undef  vcl_isdigit
# define vcl_isdigit isdigit
#endif

#ifdef ispunct
# undef  vcl_ispunct
# define vcl_ispunct ispunct
#endif

#ifdef isxdigit
# undef  vcl_isxdigit
# define vcl_isxdigit isxdigit
#endif

#ifdef isalnum
# undef  vcl_isalnum
# define vcl_isalnum isalnum
#endif

#ifdef isgraph
# undef  vcl_isgraph
# define vcl_isgraph isgraph
#endif

#endif // vcl_cctype_h_