libsent/src/util/charconv.c File Reference

Character set conversion using iconv library. More...

#include <sent/stddefs.h>

Include dependency graph for charconv.c:

Go to the source code of this file.

Functions

boolean j_printf_set_charconv (char *fromcode, char *tocode)
char * charconv (char *instr, char *outstr, int maxoutlen)

Variables

static boolean convert_enabled = FALSE
 TRUE if charset converstion is enabled.


Detailed Description

Character set conversion using iconv library.

Author:
Akinobu LEE
Date:
Thu Feb 17 16:02:41 2005
The actual functions are defined for iconv, win32 and libjcode, depending on the OS environment.

Revision
1.3

Definition in file charconv.c.


Function Documentation

boolean j_printf_set_charconv ( char *  fromcode,
char *  tocode 
)

Setup charset conversion.

Parameters:
fromcode [in] input charset name (only libjcode accepts NULL)
tocode [in] output charset name, or NULL when disable conversion
Returns:
TRUE on success, FALSE on failure.

Definition at line 46 of file charconv.c.

Referenced by main().

char* charconv ( char *  instr,
char *  outstr,
int  maxoutlen 
)

Apply charset conversion to a string.

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

Definition at line 80 of file charconv.c.

Referenced by j_printerr(), j_printf(), and module_send().


Generated on Tue Dec 26 12:55:06 2006 for Julian by  doxygen 1.5.0