sl@0: /*
sl@0:  * Copyright (c) 1999
sl@0:  * Silicon Graphics Computer Systems, Inc.
sl@0:  *
sl@0:  * Copyright (c) 1999
sl@0:  * Boris Fomitchev
sl@0:  *
sl@0:  * This material is provided "as is", with absolutely no warranty expressed
sl@0:  * or implied. Any use is at your own risk.
sl@0:  *
sl@0:  * Permission to use or copy this software for any purpose is hereby granted
sl@0:  * without fee, provided the above notices are retained on all copies.
sl@0:  * Permission to modify the code and to distribute modified code is granted,
sl@0:  * provided the above notices are retained, and a notice that the code was
sl@0:  * modified is included with the above copyright notice.
sl@0:  *
sl@0:  */
sl@0: 
sl@0: #include "stlport_prefix.h"
sl@0: 
sl@0: #include <stdlib.h>
sl@0: 
sl@0: #include <limits.h>
sl@0: #include "c_locale.h"
sl@0: 
sl@0: #if defined (_STLP_REAL_LOCALE_IMPLEMENTED)
sl@0: //Note: corresponding files removed because of incompatible licenses.
sl@0: #else /* !_STLP_REAL_LOCALE_IMPLEMENTED */
sl@0: #  include "c_locale_dummy/c_locale_dummy.c"
sl@0: #endif
sl@0: 
sl@0: #if defined(N_PLAT_NLM)
sl@0: int wcslen( const wchar_t *_wc )
sl@0: { return unilen( (const unicode *)_wc ); }
sl@0: 
sl@0: int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 )
sl@0: { return unicmp( (const unicode *)_wc1, (const unicode *)_wc2 ); }
sl@0: 
sl@0: int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n )
sl@0: { return unicmp( (const unicode *)_wc1, (const unicode *)_wc2, n ); }
sl@0: 
sl@0: wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 )
sl@0: { return (wchar_t *)unistr( (const unicode *)_wc1, (const unicode *)_wc2 ); }
sl@0: 
sl@0: wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 )
sl@0: { return (wchar_t *)unichr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
sl@0: 
sl@0: wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 )
sl@0: { return (wchar_t *)unirchr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
sl@0: 
sl@0: wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 )
sl@0: { return (wchar_t *)unicpy((unicode_t *)_wc1, (const unicode_t *)_wc2 ); }
sl@0: 
sl@0: wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n )
sl@0: { return (wchar_t *)unincpy((unicode_t *)_wc1, (const unicode_t *)_wc2, n ); }
sl@0: 
sl@0: wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 )
sl@0: { return (wchar_t *)unipbrk( (const unicode *)_wc, (const unicode *)_wc2 ); }
sl@0: #endif