40 #ifndef __EST_STRING_AUX_H__ 41 #define __EST_STRING_AUX_H__ 133 #endif // __EST_STRING_AUX_H__
void StrList_to_StrVector(EST_StrList &l, EST_StrVector &v)
Convert a list of strings to a vector of strings.
EST_write_status save_StrList(EST_String filename, EST_StrList &l, EST_String style="words")
Save tokens from a EST_StrList. If style is set to "lines" each item is stored on a separate line...
int StrListtoIList(EST_StrList &s, EST_IList &il)
Convert a list of strings to a list of integers.
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 ...
long int IVector_index(const EST_IVector &v, const int s)
EST_String itoString(int n)
Make a EST_String object from an integer.
long int ilist_index(const EST_IList &l, int i)
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.
void IVector_to_IList(EST_IVector &v, EST_IList &l)
int Stringtoi(EST_String s)
Make an int from a EST_String. EST_String equivalent of atoi()
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...
void StrVector_to_StrList(EST_StrVector &v, EST_StrList &l)
Convert a vector of strings to a list of strings.
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 strin...
int ilist_member(const EST_IList &l, int i)
int strlist_member(const EST_StrList &l, const EST_String &s)
Return true if s is in list l.
long 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...
void strip_quotes(EST_String &s, const EST_String quote_char="\"")
remove quotes from a string
long 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...
void IList_to_IVector(EST_IList &l, EST_IVector &v)
int StrListtoFList(EST_StrList &s, EST_FList &il)
Convert a list of strings to a list of floats.
EST_read_status load_StrList(EST_String filename, EST_StrList &l)
Load tokens from a file and return them in a EST_StrList.