os/ossrv/genericopenlibs/openenvcore/include/iconv.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/include/iconv.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,58 @@
     1.4 +/*
     1.5 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* Name        : iconv.h
    1.19 +* Part of     : LIBC
    1.20 +* Contains the source for character set conversion
    1.21 +* Version     : 
    1.22 +* This material, including documentation and any related 
    1.23 +* computer programs, is protected by copyright controlled by 
    1.24 +* Nokia Corporation. All rights are reserved. Copying, 
    1.25 +* including reproducing, storing, adapting or translating, any 
    1.26 +* or all of this material requires the prior written consent of 
    1.27 +* Nokia Corporation. This material also contains confidential 
    1.28 +* information which may not be disclosed to others without the 
    1.29 +* prior written consent of Nokia Corporation.
    1.30 +*
    1.31 +*/
    1.32 +
    1.33 +
    1.34 + 
    1.35 +#ifndef _ICONV_H
    1.36 +#define _ICONV_H
    1.37 +
    1.38 +#include <stddef.h>
    1.39 +#include <sys/cdefs.h>
    1.40 +
    1.41 +#ifdef __SYMBIAN32__
    1.42 +#include <_ansi.h>
    1.43 +#endif
    1.44 +
    1.45 +__BEGIN_DECLS
    1.46 +typedef void *iconv_t;
    1.47 +
    1.48 +
    1.49 +/* Allocate memory for codeset conversion descriptor */
    1.50 +IMPORT_C iconv_t iconv_open(const char *tocharset, const char *fromcharset);
    1.51 +
    1.52 +
    1.53 +/* Converts characters in the input buffer from source character set to destination charcater set and stores the converted charcaters in output buffer */
    1.54 +IMPORT_C size_t iconv(iconv_t conversion_descriptor, const char **inbuf, size_t *inbytesleft,
    1.55 +    char **outbuf, size_t *outbytesleft);
    1.56 +
    1.57 +/* Deallocates the memory allocated for codeset converison descriptor */
    1.58 +IMPORT_C int iconv_close(iconv_t conversion_descriptor);
    1.59 +
    1.60 +__END_DECLS
    1.61 +#endif