00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file OS_NS_strings.h 00006 * 00007 * OS_NS_strings.h,v 1.5 2005/10/28 16:14:54 ossama Exp 00008 * 00009 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> 00010 * @author Jesper S. M|ller<stophph@diku.dk> 00011 * @author and a cast of thousands... 00012 * 00013 * Originally in OS.h. 00014 */ 00015 //============================================================================= 00016 00017 #ifndef ACE_OS_NS_STRINGS_H 00018 #define ACE_OS_NS_STRINGS_H 00019 00020 # include /**/ "ace/pre.h" 00021 00022 # include "ace/config-all.h" 00023 00024 # if !defined (ACE_LACKS_PRAGMA_ONCE) 00025 # pragma once 00026 # endif /* ACE_LACKS_PRAGMA_ONCE */ 00027 00028 #include "ace/os_include/os_strings.h" 00029 #include "ace/ACE_export.h" 00030 00031 #if defined (ACE_EXPORT_MACRO) 00032 # undef ACE_EXPORT_MACRO 00033 #endif 00034 #define ACE_EXPORT_MACRO ACE_Export 00035 00036 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00037 00038 class ACE_Time_Value; 00039 00040 namespace ACE_OS 00041 { 00042 00043 /// Compares two strings (case insensitive const char version). 00044 ACE_NAMESPACE_INLINE_FUNCTION 00045 int strcasecmp (const char *s, const char *t); 00046 00047 #if defined (ACE_HAS_WCHAR) 00048 /// Compares two strings (case insensitive const wchar_t version). 00049 ACE_NAMESPACE_INLINE_FUNCTION 00050 int strcasecmp (const wchar_t *s, const wchar_t *t); 00051 #endif /* ACE_HAS_WCHAR */ 00052 00053 /// Compares two arrays (case insensitive const char version). 00054 ACE_NAMESPACE_INLINE_FUNCTION 00055 int strncasecmp (const char *s, const char *t, size_t len); 00056 00057 #if defined (ACE_HAS_WCHAR) 00058 /// Compares two arrays (case insensitive const wchar_t version). 00059 ACE_NAMESPACE_INLINE_FUNCTION 00060 int strncasecmp (const wchar_t *s, const wchar_t *t, size_t len); 00061 #endif /* ACE_HAS_WCHAR */ 00062 00063 #if defined (ACE_LACKS_STRCASECMP) 00064 /// Emulated strcasecmp - Performs a case insensitive comparison of strings. 00065 extern ACE_Export 00066 int strcasecmp_emulation (const char *s, const char *t); 00067 00068 /// Emulated strncasecmp - Performs a case insensitvie comparison of arrays. 00069 extern ACE_Export 00070 int strncasecmp_emulation (const char *s, const char *t, size_t len); 00071 #endif /* ACE_LACKS_STRCASECMP */ 00072 00073 } /* namespace ACE_OS */ 00074 00075 ACE_END_VERSIONED_NAMESPACE_DECL 00076 00077 # if defined (ACE_HAS_INLINED_OSCALLS) 00078 # if defined (ACE_INLINE) 00079 # undef ACE_INLINE 00080 # endif /* ACE_INLINE */ 00081 # define ACE_INLINE inline 00082 # include "ace/OS_NS_strings.inl" 00083 # endif /* ACE_HAS_INLINED_OSCALLS */ 00084 00085 # include /**/ "ace/post.h" 00086 #endif /* ACE_OS_NS_STRINGS_H */