Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / OS_NS_strings.h
blobc57ca0573eaa84b66ab64593d3fdafa210e9b848
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OS_NS_strings.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 * @author Jesper S. M|ller<stophph@diku.dk>
9 * @author and a cast of thousands...
11 //=============================================================================
13 #ifndef ACE_OS_NS_STRINGS_H
14 #define ACE_OS_NS_STRINGS_H
16 # include /**/ "ace/pre.h"
18 # include "ace/config-all.h"
20 # if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 # endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/os_include/os_strings.h"
25 #include /**/ "ace/ACE_export.h"
27 #if defined (ACE_EXPORT_MACRO)
28 # undef ACE_EXPORT_MACRO
29 #endif
30 #define ACE_EXPORT_MACRO ACE_Export
32 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
34 class ACE_Time_Value;
36 namespace ACE_OS
38 /// Compares two strings (case insensitive const char version).
39 ACE_NAMESPACE_INLINE_FUNCTION
40 int strcasecmp (const char *s, const char *t);
42 #if defined (ACE_HAS_WCHAR)
43 /// Compares two strings (case insensitive const wchar_t version).
44 ACE_NAMESPACE_INLINE_FUNCTION
45 int strcasecmp (const wchar_t *s, const wchar_t *t);
46 #endif /* ACE_HAS_WCHAR */
48 /// Compares two arrays (case insensitive const char version).
49 ACE_NAMESPACE_INLINE_FUNCTION
50 int strncasecmp (const char *s, const char *t, size_t len);
52 #if defined (ACE_HAS_WCHAR)
53 /// Compares two arrays (case insensitive const wchar_t version).
54 ACE_NAMESPACE_INLINE_FUNCTION
55 int strncasecmp (const wchar_t *s, const wchar_t *t, size_t len);
56 #endif /* ACE_HAS_WCHAR */
58 #if defined (ACE_LACKS_STRCASECMP)
59 /// Emulated strcasecmp - Performs a case insensitive comparison of strings.
60 extern ACE_Export
61 int strcasecmp_emulation (const char *s, const char *t);
63 /// Emulated strncasecmp - Performs a case insensitvie comparison of arrays.
64 extern ACE_Export
65 int strncasecmp_emulation (const char *s, const char *t, size_t len);
66 #endif /* ACE_LACKS_STRCASECMP */
68 } /* namespace ACE_OS */
70 ACE_END_VERSIONED_NAMESPACE_DECL
72 # if defined (ACE_HAS_INLINED_OSCALLS)
73 # if defined (ACE_INLINE)
74 # undef ACE_INLINE
75 # endif /* ACE_INLINE */
76 # define ACE_INLINE inline
77 # include "ace/OS_NS_strings.inl"
78 # endif /* ACE_HAS_INLINED_OSCALLS */
80 # include /**/ "ace/post.h"
81 #endif /* ACE_OS_NS_STRINGS_H */