os/textandloc/fontservices/textshaperplugin/IcuSource/common/cwchar.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/common/cwchar.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,56 @@
     1.4 +/*  
     1.5 +******************************************************************************
     1.6 +*
     1.7 +*   Copyright (C) 2001, International Business Machines
     1.8 +*   Corporation and others.  All Rights Reserved.
     1.9 +*
    1.10 +******************************************************************************
    1.11 +*   file name:  cwchar.h
    1.12 +*   encoding:   US-ASCII
    1.13 +*   tab size:   8 (not used)
    1.14 +*   indentation:4
    1.15 +*
    1.16 +*   created on: 2001may25
    1.17 +*   created by: Markus W. Scherer
    1.18 +*
    1.19 +*   This file contains ICU-internal definitions of wchar_t operations.
    1.20 +*   These definitions were moved here from cstring.h so that fewer
    1.21 +*   ICU implementation files include wchar.h.
    1.22 +*/
    1.23 +
    1.24 +#ifndef __CWCHAR_H__
    1.25 +#define __CWCHAR_H__
    1.26 +
    1.27 +#include <string.h>
    1.28 +#include <stdlib.h>
    1.29 +#include "unicode/utypes.h"
    1.30 +
    1.31 +/* Do this after utypes.h so that we have U_HAVE_WCHAR_H . */
    1.32 +#if U_HAVE_WCHAR_H
    1.33 +#   include <wchar.h>
    1.34 +#endif
    1.35 +
    1.36 +/*===========================================================================*/
    1.37 +/* Wide-character functions                                                  */
    1.38 +/*===========================================================================*/
    1.39 +
    1.40 +/* The following are not available on all systems, defined in wchar.h or string.h. */
    1.41 +#if U_HAVE_WCSCPY
    1.42 +#   define uprv_wcscpy wcscpy
    1.43 +#   define uprv_wcscat wcscat
    1.44 +#   define uprv_wcslen wcslen
    1.45 +#else
    1.46 +U_CAPI wchar_t* U_EXPORT2 
    1.47 +uprv_wcscpy(wchar_t *dst, const wchar_t *src);
    1.48 +U_CAPI wchar_t* U_EXPORT2 
    1.49 +uprv_wcscat(wchar_t *dst, const wchar_t *src);
    1.50 +U_CAPI size_t U_EXPORT2 
    1.51 +uprv_wcslen(const wchar_t *src);
    1.52 +#endif
    1.53 +
    1.54 +/* The following are part of the ANSI C standard, defined in stdlib.h . */
    1.55 +#define uprv_wcstombs(mbstr, wcstr, count) U_STANDARD_CPP_NAMESPACE wcstombs(mbstr, wcstr, count)
    1.56 +#define uprv_mbstowcs(wcstr, mbstr, count) U_STANDARD_CPP_NAMESPACE mbstowcs(wcstr, mbstr, count)
    1.57 +
    1.58 +
    1.59 +#endif