Julius 4.2
|
文字コード変換 [詳細]
#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 のどれかを呼び出す.
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 |
charconv.c の 47 行で定義されています。
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. |
charconv.c の 81 行で定義されています。