julius/charconv_libjcode.c File Reference

Character set conversion using libjcode. More...

#include "app.h"
#include "libjcode/jlib.h"

Go to the source code of this file.

Functions

boolean charconv_libjcode_setup (char *fromcode, char *tocode, boolean *enable_conv)
 Setup charset conversion for libjcode.
char * charconv_libjcode (char *instr, char *outstr, int maxoutlen)
 Apply charset conversion to a string using libjcode.

Variables

static int convert_to = SJIS
 Conversion target.


Detailed Description

Character set conversion using libjcode.

Only conversion between Japanese character set (jis, euc-jp, shift-jis) is supported.

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

Definition in file charconv_libjcode.c.


Function Documentation

boolean charconv_libjcode_setup ( char *  fromcode,
char *  tocode,
boolean *  enable_conv 
)

Setup charset conversion for libjcode.

Parameters:
fromcode [in] input charset name (ignored, will be auto-detected)
tocode [in] output charset 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 name).

Definition at line 50 of file charconv_libjcode.c.

Referenced by charconv_setup_real().

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

Apply charset conversion to a string using libjcode.

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 89 of file charconv_libjcode.c.

Referenced by charconv().


Generated on Tue Dec 18 15:59:57 2007 for Julius by  doxygen 1.5.4