epoc32/include/stdapis/iconv.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/stdapis/iconv.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/iconv.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,58 @@
     1.4 -iconv.h
     1.5 +/*
     1.6 +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:
    1.19 +* Name        : iconv.h
    1.20 +* Part of     : LIBC
    1.21 +* Contains the source for character set conversion
    1.22 +* Version     : 
    1.23 +* This material, including documentation and any related 
    1.24 +* computer programs, is protected by copyright controlled by 
    1.25 +* Nokia Corporation. All rights are reserved. Copying, 
    1.26 +* including reproducing, storing, adapting or translating, any 
    1.27 +* or all of this material requires the prior written consent of 
    1.28 +* Nokia Corporation. This material also contains confidential 
    1.29 +* information which may not be disclosed to others without the 
    1.30 +* prior written consent of Nokia Corporation.
    1.31 +*
    1.32 +*/
    1.33 +
    1.34 +
    1.35 + 
    1.36 +#ifndef _ICONV_H
    1.37 +#define _ICONV_H
    1.38 +
    1.39 +#include <stddef.h>
    1.40 +#include <sys/cdefs.h>
    1.41 +
    1.42 +#ifdef __SYMBIAN32__
    1.43 +#include <_ansi.h>
    1.44 +#endif
    1.45 +
    1.46 +__BEGIN_DECLS
    1.47 +typedef void *iconv_t;
    1.48 +
    1.49 +
    1.50 +/* Allocate memory for codeset conversion descriptor */
    1.51 +IMPORT_C iconv_t iconv_open(const char *tocharset, const char *fromcharset);
    1.52 +
    1.53 +
    1.54 +/* Converts characters in the input buffer from source character set to destination charcater set and stores the converted charcaters in output buffer */
    1.55 +IMPORT_C size_t iconv(iconv_t conversion_descriptor, const char **inbuf, size_t *inbytesleft,
    1.56 +    char **outbuf, size_t *outbytesleft);
    1.57 +
    1.58 +/* Deallocates the memory allocated for codeset converison descriptor */
    1.59 +IMPORT_C int iconv_close(iconv_t conversion_descriptor);
    1.60 +
    1.61 +__END_DECLS
    1.62 +#endif