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