iconv.h

Go to the documentation of this file.
00001 /* © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
00002  * ==============================================================================
00003  *  Name        : iconv.h
00004  *  Part of     : LIBC
00005  *  Description : Contains the source for character set conversion
00006  *     
00007  *  Version     : 
00008  *
00009  *  Copyright © 2006 Nokia Corporation.
00010  *  This material, including documentation and any related 
00011  *  computer programs, is protected by copyright controlled by 
00012  *  Nokia Corporation. All rights are reserved. Copying, 
00013  *  including reproducing, storing, adapting or translating, any 
00014  *  or all of this material requires the prior written consent of 
00015  *  Nokia Corporation. This material also contains confidential 
00016  *  information which may not be disclosed to others without the 
00017  *  prior written consent of Nokia Corporation.
00018  * ==============================================================================
00019  */
00020  
00021 #ifndef _ICONV_H
00022 #define _ICONV_H
00023 
00024 #include <stddef.h>
00025 #include <sys/cdefs.h>
00026 
00027 #ifdef __SYMBIAN32__
00028 #include <_ansi.h>
00029 #endif
00030 
00031 __BEGIN_DECLS
00032 typedef void *iconv_t;
00033 
00034 
00035 /* Allocate memory for codeset conversion descriptor */
00036 IMPORT_C iconv_t iconv_open(const char *tocharset, const char *fromcharset);
00037 
00038 
00039 /* Converts characters in the input buffer from source character set to destination charcater set and stores the converted charcaters in output buffer */
00040 IMPORT_C size_t iconv(iconv_t conversion_descriptor, const char **inbuf, size_t *inbytesleft,
00041     char **outbuf, size_t *outbytesleft);
00042 
00043 /* Deallocates the memory allocated for codeset converison descriptor */
00044 IMPORT_C int iconv_close(iconv_t conversion_descriptor);
00045 
00046 __END_DECLS
00047 #endif

Copyright © Nokia Corporation 2001-2008
Back to top