Update contrib.
3 * Silicon Graphics Computer Systems, Inc.
8 * This material is provided "as is", with absolutely no warranty expressed
9 * or implied. Any use is at your own risk.
11 * Permission to use or copy this software for any purpose is hereby granted
12 * without fee, provided the above notices are retained on all copies.
13 * Permission to modify the code and to distribute modified code is granted,
14 * provided the above notices are retained, and a notice that the code was
15 * modified is included with the above copyright notice.
19 #include "stlport_prefix.h"
26 #if defined (_STLP_REAL_LOCALE_IMPLEMENTED)
27 //Note: corresponding files removed because of incompatible licenses.
28 #else /* !_STLP_REAL_LOCALE_IMPLEMENTED */
29 # include "c_locale_dummy/c_locale_dummy.c"
32 #if defined(N_PLAT_NLM)
33 int wcslen( const wchar_t *_wc )
34 { return unilen( (const unicode *)_wc ); }
36 int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 )
37 { return unicmp( (const unicode *)_wc1, (const unicode *)_wc2 ); }
39 int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n )
40 { return unicmp( (const unicode *)_wc1, (const unicode *)_wc2, n ); }
42 wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 )
43 { return (wchar_t *)unistr( (const unicode *)_wc1, (const unicode *)_wc2 ); }
45 wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 )
46 { return (wchar_t *)unichr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
48 wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 )
49 { return (wchar_t *)unirchr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
51 wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 )
52 { return (wchar_t *)unicpy((unicode_t *)_wc1, (const unicode_t *)_wc2 ); }
54 wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n )
55 { return (wchar_t *)unincpy((unicode_t *)_wc1, (const unicode_t *)_wc2, n ); }
57 wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 )
58 { return (wchar_t *)unipbrk( (const unicode *)_wc, (const unicode *)_wc2 ); }