|
void | StringtoStrList (EST_String s, EST_StrList &l, EST_String sep) |
| Convert a EST_String to a EST_StrList by separating tokens in s delimited by the separator sep. By default, the string is assumed to be delimited by whitespace. More...
|
|
void | BracketStringtoStrList (EST_String s, EST_StrList &l, EST_String sep) |
| Convert a EST_String enclosed in a single set of brackets to a EST_StrList by separating tokens in s delimited by the separator sep. By default, the string is assumed to be delimited by whitespace.
|
|
EST_read_status | load_StrList (EST_String filename, EST_StrList &l) |
| Load tokens from a file and return them in a EST_StrList.
|
|
EST_write_status | save_StrList (EST_String filename, EST_StrList &l, EST_String style) |
| Save tokens from a EST_StrList. If style is set to "lines" each item is stored on a separate line, otherwise each item is separated by a single space.
|
|
void | strip_quotes (EST_String &s, const EST_String quote_char="\"") |
| remove quotes from a string
|
|
EST_String | itoString (int n) |
| Make a EST_String object from an integer.
|
|
EST_String | ftoString (float n, int pres=3, int width=0, int l=0) |
| Make a EST_String object from an float, with variable precision.
|
|
int | Stringtoi (EST_String s) |
| Make an int from a EST_String. EST_String equivalent of atoi()
|
|
int | StrListtoIList (EST_StrList &s, EST_IList &il) |
| Convert a list of strings to a list of integers.
|
|
int | StrListtoFList (EST_StrList &s, EST_FList &f) |
| Convert a list of strings to a list of floats.
|
|
void | StrList_to_StrVector (EST_StrList &l, EST_StrVector &v) |
| Convert a list of strings to a vector of strings.
|
|
void | StrVector_to_StrList (EST_StrVector &v, EST_StrList &l) |
| Convert a vector of strings to a list of strings.
|
|
int | StrVector_index (const EST_StrVector &v, const EST_String &s) |
| Search the vector and return the position of the first occurance of string s in the vector.
|
|
int | strlist_member (const EST_StrList &l, const EST_String &s) |
| Return true if s is in list l.
|
|
int | strlist_index (const EST_StrList &l, const EST_String &s) |
| Search the vector and return the position of the first occurance of string s in the list.
|
|
EST_String | basename (EST_String full, EST_String ext="") |
| This acts like the bourne shell basename command. By default, it strips any leading path from a string. If ext is defined, it strips any suffix matching this string.
|
|