Restore build on FreeBSD.
[getmangos.git] / dep / ACE_wrappers / ace / OS_NS_ctype.h
blobfc15e13035b228ba8050bcb40c6e1a74012c2114
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OS_NS_ctype.h
7 * $Id: OS_NS_ctype.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
10 * @author Jesper S. M|ller<stophph@diku.dk>
11 * @author and a cast of thousands...
13 * Originally in OS.h.
15 //=============================================================================
17 #ifndef ACE_OS_NS_CTYPE_H
18 # define ACE_OS_NS_CTYPE_H
20 # include /**/ "ace/pre.h"
22 # include "ace/config-all.h"
24 # if !defined (ACE_LACKS_PRAGMA_ONCE)
25 # pragma once
26 # endif /* ACE_LACKS_PRAGMA_ONCE */
28 #include /**/ "ace/ACE_export.h"
30 #if defined (ACE_EXPORT_MACRO)
31 # undef ACE_EXPORT_MACRO
32 #endif
33 #define ACE_EXPORT_MACRO ACE_Export
35 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
37 namespace ACE_OS {
39 // these are non-standard names...
41 /** @name Functions from <cctype>
43 * Included are the functions defined in <cctype> and their <cwctype>
44 * equivalents.
46 * Since they are often implemented as macros, we don't use the same name
47 * here. Instead, we change by prepending "ace_".
49 //@{
51 /// Returns true if the character is an alphanumeric character.
52 ACE_NAMESPACE_INLINE_FUNCTION
53 int ace_isalnum (ACE_TCHAR c);
55 /// Returns true if the character is an alphabetic character.
56 ACE_NAMESPACE_INLINE_FUNCTION
57 int ace_isalpha (ACE_TCHAR c);
59 /// Returns true if the character is a control character.
60 ACE_NAMESPACE_INLINE_FUNCTION
61 int ace_iscntrl (ACE_TCHAR c);
63 /// Returns true if the character is a decimal-digit character.
64 ACE_NAMESPACE_INLINE_FUNCTION
65 int ace_isdigit (ACE_TCHAR c);
67 /// Returns true if the character is a printable character other than a space.
68 ACE_NAMESPACE_INLINE_FUNCTION
69 int ace_isgraph (ACE_TCHAR c);
71 /// Returns true if the character is a lowercase character.
72 ACE_NAMESPACE_INLINE_FUNCTION
73 int ace_islower (ACE_TCHAR c);
75 /// Returns true if the character is a printable character.
76 ACE_NAMESPACE_INLINE_FUNCTION
77 int ace_isprint (ACE_TCHAR c);
79 /// Returns true if the character is a punctuation character.
80 ACE_NAMESPACE_INLINE_FUNCTION
81 int ace_ispunct (ACE_TCHAR c);
83 /// Returns true if the character is a space character.
84 ACE_NAMESPACE_INLINE_FUNCTION
85 int ace_isspace (ACE_TCHAR c);
87 /// Returns true if the character is an uppercase character.
88 ACE_NAMESPACE_INLINE_FUNCTION
89 int ace_isupper (ACE_TCHAR c);
91 /// Returns true if the character is a hexadecimal-digit character.
92 ACE_NAMESPACE_INLINE_FUNCTION
93 int ace_isxdigit (ACE_TCHAR c);
95 /// Converts a character to lower case (char version).
96 ACE_NAMESPACE_INLINE_FUNCTION
97 int ace_tolower (int c);
99 #if defined (ACE_HAS_WCHAR)
100 /// Converts a character to lower case (wchar_t version).
101 ACE_NAMESPACE_INLINE_FUNCTION
102 wint_t ace_towlower (wint_t c);
103 #endif /* ACE_HAS_WCHAR */
105 /// Converts a character to upper case (char version).
106 ACE_NAMESPACE_INLINE_FUNCTION
107 int ace_toupper (int c);
109 #if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_TOWUPPER)
110 /// Converts a character to upper case (wchar_t version).
111 ACE_NAMESPACE_INLINE_FUNCTION
112 wint_t ace_towupper (wint_t c);
113 #endif /* ACE_HAS_WCHAR && !ACE_LACKS_TOWUPPER */
115 //@}
117 } /* namespace ACE_OS */
119 ACE_END_VERSIONED_NAMESPACE_DECL
121 # if defined (ACE_HAS_INLINED_OSCALLS)
122 # if defined (ACE_INLINE)
123 # undef ACE_INLINE
124 # endif /* ACE_INLINE */
125 # define ACE_INLINE inline
126 # include "ace/OS_NS_ctype.inl"
127 # endif /* ACE_HAS_INLINED_OSCALLS */
129 # include /**/ "ace/post.h"
130 #endif /* ACE_OS_NS_CTYPE_H */