#include <sent/stddefs.h>
Include dependency graph for mystrtok.c:
Go to the source code of this file.
Defines | |
#define | ISTOKEN(A) strchr(delim, A) |
Abbreviation macro to find if A is included in string delim. | |
Functions | |
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) |
Definition in file mystrtok.c.
|
Generic function to extract tokens from strings, with quotation handling. The usage is as the same as strtok.
Definition at line 50 of file mystrtok.c. Referenced by mystrtok(), mystrtok_movetonext(), mystrtok_quote(), and voca_load_htkdict_line(). |
|
Extract tokens considering quotation by double quotation mark.
Definition at line 104 of file mystrtok.c. Referenced by read_token(). |
|
Extract tokens, not considering quotation, just as the same as strtok.
Definition at line 118 of file mystrtok.c. Referenced by voca_load_htkdict_line(). |
|
Just move to the beginning of the next token, without modifying the str.
Definition at line 132 of file mystrtok.c. Referenced by voca_load_htkdict_line(). |