2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 #if defined (ACE_HAS_WCHAR)
6 ACE_OS::fgetwc (FILE* fp)
8 # if defined (ACE_LACKS_FGETWC)
10 ACE_NOTSUP_RETURN (0);
12 return std::fgetwc (fp);
13 # endif /* ACE_LACKS_FGETWC */
15 #endif /* ACE_HAS_WCHAR */
18 ACE_OS::wslen (const WChar *s)
28 ACE_INLINE ACE_OS::WChar *
29 ACE_OS::wscpy (WChar *dest, const WChar *src)
31 WChar *original_dest = dest;
33 while ((*dest++ = *src++) != 0)
40 ACE_OS::wscmp (const WChar *s, const WChar *t)
42 const WChar *scan1 = s;
43 const WChar *scan2 = t;
45 while (*scan1 != 0 && *scan1 == *scan2)
51 return *scan1 - *scan2;
55 ACE_OS::wsncmp (const WChar *s, const WChar *t, size_t len)
57 const WChar *scan1 = s;
58 const WChar *scan2 = t;
60 while (len != 0 && *scan1 != 0 && *scan1 == *scan2)
67 return len == 0 ? 0 : *scan1 - *scan2;
70 #if defined (ACE_HAS_WCHAR)
72 ACE_OS::ungetwc (wint_t c, FILE* fp)
74 # if defined (ACE_LACKS_FGETWC)
77 ACE_NOTSUP_RETURN (0);
79 return std::ungetwc (c, fp);
80 # endif /* ACE_LACKS_FGETWC */
82 #endif /* ACE_HAS_WCHAR */
84 ACE_END_VERSIONED_NAMESPACE_DECL