julius/charconv.c File Reference

Character set conversion using iconv library. More...

#include "app.h"

Go to the source code of this file.

Functions

static boolean charconv_setup_real (char *fromcode, char *tocode)
 Setup charset conversion.
char * charconv (char *instr, char *outstr, int maxoutlen)
 Apply charset conversion to a string.
static boolean opt_charconv (Jconf *jconf, char *arg[], int argnum)
static boolean opt_nocharconv (Jconf *jconf, char *arg[], int argnum)
static boolean opt_kanji (Jconf *jconf, char *arg[], int argnum)
void charconv_add_option ()
boolean charconv_setup ()

Variables

static boolean convert_enabled = FALSE
 TRUE if charset converstion is enabled.
static char * from_code = NULL
static char * to_code = NULL


Detailed Description

Character set conversion using iconv library.

The actual functions are defined for iconv, win32 and libjcode, depending on the OS environment.

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

Definition in file charconv.c.


Function Documentation

static boolean charconv_setup_real ( char *  fromcode,
char *  tocode 
) [static]

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 47 of file charconv.c.

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 81 of file charconv.c.


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