// © 2016 and later: Unicode, Inc. and others.1// License & terms of use: http://www.unicode.org/copyright.html2/*3******************************************************************************4*5* Copyright (C) 2001, International Business Machines6* Corporation and others. All Rights Reserved.7*8******************************************************************************9* file name: cwchar.h10* encoding: UTF-811* tab size: 8 (not used)12* indentation:413*14* created on: 2001may2515* created by: Markus W. Scherer16*17* This file contains ICU-internal definitions of wchar_t operations.18* These definitions were moved here from cstring.h so that fewer19* ICU implementation files include wchar.h.20*/2122#ifndef __CWCHAR_H__23#define __CWCHAR_H__2425#include <string.h>26#include <stdlib.h>27#include "unicode/utypes.h"2829/* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */30#if U_HAVE_WCHAR_H31# include <wchar.h>32#endif3334/*===========================================================================*/35/* Wide-character functions */36/*===========================================================================*/3738/* The following are not available on all systems, defined in wchar.h or string.h. */39#if U_HAVE_WCSCPY40# define uprv_wcscpy wcscpy41# define uprv_wcscat wcscat42# define uprv_wcslen wcslen43#else44U_CAPI wchar_t* U_EXPORT245uprv_wcscpy(wchar_t *dst, const wchar_t *src);46U_CAPI wchar_t* U_EXPORT247uprv_wcscat(wchar_t *dst, const wchar_t *src);48U_CAPI size_t U_EXPORT249uprv_wcslen(const wchar_t *src);50#endif5152/* The following are part of the ANSI C standard, defined in stdlib.h . */53#define uprv_wcstombs(mbstr, wcstr, count) U_STANDARD_CPP_NAMESPACE wcstombs(mbstr, wcstr, count)54#define uprv_mbstowcs(wcstr, mbstr, count) U_STANDARD_CPP_NAMESPACE mbstowcs(wcstr, mbstr, count)555657#endif585960