MLT  7.28.0
mlt_tokeniser.h
Go to the documentation of this file.
1 
23 #ifndef MLT_TOKENISER_H
24 #define MLT_TOKENISER_H
25 
30 typedef struct
31 {
32  char *input;
33  char **tokens;
34  int count;
35  int size;
37 
38 /* Remote parser API.
39 */
40 
42 extern int mlt_tokeniser_parse_new(mlt_tokeniser tokeniser, char *text, const char *delimiter);
43 extern char *mlt_tokeniser_get_input(mlt_tokeniser tokeniser);
44 extern int mlt_tokeniser_count(mlt_tokeniser tokeniser);
45 extern char *mlt_tokeniser_get_string(mlt_tokeniser tokeniser, int index);
46 extern void mlt_tokeniser_close(mlt_tokeniser tokeniser);
47 
48 #endif
void mlt_tokeniser_close(mlt_tokeniser tokeniser)
Close the tokeniser.
Definition: mlt_tokeniser.c:162
int mlt_tokeniser_parse_new(mlt_tokeniser tokeniser, char *text, const char *delimiter)
Parse a string by splitting on the delimiter provided.
Definition: mlt_tokeniser.c:80
char * mlt_tokeniser_get_string(mlt_tokeniser tokeniser, int index)
Get a token as a string.
Definition: mlt_tokeniser.c:151
char * mlt_tokeniser_get_input(mlt_tokeniser tokeniser)
Get the original input.
Definition: mlt_tokeniser.c:135
int mlt_tokeniser_count(mlt_tokeniser tokeniser)
Get the number of tokens.
Definition: mlt_tokeniser.c:143
mlt_tokeniser mlt_tokeniser_init()
Initialise a tokeniser.
Definition: mlt_tokeniser.c:33
struct mlt_tokeniser mlt_tokeniser_t
Tokeniser class.
Definition: mlt_tokeniser.h:31
int count
Definition: mlt_tokeniser.h:34
char ** tokens
Definition: mlt_tokeniser.h:33
char * input
Definition: mlt_tokeniser.h:32
int size
Definition: mlt_tokeniser.h:35