libsent/include/sent/util.h

汎用ユーティリティ関数群に関する定義 [詳細]

#include <stdarg.h>

util.hのインクルード依存関係図

このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。

ソースコードを見る。

データ構造

struct  _bmalloc_base
 Information of allocated memory block for mybmalloc() [詳細]

マクロ定義

#define MYBMALLOC_BLOCK_SIZE   10000
 Memory block size in bytes for mybmalloc()

型定義

typedef _bmalloc_base BMALLOC_BASE
 Information of allocated memory block for mybmalloc()

関数

char * getl (char *, int, FILE *)
char * getl_fp (char *, int, FILE *)
char * getl_fd (char *, int, int)
char * getl_sd (char *, int, int)
char * first_token (char *)
char * next_token (void)
char * next_token_if_any (void)
char * rest_token (void)
FILE * fopen_readfile (char *)
int fclose_readfile (FILE *)
FILE * fopen_writefile (char *)
int fclose_writefile (FILE *)
size_t myfread (void *ptr, size_t size, size_t n, FILE *fp)
size_t myfwrite (void *ptr, size_t size, size_t n, FILE *fp)
int myfgetc (FILE *fp)
int myfeof (FILE *fp)
int myfrewind (FILE *fp)
void mybmalloc_set_param ()
void * mybmalloc (int)
void mybmalloc_free (void)
char * mybstrdup (char *)
void * mybmalloc2 (int size, BMALLOC_BASE **list)
char * mybstrdup2 (char *, BMALLOC_BASE **list)
void mybfree2 (BMALLOC_BASE **list)
void * mymalloc (int)
void * myrealloc (void *, int)
void * mycalloc (int, int)
void swap_sample_bytes (SP16 *buf, int len)
void swap_bytes (char *buf, size_t unitbyte, int unitnum)
boolean j_printf_set_charconv (char *fromcode, char *tocode)
char * charconv (char *instr, char *outstr, int maxoutlen)
boolean charconv_iconv_setup (char *fromcode, char *tocode, boolean *enabled)
char * charconv_iconv (char *instr, char *outstr, int maxoutlen)
boolean charconv_win32_setup (char *fromcode, char *tocode, boolean *enabled)
char * charconv_win32 (char *instr, char *outstr, int maxoutlen)
boolean charconv_libjcode_setup (char *fromcode, char *tocode, boolean *enabled)
char * charconv_libjcode (char *instr, char *outstr, int maxoutlen)
void set_print_func (void(*print)(char *), void(*printerr)(char *), void(*flush)(void))
int j_printf (char *format,...)
 Output a text message to standard out.
int j_printerr (char *format,...)
 Output a text message to standard error
int j_flushprint ()
 Flush text message
int module_send (int sd, char *format,...)
void j_error (char *format,...)
void j_error_register_exitfunc (void(*error_func)())
void j_exit ()
void j_exit_register_exitfunc (void(*exit_func)())
char * mystrtok_quotation (char *str, char *delim, int left_paren, int right_paren, int mode)
char * mystrtok_quote (char *str, char *delim)
char * mystrtok (char *str, char *delim)
char * mystrtok_movetonext (char *str, char *delim)
void confout (FILE *strm)
void confout_version (FILE *strm)
void confout_audio (FILE *strm)
void confout_lm (FILE *strm)
void confout_am (FILE *strm)
void confout_lib (FILE *strm)
void confout_process (FILE *strm)


説明

汎用ユーティリティ関数群に関する定義

作者:
Akinobu LEE
日付:
Sat Feb 12 12:30:40 2005
このファイルには,テキスト読み込みや圧縮ファイル操作, メモリ割り付け,バイトオーダ操作,汎用のメッセージ出力関数などの 汎用のユーティリティ関数に関する定義が含まれています.

Revision
1.7

util.h で定義されています。


マクロ定義

#define MYBMALLOC_BLOCK_SIZE   10000

Memory block size in bytes for mybmalloc()

mybmalloc() allocate memory per big block to reduce memory management overhead. This value sets the block size to be allocated. Smaller value may leads to finer granularity, but overhead may increase. Larger value may result in reduction of overhead, but too much memory can be allocated for a small memory requirement.

