]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/cwchar.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 ******************************************************************************
6 * Copyright (C) 2001, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 ******************************************************************************
12 * tab size: 8 (not used)
15 * created on: 2001may25
16 * created by: Markus W. Scherer
18 * This file contains ICU-internal definitions of wchar_t operations.
19 * These definitions were moved here from cstring.h so that fewer
20 * ICU implementation files include wchar.h.
28 #include "unicode/utypes.h"
30 /* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */
35 /*===========================================================================*/
36 /* Wide-character functions */
37 /*===========================================================================*/
39 /* The following are not available on all systems, defined in wchar.h or string.h. */
41 # define uprv_wcscpy wcscpy
42 # define uprv_wcscat wcscat
43 # define uprv_wcslen wcslen
45 U_CAPI
wchar_t* U_EXPORT2
46 uprv_wcscpy(wchar_t *dst
, const wchar_t *src
);
47 U_CAPI
wchar_t* U_EXPORT2
48 uprv_wcscat(wchar_t *dst
, const wchar_t *src
);
49 U_CAPI
size_t U_EXPORT2
50 uprv_wcslen(const wchar_t *src
);
53 /* The following are part of the ANSI C standard, defined in stdlib.h . */
54 #define uprv_wcstombs(mbstr, wcstr, count) U_STANDARD_CPP_NAMESPACE wcstombs(mbstr, wcstr, count)
55 #define uprv_mbstowcs(wcstr, mbstr, count) U_STANDARD_CPP_NAMESPACE mbstowcs(wcstr, mbstr, count)