os/ossrv/genericopenlibs/cppstdlib/stl/src/c_locale.c
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
 * Copyright (c) 1999
sl@0
     3
 * Silicon Graphics Computer Systems, Inc.
sl@0
     4
 *
sl@0
     5
 * Copyright (c) 1999
sl@0
     6
 * Boris Fomitchev
sl@0
     7
 *
sl@0
     8
 * This material is provided "as is", with absolutely no warranty expressed
sl@0
     9
 * or implied. Any use is at your own risk.
sl@0
    10
 *
sl@0
    11
 * Permission to use or copy this software for any purpose is hereby granted
sl@0
    12
 * without fee, provided the above notices are retained on all copies.
sl@0
    13
 * Permission to modify the code and to distribute modified code is granted,
sl@0
    14
 * provided the above notices are retained, and a notice that the code was
sl@0
    15
 * modified is included with the above copyright notice.
sl@0
    16
 *
sl@0
    17
 */
sl@0
    18
sl@0
    19
#include "stlport_prefix.h"
sl@0
    20
sl@0
    21
#include <stdlib.h>
sl@0
    22
sl@0
    23
#include <limits.h>
sl@0
    24
#include "c_locale.h"
sl@0
    25
sl@0
    26
#if defined (_STLP_REAL_LOCALE_IMPLEMENTED)
sl@0
    27
//Note: corresponding files removed because of incompatible licenses.
sl@0
    28
#else /* !_STLP_REAL_LOCALE_IMPLEMENTED */
sl@0
    29
#  include "c_locale_dummy/c_locale_dummy.c"
sl@0
    30
#endif
sl@0
    31
sl@0
    32
#if defined(N_PLAT_NLM)
sl@0
    33
int wcslen( const wchar_t *_wc )
sl@0
    34
{ return unilen( (const unicode *)_wc ); }
sl@0
    35
sl@0
    36
int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 )
sl@0
    37
{ return unicmp( (const unicode *)_wc1, (const unicode *)_wc2 ); }
sl@0
    38
sl@0
    39
int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n )
sl@0
    40
{ return unicmp( (const unicode *)_wc1, (const unicode *)_wc2, n ); }
sl@0
    41
sl@0
    42
wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 )
sl@0
    43
{ return (wchar_t *)unistr( (const unicode *)_wc1, (const unicode *)_wc2 ); }
sl@0
    44
sl@0
    45
wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 )
sl@0
    46
{ return (wchar_t *)unichr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
sl@0
    47
sl@0
    48
wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 )
sl@0
    49
{ return (wchar_t *)unirchr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
sl@0
    50
sl@0
    51
wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 )
sl@0
    52
{ return (wchar_t *)unicpy((unicode_t *)_wc1, (const unicode_t *)_wc2 ); }
sl@0
    53
sl@0
    54
wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n )
sl@0
    55
{ return (wchar_t *)unincpy((unicode_t *)_wc1, (const unicode_t *)_wc2, n ); }
sl@0
    56
sl@0
    57
wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 )
sl@0
    58
{ return (wchar_t *)unipbrk( (const unicode *)_wc, (const unicode *)_wc2 ); }
sl@0
    59
#endif