|
static char * | trim (char *line) |
| Removes leading and ending white spaces from line (shepp) More...
|
|
static vector< string > | parse_line (char *line) |
| Given a line, split its words by white space into a string vector (shepp) More...
|
|
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. More...
|
|
static string | doc2id (const string &doc) |
| Removes chars [./-] from document strings. More...
|
|
Useful string manipulation routines used by shepp.
static int SheppStrUtil::split |
( |
string |
input, |
|
|
string & |
first, |
|
|
string & |
second, |
|
|
string |
splitter, |
|
|
bool |
relaxed = false |
|
) |
| |
|
inlinestatic |
Splits input into first and second at first occurrence of splitter. If relaxed is true, it is acceptable for second to be empty.
- Parameters
-
input | string to be divided |
first | left side goes here |
second | right side goes here |
splitter | division point |
relaxed | true means that second can be empty |
Referenced by SheppObjSet::authInfo(), cmd_asn_create(), cmd_asn_renew(), cmd_asn_update(), cmd_brorg_update(), cmd_contact_update(), cmd_def_reg_check(), cmd_def_reg_create(), cmd_def_reg_renew(), cmd_def_reg_transfer(), cmd_domain_check(), cmd_domain_create(), cmd_domain_delete(), cmd_domain_info(), cmd_domain_renew(), cmd_domain_update(), cmd_ipnetwork_create(), cmd_ipnetwork_renew(), cmd_ipnetwork_update(), cmd_server(), SheppObjSet::contacts(), SheppObjSet::disclose(), SheppObjSet::nameServer(), SheppObjSet::parse_iprange(), SheppObjSet::phone(), and SheppObjSet::status().