util.h の 49 行で定義されています。

参照元 mybmalloc_set_param().


関数

char* getl ( char *  buf,
int  maxlen,
FILE *  fp 
)

Read one line from file that has been opened by fopen_readfile(). Blank line will be skipped.

引数:
buf [out] data buffer
maxlen [in] maximum length of above
fp [in] file pointer or gzFile pointer
戻り値:
the buffer buf, or NULL on EOF or error.

readfile.c の 52 行で定義されています。

参照元 add_bigram_rl()・add_unigram()・ngram_read_arpa()・rddfa()・rdhmmlist()・read_token()・set_and_check_total_info()・set_bigram()・set_total_info()・set_unigram()・voca_load_htkdict().

char* getl_fp ( char *  buf,
int  maxlen,
FILE *  fp 
)

Read one line from file pointer. Blank line will be skipped.

引数:
buf [out] data buffer
maxlen [in] maximum length of above
fp [in] file pointer
戻り値:
the buffer buf, or NULL on EOF or error.

readfile.c の 86 行で定義されています。

参照元 adin_file_begin()・adin_sndfile_begin()・htk_config_file_parse()・mfcfilelist_nextfile()・multigram_add_prefix_filelist().

char* getl_fd ( char *  buf,
int  maxlen,
int  fd 
)

Read one line from a file descriptor. Blank line will be skipped.

引数:
buf [out] data buffer
maxlen [in] maximum length of above
fd [in] file descriptor
戻り値:
the buffer buf, or NULL on EOF or error.

readfile.c の 114 行で定義されています。

参照元 msock_check_and_process_command()・msock_exec_command()・msock_process_command()・rddfa_fd()・voca_load_htkdict_fd().

char* getl_sd ( char *  buf,
int  maxlen,
int  sd 
)

Read one line from a socket descriptor. Blank line will be skipped.

引数:
buf [out] data buffer
maxlen [in] maximum length of above
sd [in] socket descpritor
戻り値:
the buffer buf, or NULL on EOF or error.

readfile.c の 151 行で定義されています。

参照元 msock_check_and_process_command()・msock_exec_command()・msock_process_command()・rddfa_sd()・voca_load_htkdict_sd().

char* first_token ( char *  buf  ) 

Return first token of a buffer, delimited by DELM. Program will terminate if any token does not found.

引数:
buf [i/o] string buffer
戻り値:
pointer to the extracted token.

readfile.c の 186 行で定義されています。

参照元 add_bigram_rl()・add_unigram()・new_str2phseq()・rddfa_line()・rdhmmlist()・set_bigram()・set_unigram().

char* next_token ( void   ) 

Return next token of a buffer, delimited by DELM. Should be called after first_token(). Program will terminate if any token does not found.

戻り値:
pointer to the extracted token.

readfile.c の 202 行で定義されています。

参照元 add_bigram_rl()・add_unigram()・rddfa_line()・set_bigram()・set_unigram().

char* next_token_if_any ( void   ) 

Return next token of a buffer, delimited by DELM. Should be called after first_token().

戻り値:
pointer to the extracted token, or NULL if not found.

readfile.c の 216 行で定義されています。

参照元 new_str2phseq()・rdhmmlist().

char* rest_token ( void   ) 

Return the rest tokens till newline. Program will terminate if any token does not found.

戻り値:
pointer to the extracted token.

readfile.c の 230 行で定義されています。

FILE* fopen_readfile ( char *  filename  ) 

Open a file with zlib.

引数:
filename [in] file name to open
戻り値:
gzFile pointer if succeed, NULL on failure.

gzfile.c の 54 行で定義されています。

参照元 adin_file_open()・CMN_load_from_file()・init_dfa()・init_hmminfo()・init_ngram_arpa()・init_ngram_bin()・init_voca()・new_SS_load_from_file()・rdparam().

int fclose_readfile ( FILE *  fp  ) 

Close a file previously opened by fopen_readfile().

引数:
fp [in] gzFile pointer
戻り値:
0 on success, -1 on error.

gzfile.c の 70 行で定義されています。

