1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/src/c_locale.c Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,59 @@
1.4 +/*
1.5 + * Copyright (c) 1999
1.6 + * Silicon Graphics Computer Systems, Inc.
1.7 + *
1.8 + * Copyright (c) 1999
1.9 + * Boris Fomitchev
1.10 + *
1.11 + * This material is provided "as is", with absolutely no warranty expressed
1.12 + * or implied. Any use is at your own risk.
1.13 + *
1.14 + * Permission to use or copy this software for any purpose is hereby granted
1.15 + * without fee, provided the above notices are retained on all copies.
1.16 + * Permission to modify the code and to distribute modified code is granted,
1.17 + * provided the above notices are retained, and a notice that the code was
1.18 + * modified is included with the above copyright notice.
1.19 + *
1.20 + */
1.21 +
1.22 +#include "stlport_prefix.h"
1.23 +
1.24 +#include <stdlib.h>
1.25 +
1.26 +#include <limits.h>
1.27 +#include "c_locale.h"
1.28 +
1.29 +#if defined (_STLP_REAL_LOCALE_IMPLEMENTED)
1.30 +//Note: corresponding files removed because of incompatible licenses.
1.31 +#else /* !_STLP_REAL_LOCALE_IMPLEMENTED */
1.32 +# include "c_locale_dummy/c_locale_dummy.c"
1.33 +#endif
1.34 +
1.35 +#if defined(N_PLAT_NLM)
1.36 +int wcslen( const wchar_t *_wc )
1.37 +{ return unilen( (const unicode *)_wc ); }
1.38 +
1.39 +int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 )
1.40 +{ return unicmp( (const unicode *)_wc1, (const unicode *)_wc2 ); }
1.41 +
1.42 +int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n )
1.43 +{ return unicmp( (const unicode *)_wc1, (const unicode *)_wc2, n ); }
1.44 +
1.45 +wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 )
1.46 +{ return (wchar_t *)unistr( (const unicode *)_wc1, (const unicode *)_wc2 ); }
1.47 +
1.48 +wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 )
1.49 +{ return (wchar_t *)unichr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
1.50 +
1.51 +wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 )
1.52 +{ return (wchar_t *)unirchr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
1.53 +
1.54 +wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 )
1.55 +{ return (wchar_t *)unicpy((unicode_t *)_wc1, (const unicode_t *)_wc2 ); }
1.56 +
1.57 +wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n )
1.58 +{ return (wchar_t *)unincpy((unicode_t *)_wc1, (const unicode_t *)_wc2, n ); }
1.59 +
1.60 +wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 )
1.61 +{ return (wchar_t *)unipbrk( (const unicode *)_wc, (const unicode *)_wc2 ); }
1.62 +#endif