00001
00002
00003
00004
00005 #if defined (ACE_HAS_WCHAR)
00006 # include "ace/OS_NS_wchar.h"
00007 #endif
00008
00009 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00010
00011 ACE_INLINE int
00012 ACE_OS::strcasecmp (const char *s, const char *t)
00013 {
00014 #if defined (ACE_LACKS_STRCASECMP)
00015 return ACE_OS::strcasecmp_emulation (s, t);
00016 #elif defined (ACE_STRCASECMP_EQUIVALENT)
00017 return ACE_STRCASECMP_EQUIVALENT (s, t);
00018 #else
00019 return ::strcasecmp (s, t);
00020 #endif
00021 }
00022
00023 #if defined (ACE_HAS_WCHAR)
00024 ACE_INLINE int
00025 ACE_OS::strcasecmp (const wchar_t *s, const wchar_t *t)
00026 {
00027 # if defined (ACE_LACKS_WCSICMP)
00028 return ACE_OS::wcsicmp_emulation (s, t);
00029 # else
00030 return ::_wcsicmp (s, t);
00031 # endif
00032 }
00033 #endif
00034
00035 ACE_INLINE int
00036 ACE_OS::strncasecmp (const char *s, const char *t, size_t len)
00037 {
00038 #if defined (ACE_LACKS_STRCASECMP)
00039 return ACE_OS::strncasecmp_emulation (s, t, len);
00040 #elif defined (ACE_STRNCASECMP_EQUIVALENT)
00041 return ACE_STRNCASECMP_EQUIVALENT (s, t, len);
00042 #else
00043 return ::strncasecmp (s, t, len);
00044 #endif
00045 }
00046
00047 #if defined (ACE_HAS_WCHAR)
00048 ACE_INLINE int
00049 ACE_OS::strncasecmp (const wchar_t *s, const wchar_t *t, size_t len)
00050 {
00051 #if defined (ACE_LACKS_WCSNICMP)
00052 return ACE_OS::wcsnicmp_emulation (s, t, len);
00053 #else
00054 return ::_wcsnicmp (s, t, len);
00055 #endif
00056 }
00057 #endif
00058
00059 ACE_END_VERSIONED_NAMESPACE_DECL