参照元 adin_file_close()・adin_file_open()・CMN_load_from_file()・init_dfa()・init_hmminfo()・init_ngram_arpa()・init_ngram_bin()・init_voca()・new_SS_load_from_file()・rdparam()・setup_wav().

FILE* fopen_writefile ( char *  filename  ) 

Open or create a file for writing (no compression supported),

引数:
filename [in] filename
戻り値:
the file pointer or NULL on failure.

gzfile.c の 341 行で定義されています。

参照元 wrwav_open().

int fclose_writefile ( FILE *  fp  ) 

Close file previously opened by open_writefile().

引数:
fp [in] file pointer
戻り値:
0 on success, -1 on failure.

gzfile.c の 360 行で定義されています。

参照元 wrwav_close().

size_t myfread ( void *  ptr,
size_t  size,
size_t  n,
FILE *  fp 
)

Read data from input stream opened by fopen_readfile().

引数:
ptr [out] data buffer
size [in] size of unit in bytes
n [in] number of unit to be read
fp [in] gzFile pointer
戻り値:
number of read units or EOF, -1 on error.

gzfile.c の 90 行で定義されています。

参照元 adin_file_open()・adin_file_read()・adin_stdin_read()・myread()・rdn().

size_t myfwrite ( void *  ptr,
size_t  size,
size_t  n,
FILE *  fp 
)

Write data.

引数:
ptr [in] data buffer
size [in] size of unit in bytes
n [in] number of unit to write
fp [in] file pointer
戻り値:
the number of units successfully written, or 0 if EOF or failed.

gzfile.c の 379 行で定義されています。

参照元 mywrite()・wrt().

int myfgetc ( FILE *  fp  ) 

Read one character from input stream opened by fopen_readfile().

引数:
fp [in] gzFile pointer
戻り値:
the read character, or -1 on EOF or error.

gzfile.c の 109 行で定義されています。

参照元 rdn_str().

int myfeof ( FILE *  fp  ) 

Test if reached end of file, for files opened by fopen_readfile().

引数:
fp [in] gzFile pointer.
戻り値:
1 if already on EOF, 0 if otherwise.

gzfile.c の 124 行で定義されています。

参照元 adin_file_read().

int myfrewind ( FILE *  fp  ) 

Seek to the first of the file.

引数:
fp [in] gzFile pointer.
戻り値:
0 on success, -1 on error.

gzfile.c の 140 行で定義されています。

void mybmalloc_set_param (  ) 

Set block size and memory alignment factor.

mybmalloc.c の 70 行で定義されています。

参照元 mybmalloc()・mybmalloc2()・system_bootup().

void* mybmalloc ( int  size  ) 

Malloc specified size and return the pointer.

引数:
size [in] required size in bytes
戻り値:
pointer to the allocated area.

mybmalloc.c の 102 行で定義されています。

参照元 mybstrdup().

void mybmalloc_free ( void   ) 

Free all the allocated area.

mybmalloc.c の 180 行で定義されています。

char* mybstrdup ( char *  s  ) 

String duplication using mybmalloc().

引数:
s [in] string to be duplicated
戻り値:
pointer to the newly allocated string.

mybmalloc.c の 210 行で定義されています。

void* mybmalloc2 ( int  size,
BMALLOC_BASE **  list 
)

Another version of memory block allocation, used for tree lexicon.

引数:
size [in] memory size to be allocated
list [i/o] total memory management information (will be updated here)
戻り値:
pointer to the newly allocated area.

mybmalloc.c の 228 行で定義されています。

参照元 add_to_error()・add_wacc()・bt_relocate_rw()・dens_new()・dens_read()・get_back_trellis_end()・hmm_add_physical_to_logical()・hmm_add_pseudo_phones_sub()・htk_hmmdata_new()・htk_hmmdata_read()・make_hmm_basephone_list()・mybstrdup2()・outprob_cache_extend()・rd_data()・rd_dens()・rd_state()・rd_tmix()・rd_trans()・rd_var()・rdhmmlist()・rdn_str()・state_new()・state_read()・tmix_create_codebook_index()・tmix_read()・trans_new()・trans_read()・var_new()・var_read()・voca_load_htkdict_line()・wchmm_add_word()・wchmm_duplicate_state().

