suplibxx  1.3.13
suplib Namespace Reference

The suplib namespace encompasses all of the functions in the suplib++ library. More...

Enumerations

enum  readopt {
  READ_PHYS = 0x00, READ_LOGICAL = 0x01, STRIP = 0x02, CLEAN = 0x04,
  RAW = 0x08
}
 Control options for getrecord. More...
 

Functions

void colselect (const std::vector< std::string > &icolumns, const std::vector< std::string > &exact_add, const std::vector< std::string > &regex_add, const std::vector< std::string > &exact_del, const std::vector< std::string > &regex_del, std::vector< std::string > &ocolumns)
 select columns based on exact/regex matching/exclusion. More...
 
bool match (const std::string &str, const std::string &pattern)
 handles Perl regular expression matching. More...
 
std::istream & getrecord (std::istream &is, std::string &str, int opt=READ_PHYS, char delim='\n', char continuation='\\')
 Reads physical and logical lines. More...
 
std::string & trim (std::string &str)
 remove leading white space from a string More...
 
std::string & prune (std::string &str)
 remove leading and trailing white space from a string More...
 
bool iscomment (const std::string &str, const std::string &ignore=" \t", const std::string &comment="#")
 determine if the string is a comment. More...
 
float str2f (const char *txt)
 convert string to floating-point number More...
 
double str2d (const char *txt)
 convert string to double-precision number More...
 
int str2i (const char *txt, int base=10)
 convert string to integer number More...
 
long str2l (const char *txt, int base=10)
 convert string to long number More...
 
unsigned long str2ul (const char *txt, int base=10)
 convert string to long number More...
 

Detailed Description

The suplib namespace encompasses all of the functions in the suplib++ library.