9#ifndef HAVE_TOKENIZER_H
10#define HAVE_TOKENIZER_H
Definition: tokenizer.h:28
void Tokenizer_printSummary(const Tokenizer *tkz, FILE *ofp)
Print a summary of the information in a Tokenizer.
Definition: tokenizer.c:186
int Tokenizer_ntokens(Tokenizer *t)
Return number of tokens.
Definition: tokenizer.c:162
void Tokenizer_print(const Tokenizer *tkz, FILE *ofp)
Print Tokenizer object.
Definition: tokenizer.c:195
int Tokenizer_find(Tokenizer *t, const char *s)
Search for string s among tokens.
Definition: tokenizer.c:173
Tokenizer * Tokenizer_new(int maxtok)
Tokenizer constructor.
Definition: tokenizer.c:48
int Tokenizer_strip(Tokenizer *t, const char *extraneous)
Strip extraneous chars (those list in "extraneous") from both ends of each token.
Definition: tokenizer.c:124
void Tokenizer_free(Tokenizer *t)
Tokenizer destructor.
Definition: tokenizer.c:65
char * Tokenizer_token(Tokenizer *t, int index)
Return pointer to token with given index.
Definition: tokenizer.c:107
int Tokenizer_split(Tokenizer *t, char *buff, const char *sep)
Turn string "buff" into an array of tokens, assuming that tokens in the input string may be separated...
Definition: tokenizer.c:77