char* mybstrdup2 ( char *  s,
BMALLOC_BASE **  list 
)

String duplication using mybmalloc2().

引数:
s [in] string to be duplicated
list [i/o] total memory management information pointer
戻り値:
pointer to the newly allocated string.

mybmalloc.c の 265 行で定義されています。

参照元 rdhmmdef()・rdhmmlist()・tmix_read().

void mybfree2 ( BMALLOC_BASE **  list  ) 

Free all memories allocated by mybmalloc2()

引数:
list [i/o] total memory management information (will be cleaned here)

mybmalloc.c の 280 行で定義されています。

参照元 bt_prepare()・hmminfo_free()・outprob_cache_free()・wchmm_free()・word_info_free().

void* mymalloc ( int  size  ) 

Allocate a memory, as the same as malloc.

引数:
size [in] required size in bytes.
戻り値:
pointer to the the newly allocated area.

mymalloc.c の 40 行で定義されています。

参照元 add_arc()・add_successor()・add_to_error()・add_unigram()・adin_cut()・adin_cut_callback_store_buffer()・adin_file_begin()・adin_initialize()・adin_mic_standby()・adin_sndfile_begin()・adin_thread_create()・build_gsset()・build_state2gs()・build_wchmm2()・calc_tied_mix_init()・calc_tied_mix_prepare()・cdset_new()・cm_init()・CMN_realtime_init()・config_file_parse()・Delta()・dfa_find_pause_word()・dfa_info_new()・dfa_pause_word_append()・dfa_state_init()・do_align()・exec_exclude_vectors()・filepath()・get_line()・get_nbest_uniprob()・gmm_gprune_safe_init()・gmm_init()・gms_gprune_init()・gms_init()・gms_prepare()・gprune_beam_init()・gprune_heu_init()・gprune_none_init()・gprune_safe_init()・hmminfo_new()・init_count_zc_e()・init_mark()・init_param()・InitFBank()・make_costbl_hamming()・make_costbl_makemfcc()・make_fft_table()・make_iwcache_index()・make_phseq()・make_sintbl_wcep()・make_terminfo()・malloc_dfa_cp()・malloc_nodes()・malloc_wordtrellis()・max_successor_cache_init()・max_successor_prob_iw()・mfcfilelist_nextfile()・msock_exec_command()・multigram_add()・multigram_add_gramlist()・multigram_add_prefix_filelist()・mybmalloc()・mybmalloc2()・new_make_word_hmm_with_lm()・new_node()・new_param()・new_SS_calculate()・new_SS_load_from_file()・new_str2phseq()・new_str2wordseq()・new_wav2mfcc()・newnode()・ngram_info_new()・ngram_make_lookup_tree()・nw_malloc()・opt_parse()・outprob_cache_extend()・outprob_cd_nbest_init()・param_str2code()・phoneme_rev_align()・rd_dens()・rd_state()・rd_tmix()・rd_trans()・rd_var()・rddfa_line()・rdhmmlist()・read_param()・read_token()・realloc_dfa_cp()・RealTimeInit()・RealTimeParam()・RealTimePipeLine()・regist_cdset()・set_bigram()・set_trigram()・set_unigram()・state_rev_align()・terminfo_append()・test_expand_triphone()・tmix_create_codebook_index()・viterbi_segment()・voca_append()・voca_load_htkdict_line()・wchmm_add_word()・wchmm_duplicate_leafnode()・wchmm_fbs()・wchmm_init()・wchmm_new()・WeightCepstrum()・winfo_init()・WMP_calc_init()・WMP_deltabuf_new()・word_info_new()・word_rev_align()・wt_dens()・wt_state()・wt_tmix()・wt_trans()・wt_var().

void* myrealloc ( void *  ptr,
int  size 
)

Re-allocate memory area, keeping the existing data, as the same as realloc.

引数:
ptr [in] memory pointer to be re-allocated
size [in] required new size in bytes
戻り値:
pointer to the the newly allocated area with existing data.

mymalloc.c の 58 行で定義されています。

