4a3f3df9cab079354e8a9f4cf6c56f616f1ea0ab kent Fri Apr 6 16:29:22 2012 -0700 Removing MySQL linking dependency. diff --git src/utils/autoSql/eztok.h src/utils/autoSql/eztok.h new file mode 100644 index 0000000..0bf2e21 --- /dev/null +++ src/utils/autoSql/eztok.h @@ -0,0 +1,18 @@ +/* eztok - simple but often effective tokenizer. Separates + * things into space or punctuation delimited words. Punctuation + * (anything non-alphanumeric) is returned as a single character + * token. It will handle quotes, but not allow escapes within + * quotes. */ + +struct ezTok +/* A token. */ + { + struct ezTok *next; + char string[1]; /* Allocated at run time */ + }; + +struct ezTok *ezNewTok(char *string, int stringSize); +/* Allocate and initialize a new token. */ + +struct ezTok *ezTokenize(char *text); +/* Convert text to list of tokens. */