Julius 4.2
|
様々な入力からテキストを行単位で読み込む関数群 [詳細]
関数 | |
char * | getl (char *buf, int maxlen, FILE *fp) |
Read one line from file that has been opened by fopen_readfile(). | |
char * | getl_fp (char *buf, int maxlen, FILE *fp) |
Read one line from file pointer. | |
char * | get_line_from_stdin (char *buf, int buflen, char *prompt) |
Get one file name from stdin with a prompt . |
様々な入力からテキストを行単位で読み込む関数群
入力ストリームやファイルデスクプリタなど,様々なソースから テキスト入力を行単位で読み込むための関数群です. 読み込み時において,空行は無視されます.また行末の改行は削除されます.
readfile.c で定義されています。
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 |
readfile.c の 53 行で定義されています。
参照元 add_bigram(), add_unigram(), get_total_info(), ngram_read_arpa(), rddfa(), rdhmmdef(), rdhmmlist(), read_token(), set_ngram(), set_unigram(), voca_load_htkdict(), と voca_load_wordlist().
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 |
readfile.c の 87 行で定義されています。
参照元 adin_file_begin(), adin_sndfile_begin(), htk_config_file_parse(), initialize_dict(), main_recognition_stream_loop(), multigram_add_prefix_filelist(), rddfa_fp(), voca_load_htkdict_fp(), と voca_load_wordlist_fp().
char* get_line_from_stdin | ( | char * | buf, |
int | buflen, | ||
char * | prompt | ||
) |
Get one file name from stdin with a prompt .
Blank line is omitted.
buf | [out] buffer to hold input text line |
buflen | [in] length of the buffer |
prompt | [in] prompt string |
readfile.c の 118 行で定義されています。
参照元 adin_file_begin(), adin_sndfile_begin(), main(), と main_recognition_stream_loop().