参照元 config_file_parse()・dfa_pause_word_append()・dfa_state_expand()・expand_tlist()・new_str2phseq()・new_str2wordseq()・outprob_cache_extend()・RealTimePipeLine()・regist_cdset()・shrink_successor()・terminfo_append()・voca_load_htkdict_line()・wchmm_extend()・winfo_expand().

void* mycalloc ( int  nelem,
int  elsize 
)

Allocate memory area and set it to zero, as the same as calloc.

引数:
nelem [in] size of element in bytes
elsize [in] number of elements to allocate
戻り値:
pointer to the newly allocated area.

mymalloc.c の 76 行で定義されています。

参照元 CMN().

void swap_sample_bytes ( SP16 *  buf,
int  len 
)

Byte swapping of 16bit audio samples.

引数:
buf [i/o] data buffer
len [in] length of above

endian.c の 58 行で定義されています。

参照元 adin_file_read()・adin_mic_read()・adin_stdin_read()・adin_tcpip_read()・NA_read()・wrsamp().

void swap_bytes ( char *  buf,
size_t  unitbyte,
int  unitnum 
)

Generic byte-swapping functions for any size of unit.

引数:
buf [i/o] data buffer
unitbyte [in] size of unit in bytes
unitnum [in] number of unit in the buffer

endian.c の 34 行で定義されています。

参照元 myread()・mywrite()・rdn()・read_param()・wrt().

boolean j_printf_set_charconv ( char *  fromcode,
char *  tocode 
)

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.c の 46 行で定義されています。

参照元 main().

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.c の 80 行で定義されています。

参照元 j_printerr()・j_printf()・module_send().

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

Setup charset conversion for iconv.

引数:
fromcode [in] input charset code name (NULL invalid)
tocode [in] output charset code name, or NULL when disable conversion
enable_conv [out] return whether conversion should be enabled or not
戻り値:
TRUE on success, FALSE on failure (unknown code name).

charconv_iconv.c の 44 行で定義されています。

参照元 j_printf_set_charconv().

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

Apply charset conversion to a string using iconv.

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

charconv_iconv.c の 91 行で定義されています。

参照元 charconv().

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

Setup charset conversion for win32.

引数:
fromcode [in] input charset code name or codepage number string, NULL invalid
tocode [in] output charset code name or codepage number string, or NULL when disable conversion
enable_conv [out] store whether conversion should be enabled or not
戻り値:
TRUE on success, FALSE on failure (unknown codename or unsupported codepage).

charconv_win32.c の 67 行で定義されています。

参照元 j_printf_set_charconv().

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

Apply charset conversion to a string using win32 functions

引数:
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_win32.c の 203 行で定義されています。

参照元 charconv().

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

Setup charset conversion for libjcode.

引数:
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
戻り値:
TRUE on success, FALSE on failure (unknown name).

charconv_libjcode.c の 49 行で定義されています。

参照元 j_printf_set_charconv().

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

Apply charset conversion to a string using libjcode.

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

charconv_libjcode.c の 88 行で定義されています。

参照元 charconv().

void set_print_func ( void(*)(char *)  print,
void(*)(char *)  printerr,
void(*)(void)  flush 
)

Set the alternative output functions instead of normal tty output.

引数:
print [in] function to output string in stdout
printerr [in] function to output string in stderr
flush [in] function to flush the stdout

j_printf.c の 57 行で定義されています。

int j_printf ( char *  fmt,
  ... 
)

Output a text message to standard out.

The output device can be changed by set_print_func().

引数:
fmt [in] format string, like printf.
... [in] variable length argument like printf.
戻り値:
the same as printf, i.e. number of characters printed.

j_printf.c の 76 行で定義されています。

