sl@0
|
1 |
/*
|
sl@0
|
2 |
******************************************************************************
|
sl@0
|
3 |
*
|
sl@0
|
4 |
* Copyright (C) 2001, International Business Machines
|
sl@0
|
5 |
* Corporation and others. All Rights Reserved.
|
sl@0
|
6 |
*
|
sl@0
|
7 |
******************************************************************************
|
sl@0
|
8 |
* file name: cwchar.h
|
sl@0
|
9 |
* encoding: US-ASCII
|
sl@0
|
10 |
* tab size: 8 (not used)
|
sl@0
|
11 |
* indentation:4
|
sl@0
|
12 |
*
|
sl@0
|
13 |
* created on: 2001may25
|
sl@0
|
14 |
* created by: Markus W. Scherer
|
sl@0
|
15 |
*
|
sl@0
|
16 |
* This file contains ICU-internal definitions of wchar_t operations.
|
sl@0
|
17 |
* These definitions were moved here from cstring.h so that fewer
|
sl@0
|
18 |
* ICU implementation files include wchar.h.
|
sl@0
|
19 |
*/
|
sl@0
|
20 |
|
sl@0
|
21 |
#ifndef __CWCHAR_H__
|
sl@0
|
22 |
#define __CWCHAR_H__
|
sl@0
|
23 |
|
sl@0
|
24 |
#include <string.h>
|
sl@0
|
25 |
#include <stdlib.h>
|
sl@0
|
26 |
#include "unicode/utypes.h"
|
sl@0
|
27 |
|
sl@0
|
28 |
/* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */
|
sl@0
|
29 |
#if U_HAVE_WCHAR_H
|
sl@0
|
30 |
# include <wchar.h>
|
sl@0
|
31 |
#endif
|
sl@0
|
32 |
|
sl@0
|
33 |
/*===========================================================================*/
|
sl@0
|
34 |
/* Wide-character functions */
|
sl@0
|
35 |
/*===========================================================================*/
|
sl@0
|
36 |
|
sl@0
|
37 |
/* The following are not available on all systems, defined in wchar.h or string.h. */
|
sl@0
|
38 |
#if U_HAVE_WCSCPY
|
sl@0
|
39 |
# define uprv_wcscpy wcscpy
|
sl@0
|
40 |
# define uprv_wcscat wcscat
|
sl@0
|
41 |
# define uprv_wcslen wcslen
|
sl@0
|
42 |
#else
|
sl@0
|
43 |
U_CAPI wchar_t* U_EXPORT2
|
sl@0
|
44 |
uprv_wcscpy(wchar_t *dst, const wchar_t *src);
|
sl@0
|
45 |
U_CAPI wchar_t* U_EXPORT2
|
sl@0
|
46 |
uprv_wcscat(wchar_t *dst, const wchar_t *src);
|
sl@0
|
47 |
U_CAPI size_t U_EXPORT2
|
sl@0
|
48 |
uprv_wcslen(const wchar_t *src);
|
sl@0
|
49 |
#endif
|
sl@0
|
50 |
|
sl@0
|
51 |
/* The following are part of the ANSI C standard, defined in stdlib.h . */
|
sl@0
|
52 |
#define uprv_wcstombs(mbstr, wcstr, count) U_STANDARD_CPP_NAMESPACE wcstombs(mbstr, wcstr, count)
|
sl@0
|
53 |
#define uprv_mbstowcs(wcstr, mbstr, count) U_STANDARD_CPP_NAMESPACE mbstowcs(wcstr, mbstr, count)
|
sl@0
|
54 |
|
sl@0
|
55 |
|
sl@0
|
56 |
#endif
|