#include <SheppStrUtil.H>
Static Public Member Functions | |
static char * | trim (char *line) |
Removes leading and ending white spaces from line (shepp). | |
static vector< string > | parse_line (char *line, bool loop=true) |
Given a line, split its words by white space into a string vector (shepp). | |
static int | split (string input, string &first, string &second, string splitter, bool relaxed=false) |
static int | quote_gathering (vector< string > &words, string &gather) |
Gathers command-line arguments bounded by quotes in a string. | |
static string | doc2id (const string &doc) |
Removes chars [./-] from document strings. |
|
Removes chars [./-] from document strings.
|
|
Given a line, split its words by white space into a string vector (shepp).
|
|
Gathers command-line arguments bounded by quotes in a string.
|
|
Splits input into first and second at first occurrence of splitter. If relaxed is true, it is acceptable for second to be empty.
|
|
Removes leading and ending white spaces from line (shepp).
|