参照元 accept_from()・adin_file_begin()・adin_mic_read()・adin_mic_standby()・adin_sndfile_begin()・adin_stdin_begin()・allocateAudioBufferList()・bt_current_max_word()・callback_list_error()・check_wchmm()・config_file_parse()・ConvInputProc()・detailed_help()・disp_ptree()・do_align()・exec_exclude_vectors()・hmm_check()・list_error()・main_module_loop()・main_recognition_loop()・make_base_phone()・make_ngram_ref()・make_ptree()・mark_exclude_vector()・max_successor_prob_iw()・msock_exec_command()・multigram_activate()・multigram_add()・multigram_build_append()・multigram_deactivate()・multigram_delete()・multigram_exec()・multigram_exec_activate()・multigram_exec_delete()・multigram_read_file()・multigram_setup()・new_select_param_kind()・new_str2phseq()・ngram_nextwords()・param_strip_zero()・print_all_basephone_name()・print_all_gram()・print_callback_detail()・print_callback_name()・print_dfa_cp()・print_dfa_info()・print_error_callback()・print_format()・print_hmmdef_info()・print_hmminfo()・print_info()・print_ngram_info()・print_ngraminfo()・print_phone_info()・print_setting()・print_voca_info()・print_wchmm_info()・print_wchmm_s()・print_wchmm_s_arc()・print_wchmm_s_successor()・print_wchmm_w()・print_winfo_w()・printAudioBuffer()・printStreamInfo()・put_all_in_stack()・put_atom()・put_hmm_arc()・put_hmm_outprob()・put_htk_dens()・put_htk_hmm()・put_htk_state()・put_htk_trans()・put_htk_var()・put_hypo_cmscore()・put_hypo_phoneme()・put_hypo_wname()・put_hypo_woutput()・put_logical_hmm()・put_para()・put_param_head()・put_param_info()・put_vec()・put_voca()・rd_dens()・rd_state()・rd_tmix()・rd_trans()・rd_var()・RealTimeCMNUpdate()・RealTimeInit()・RealTimeParam()・scan_word()・select_param_vmark()・test_expand_triphone()・test_interword_triphone()・ttyout_gmm()・ttyout_pass1_current()・ttyout_pass1_end()・ttyout_pass1_final()・ttyout_pass2()・ttyout_pass2_end()・ttyout_pass2_failed()・ttyout_rejected()・wb_ok()・wchmm_check_interactive()・wchmm_fbs()・wt_dens()・wt_trans()・wt_var().

int j_printerr ( char *  fmt,
  ... 
)

Output a text message to standard error

The output device can be changed by set_print_func().

引数:
fmt [in] format string, like printf.
... [in] variable length argument like printf.
戻り値:
the same as printf, i.e. number of characters printed.

j_printf.c の 110 行で定義されています。

参照元 add_bigram_rl()・add_unigram()・adin_cut()・adin_cut_callback_store_buffer()・adin_file_begin()・adin_file_open()・adin_file_standby()・adin_mic_read()・adin_mic_standby()・adin_mic_start()・adin_mic_stop()・adin_netaudio_read()・adin_netaudio_start()・adin_setup_func()・adin_sndfile_begin()・adin_sndfile_end()・adin_sndfile_standby()・adin_stdin_begin()・adin_tcpip_begin()・adin_tcpip_end()・adin_tcpip_read()・adin_tcpip_send_pause()・adin_tcpip_send_resume()・adin_tcpip_send_terminate()・adin_tcpip_standby()・adin_thread_create()・adin_thread_process()・allocateAudioBufferList()・args_needed_exit()・build_state2gs()・build_wchmm2()・charconv_iconv_setup()・charconv_libjcode_setup()・charconv_win32()・charconv_win32_setup()・check_format()・check_header()・check_hmm_limit()・check_hmm_options()・check_specs()・CMN_load_from_file()・CMN_save_to_file()・codebook_add()・config_file_parse()・configure_param()・ConvInputProc()・decode_output_selection()・dens_add()・dfa_symbol_lookup()・error_missing_left_triphone()・error_missing_right_triphone()・final_fusion()・finalize_1st_pass()・get_back_trellis_proceed()・get_dens_data()・get_line()・get_state_data()・get_trans_data()・get_var_data()・gms_init()・guess_basenum()・guess_if_cd_hmm()・hmm_add_physical_to_logical()・hmm_add_pseudo_phones()・htk_config_file_parse()・htk_hmm_set_pause_model()・htk_hmmdata_add()・init_dfa()・init_hmminfo()・init_ngram_arpa()・init_ngram_bin()・init_voca()・initialize_dict()・initialize_GMM()・initialize_GSHMM()・initialize_HMM()・m_errexit()・main_recognition_loop()・make_connection()・make_connection_unix()・make_costbl_hamming()・make_costbl_makemfcc()・make_dfa_voca_ref()・make_fft_table()・make_log_tbl()・make_sintbl_wcep()・make_voca_ref()・msock_exec_command()・multigram_add_prefix_filelist()・mybmalloc_set_param()・NA_standby()・new_param_check_and_adjust()・new_SS_load_from_file()・new_str2wordseq()・new_wav2mfcc()・ngram_read_arpa()・ngram_read_bin()・opt_parse()・param_qualstr2code()・put_voca_err()・rd()・rd_header()・rdhmmdef()・rdhmmlist()・read_binhmm()・read_global_opt()・read_param()・record_sample_close()・select_param_vmark()・select_result_output()・set_and_check_total_info()・set_bigram()・set_unigram()・set_unknown_id()・setup_wav()・state_add()・state_read()・tmix_create_codebook_index()・trans_add()・triphone_callback_normal()・triphone_callback_right()・ttyout_pass1_begin()・ttyout_status_recready()・usage()・var_add()・var_read()・viterbi_segment()・voca_load_htkdict_line()・voca_lookup_wid()・voca_mono2tri()・wchmm_add_word()・wchmm_index_ststart()・write_header()・wrwav_close()・wt()・xrun_recovery().

