epoc32/include/stdapis/iconv.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * 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
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name        : iconv.h
    16 * Part of     : LIBC
    17 * Contains the source for character set conversion
    18 * Version     : 
    19 * This material, including documentation and any related 
    20 * computer programs, is protected by copyright controlled by 
    21 * Nokia Corporation. All rights are reserved. Copying, 
    22 * including reproducing, storing, adapting or translating, any 
    23 * or all of this material requires the prior written consent of 
    24 * Nokia Corporation. This material also contains confidential 
    25 * information which may not be disclosed to others without the 
    26 * prior written consent of Nokia Corporation.
    27 *
    28 */
    29 
    30 
    31  
    32 #ifndef _ICONV_H
    33 #define _ICONV_H
    34 
    35 #include <stddef.h>
    36 #include <sys/cdefs.h>
    37 
    38 #ifdef __SYMBIAN32__
    39 #include <_ansi.h>
    40 #endif
    41 
    42 __BEGIN_DECLS
    43 typedef void *iconv_t;
    44 
    45 
    46 /* Allocate memory for codeset conversion descriptor */
    47 IMPORT_C iconv_t iconv_open(const char *tocharset, const char *fromcharset);
    48 
    49 
    50 /* Converts characters in the input buffer from source character set to destination charcater set and stores the converted charcaters in output buffer */
    51 IMPORT_C size_t iconv(iconv_t conversion_descriptor, const char **inbuf, size_t *inbytesleft,
    52     char **outbuf, size_t *outbytesleft);
    53 
    54 /* Deallocates the memory allocated for codeset converison descriptor */
    55 IMPORT_C int iconv_close(iconv_t conversion_descriptor);
    56 
    57 __END_DECLS
    58 #endif