Rudiments
character.h
1 // Copyright (c) 2004 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_CHARACTER_H
5 #define RUDIMENTS_CHARACTER_H
6 
7 #include <rudiments/private/characterincludes.h>
8 
11 class RUDIMENTS_DLLSPEC character {
12  public:
15  static bool isAlphanumeric(int32_t c);
16 
19  static bool isAlphabetical(int32_t c);
20 
22  static bool isLowerCase(int32_t c);
23 
25  static bool isUpperCase(int32_t c);
26 
29  static bool isPunctuation(int32_t c);
30 
33  static bool isPrintable(int32_t c);
34 
37  static bool isPrintableNonSpace(int32_t c);
38 
41  static bool isControlCharacter(int32_t c);
42 
44  static bool isDigit(int32_t c);
45 
48  static bool isHexDigit(int32_t c);
49 
52  static bool isBlank(int32_t c);
53 
56  static bool isWhitespace(int32_t c);
57 
60  static bool isAscii(int32_t c);
61 
63  static int32_t toUpperCase(int32_t c);
64 
66  static int32_t toLowerCase(int32_t c);
67 
70  static int32_t toAscii(int32_t c);
71 
74  static bool inSet(char c, const char *set);
75 
78  static void safePrint(char c);
79 };
80 
81 #endif