int j_flushprint (  ) 

Flush text message

The output device can be changed by set_print_func().

戻り値:
the same as fflush, i.e. 0 on success, other if failed.

j_printf.c の 141 行で定義されています。

参照元 main_recognition_loop()・ttyout_pass1_current()・ttyout_pass2()・ttyout_pass2_end().

int module_send ( int  sd,
char *  fmt,
  ... 
)

Generic function to send a formatted message to client module.

引数:
sd [in] socket descriptor
fmt [in] format string, like printf.
... [in] variable length argument like printf.
戻り値:
the same as printf, i.e. number of characters printed.

j_printf.c の 162 行で定義されています。

参照元 m_errexit()・m_exit()・msock_exec_command()・msock_gmm()・msock_pass1_current()・msock_pass1_final()・msock_pass2()・msock_pass2_begin()・msock_pass2_end()・msock_pass2_failed()・msock_rejected()・msock_status_param()・msock_status_process_offline()・msock_status_process_online()・msock_status_recend()・msock_status_recready()・msock_status_recstart()・msock_word_out1()・msock_word_out2()・multigram_activate()・send_gram_info().

void j_error ( char *  fmt,
  ... 
)

Output error message and exit the program.

引数:
fmt [in] format string, like printf.
... [in] variable length argument like printf.

j_printf.c の 212 行で定義されています。

参照元 accept_from()・add_successor()・add_unigram()・adin_initialize()・adin_mic_standby()・adin_tcpip_end()・adin_thread_create()・aptree_remove_entry()・aptree_search_data()・build_wchmm2()・charconv_iconv()・check_header()・check_specs()・checkdir()・checkpath()・config_file_parse()・cpair_append()・dfa_pause_word_append()・extract_cpair()・final_fusion()・first_token()・getl_fd()・getl_sd()・hmm_add_pseudo_phones_sub()・htk_config_file_parse()・init_dfa()・init_hmminfo()・init_ngram_arpa()・init_ngram_bin()・InitFBank()・initialize_dict()・initialize_HMM()・lookup_word()・main()・main_module_loop()・main_recognition_loop()・make_record_filename()・mark_exclude_vector()・mark_word_edge()・match_successor()・max_successor_prob_iw()・mfcfilelist_nextfile()・msock_exec_command()・multigram_read_file()・mycalloc()・mymalloc()・myrealloc()・new_wav2mfcc()・newnode()・next_token()・ngram_compact_bigram_context()・ngram_nextwords()・ngram_read_arpa()・ngram_read_bin()・opt_parse()・opt_terminate()・outprob_cd()・outprob_style()・print_info()・ptree_search_data()・rd_para()・rderr()・rdhmmdef()・rdhmmlist()・rdn()・rdn_str()・RealTimeInit()・RealTimePipeLinePrepare()・record_sample_close()・record_sample_open()・record_sample_write()・regist_cdset()・rest_token()・scan_word()・set_bigram()・set_unigram()・setup_result_msock()・totalstatelen()・trace_backptr()・wchmm_add_word()・wchmm_link_hmm()・WeightCepstrum()・winfo_expand()・WMP_calc_init()・WMP_init()・wrt()・wt_data()・wt_dens()・wt_state()・wt_tmix().

