sl@0: /* sl@0: ****************************************************************************** sl@0: * sl@0: * Copyright (C) 2001, International Business Machines sl@0: * Corporation and others. All Rights Reserved. sl@0: * sl@0: ****************************************************************************** sl@0: * file name: cwchar.h sl@0: * encoding: US-ASCII sl@0: * tab size: 8 (not used) sl@0: * indentation:4 sl@0: * sl@0: * created on: 2001may25 sl@0: * created by: Markus W. Scherer sl@0: * sl@0: * This file contains ICU-internal definitions of wchar_t operations. sl@0: * These definitions were moved here from cstring.h so that fewer sl@0: * ICU implementation files include wchar.h. sl@0: */ sl@0: sl@0: #ifndef __CWCHAR_H__ sl@0: #define __CWCHAR_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include "unicode/utypes.h" sl@0: sl@0: /* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */ sl@0: #if U_HAVE_WCHAR_H sl@0: # include sl@0: #endif sl@0: sl@0: /*===========================================================================*/ sl@0: /* Wide-character functions */ sl@0: /*===========================================================================*/ sl@0: sl@0: /* The following are not available on all systems, defined in wchar.h or string.h. */ sl@0: #if U_HAVE_WCSCPY sl@0: # define uprv_wcscpy wcscpy sl@0: # define uprv_wcscat wcscat sl@0: # define uprv_wcslen wcslen sl@0: #else sl@0: U_CAPI wchar_t* U_EXPORT2 sl@0: uprv_wcscpy(wchar_t *dst, const wchar_t *src); sl@0: U_CAPI wchar_t* U_EXPORT2 sl@0: uprv_wcscat(wchar_t *dst, const wchar_t *src); sl@0: U_CAPI size_t U_EXPORT2 sl@0: uprv_wcslen(const wchar_t *src); sl@0: #endif sl@0: sl@0: /* The following are part of the ANSI C standard, defined in stdlib.h . */ sl@0: #define uprv_wcstombs(mbstr, wcstr, count) U_STANDARD_CPP_NAMESPACE wcstombs(mbstr, wcstr, count) sl@0: #define uprv_mbstowcs(wcstr, mbstr, count) U_STANDARD_CPP_NAMESPACE mbstowcs(wcstr, mbstr, count) sl@0: sl@0: sl@0: #endif