2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
17 * Contains the source for character set conversion
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.
36 #include <sys/cdefs.h>
43 typedef void *iconv_t;
46 /* Allocate memory for codeset conversion descriptor */
47 IMPORT_C iconv_t iconv_open(const char *tocharset, const char *fromcharset);
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);
54 /* Deallocates the memory allocated for codeset converison descriptor */
55 IMPORT_C int iconv_close(iconv_t conversion_descriptor);