Enumerations | |
enum | readopt { READ_PHYS = 0x00, READ_LOGICAL = 0x01, STRIP = 0x02, CLEAN = 0x04, RAW = 0x08 } |
Control options for getrecord. More... | |
Functions | |
void | colselect (const vector< string > &icolumns, const vector< string > &exact_add, const vector< string > ®ex_add, const vector< string > &exact_del, const vector< string > ®ex_del, vector< string > &ocolumns) throw ( Exception ) |
select columns based on exact/regex matching/exclusion. | |
bool | match (const string &str, const string &pattern) throw ( Exception ) |
handles Perl regular expression matching. | |
istream & | getrecord (istream &is, string &str, int opt, char delim, char continuation) |
Reads physical and logical lines. | |
bool | iscomment (const string &str, const string &ignore, const string &comment) |
determine if the string is a comment. | |
string & | prune (string &str) |
remove leading and trailing white space from a string | |
string & | trim (string &str) |
remove leading white space from a string | |
float | str2f (const char *txt) throw ( Exception ) |
convert string to floating-point number | |
double | str2d (const char *txt) throw ( Exception ) |
convert string to double-precision number | |
int | str2i (const char *txt, int base) throw ( Exception ) |
convert string to integer number | |
long | str2l (const char *txt, int base) throw ( Exception ) |
convert string to long number | |
unsigned long | str2ul (const char *txt, int base) throw ( Exception ) |
convert string to long number | |
template<typename Container> | |
void | tok (Container &container, string const &in, const char *const delimiters=" \t\n", bool skip=true) |
split a string into tokens |