void j_error_register_exitfunc ( void(*)()  f  ) 

Register a function that should be executed just before application error exit.

引数:
f [in] pointer to the function

j_printf.c の 200 行で定義されています。

参照元 system_bootup().

void j_exit (  ) 

Exit the program.

j_printf.c の 245 行で定義されています。

参照元 detailed_help()・gmm_init()・main_recognition_loop()・msock_exec_command()・opt_parse()・usage().

void j_exit_register_exitfunc ( void(*)()  f  ) 

Register a function that should be executed just before application ends.

引数:
f [in] pointer to the function

j_printf.c の 235 行で定義されています。

参照元 system_bootup().

char* mystrtok_quotation ( char *  str,
char *  delim,
int  left_paren,
int  right_paren,
int  mode 
)

Generic function to extract tokens from strings, with quotation handling. The usage is as the same as strtok.

引数:
str [i/o] source string, or NULL when this is a continuous call from previous call. Will be truncated in this function.
delim [in] string to specify the delimiters.
left_paren [in] left brace
right_paren [in] right brace
mode [in] if 1, just move to the beginning of next token
戻り値:
pointer to the next extracted token.

mystrtok.c の 50 行で定義されています。

参照元 mystrtok()・mystrtok_movetonext()・mystrtok_quote()・voca_load_htkdict_line().

char* mystrtok_quote ( char *  str,
char *  delim 
)

Extract tokens considering quotation by double quotation mark.

引数:
str [i/o] source string, will be truncated.
delim [in] string of all token delimiters
戻り値:
pointer to the next extracted token, or NULL when no token found.

mystrtok.c の 104 行で定義されています。

参照元 read_token().

char* mystrtok ( char *  str,
char *  delim 
)

Extract tokens, not considering quotation, just as the same as strtok.

引数:
str [i/o] source string, will be truncated.
delim [in] string of all token delimiters
戻り値:
pointer to the next extracted token, or NULL when no token found.

mystrtok.c の 118 行で定義されています。

参照元 voca_load_htkdict_line().

char* mystrtok_movetonext ( char *  str,
char *  delim 
)

Just move to the beginning of the next token, without modifying the str.

引数:
str [i/o] source string, will be truncated.
delim [in] string of all token delimiters
戻り値:
pointer to the next extracted token, or NULL when no token found.

mystrtok.c の 132 行で定義されています。

参照元 voca_load_htkdict_line().

void confout ( FILE *  strm  ) 

Output all information of this libsent library.

引数:
strm [in] file pointer to output

confout.c の 137 行で定義されています。

参照元 put_library_defs().

void confout_version ( FILE *  strm  ) 

Output version of this libsent library.

引数:
strm [in] file pointer to output

confout.c の 33 行で定義されています。

参照元 confout().

void confout_audio ( FILE *  strm  ) 

Output audio configuration of this libsent library.

引数:
strm [in] file pointer to output

confout.c の 44 行で定義されています。

参照元 confout().

void confout_lm ( FILE *  strm  ) 

Output language model configuration of this libsent library.

引数:
strm [in] file pointer to output

confout.c の 66 行で定義されています。

参照元 confout().

void confout_am ( FILE *  strm  ) 

Output acoustic model configuration of this libsent library.

引数:
strm [in] file pointer to output

confout.c の 87 行で定義されています。

参照元 confout().

void confout_lib ( FILE *  strm  ) 

Output about linked libraries of this libsent library.

引数:
strm [in] file pointer to output

confout.c の 103 行で定義されています。

参照元 confout().

void confout_process ( FILE *  strm  ) 

Output about process handling of this libsent library.

引数:
strm [in] file pointer to output

confout.c の 116 行で定義されています。

参照元 confout().


Juliusに対してTue Dec 26 16:20:25 2006に生成されました。  doxygen 1.5.0