Julius 4.2
関数 | 変数
julius/charconv.c

文字コード変換 [詳細]

#include "app.h"

ソースコードを見る。

関数

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 ()

変数

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

説明

文字コード変換

実際には,環境にあわせて iconv, Win32, libjcode のどれかを呼び出す.

作者:
Akinobu LEE
日付:
Thu Feb 17 16:02:41 2005
Revision:
1.3

charconv.c で定義されています。


関数

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

Setup charset conversion.

引数:
fromcode[in] input charset name (only libjcode accepts NULL)
tocode[in] output charset name, or NULL when disable conversion
戻り値:
TRUE on success, FALSE on failure.

charconv.c47 行で定義されています。

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

Apply charset conversion to a string.

引数:
instr[in] source string
outstr[in] destination buffer
maxoutlen[in] allocated length of outstr in byte.
戻り値:
either of instr or outstr, that holds the result string.

charconv.c81 行で定義されています。