/home/ntakagi/work/STLport-5.1.5/src/c_locale.c

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1999
00003  * Silicon Graphics Computer Systems, Inc.
00004  *
00005  * Copyright (c) 1999
00006  * Boris Fomitchev
00007  *
00008  * This material is provided "as is", with absolutely no warranty expressed
00009  * or implied. Any use is at your own risk.
00010  *
00011  * Permission to use or copy this software for any purpose is hereby granted
00012  * without fee, provided the above notices are retained on all copies.
00013  * Permission to modify the code and to distribute modified code is granted,
00014  * provided the above notices are retained, and a notice that the code was
00015  * modified is included with the above copyright notice.
00016  *
00017  */
00018 
00019 #include "stlport_prefix.h"
00020 
00021 #include <stdlib.h>
00022 
00023 #include <limits.h>
00024 #include "c_locale.h"
00025 
00026 #if defined (_STLP_REAL_LOCALE_IMPLEMENTED)
00027 #  if defined (WIN32) || defined (_WIN32)
00028 #    include "c_locale_win32/c_locale_win32.c"
00029 #  elif defined (_STLP_USE_GLIBC) && ! defined (__CYGWIN__)
00030 #    if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2))
00031 #      include "c_locale_glibc/c_locale_glibc2.c"
00032 /* #      define _STLP_GLIBC_LOCALE_2 */ /* glibc 1.90 and newer */
00033 /* #      include "c_locale_glibc/c_locale_glibc.c" */
00034 #    else
00035 #      include "c_locale_glibc/c_locale_glibc.c"
00036 #    endif
00037 #  elif defined __ISCPP__
00038 #    include "c_locale_is/c_locale_is.cpp"
00039 #  endif
00040 #else /* !_STLP_REAL_LOCALE_IMPLEMENTED */
00041 #  include "c_locale_dummy/c_locale_dummy.c"
00042 #endif
00043 
00044 #if defined(N_PLAT_NLM)
00045 int wcslen( const wchar_t *_wc )
00046 { return unilen( (const unicode *)_wc ); }
00047 
00048 int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 )
00049 { return unicmp( (const unicode *)_wc1, (const unicode *)_wc2 ); }
00050 
00051 int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n )
00052 { return unicmp( (const unicode *)_wc1, (const unicode *)_wc2, n ); }
00053 
00054 wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 )
00055 { return (wchar_t *)unistr( (const unicode *)_wc1, (const unicode *)_wc2 ); }
00056 
00057 wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 )
00058 { return (wchar_t *)unichr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
00059 
00060 wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 )
00061 { return (wchar_t *)unirchr((const unicode_t *)_wc1, (unicode_t)_wc2 ); }
00062 
00063 wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 )
00064 { return (wchar_t *)unicpy((unicode_t *)_wc1, (const unicode_t *)_wc2 ); }
00065 
00066 wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n )
00067 { return (wchar_t *)unincpy((unicode_t *)_wc1, (const unicode_t *)_wc2, n ); }
00068 
00069 wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 )
00070 { return (wchar_t *)unipbrk( (const unicode *)_wc, (const unicode *)_wc2 ); }
00071 #endif



Generated on Mon Mar 10 15:32:15 2008 by  doxygen 1.5.1