|
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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.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 |