Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

charconv_iconv.c File Reference

Character set conversion using iconv library. More...

#include <sent/stddefs.h>
#include <iconv.h>

Include dependency graph for charconv_iconv.c:

Go to the source code of this file.

Functions

boolean charconv_iconv_setup (char *fromcode, char *tocode, boolean *enable_conv)
char * charconv_iconv (char *instr, char *outstr, int maxoutlen)

Variables

static iconv_t cd = (iconv_t)-1
 Converstion descriptor.


Detailed Description

Character set conversion using iconv library.

Author:
Akinobu LEE
Date:
Thu Feb 17 16:02:41 2005
Revision
1.1.1.1

Definition in file charconv_iconv.c.


Function Documentation

boolean charconv_iconv_setup char *  fromcode,
char *  tocode,
boolean enable_conv
 

Setup charset conversion for iconv.

Parameters:
fromcode [in] input charset code name (NULL invalid)
tocode [in] output charset code name, or NULL when disable conversion
enable_conv [out] return whether conversion should be enabled or not
Returns:
TRUE on success, FALSE on failure (unknown code name).

Definition at line 44 of file charconv_iconv.c.

Referenced by j_printf_set_charconv().

char* charconv_iconv char *  instr,
char *  outstr,
int  maxoutlen
 

Apply charset conversion to a string using iconv.

Parameters:
instr [in] source string
outstr [out] destination buffer
maxoutlen [in] allocated length of outstr in byte.
Returns:
either of instr or outstr, that holds the result string.

Definition at line 91 of file charconv_iconv.c.

Referenced by charconv().


Generated on Tue Mar 28 16:03:32 2006 for Julius by  doxygen 1.4.2