OS_NS_strings.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // OS_NS_strings.inl,v 1.4 2005/10/28 16:14:54 ossama Exp
00004 
00005 #if defined (ACE_HAS_WCHAR)
00006 #  include "ace/OS_NS_wchar.h"
00007 #endif /* ACE_HAS_WCHAR */
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 /* ACE_LACKS_STRCASECMP */
00019   return ::strcasecmp (s, t);
00020 #endif /* ACE_LACKS_STRCASECMP */
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  /* ACE_LACKS_WCSICMP */
00030   return ::_wcsicmp (s, t);
00031 #  endif /* ACE_LACKS_WCSICMP */
00032 }
00033 #endif /* ACE_HAS_WCHAR */
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 /* ACE_LACKS_STRCASECMP */
00043   return ::strncasecmp (s, t, len);
00044 #endif /* ACE_LACKS_STRCASECMP */
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  /* ACE_LACKS_WCSNICMP */
00054   return ::_wcsnicmp (s, t, len);
00055 #endif /* ACE_LACKS_WCSNICMP */
00056 }
00057 #endif /* ACE_HAS_WCHAR */
00058 
00059 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6