23 #include <openbabel/babelconfig.h> 33 OBERROR
bool tokenize(std::vector<std::string>&,
const char *buf,
const char *delimstr=
" \t\n\r");
34 OBERROR
bool tokenize(std::vector<std::string>&, std::string&,
const char *delimstr=
" \t\n\r",
int limit=-1);
36 OBERROR std::string&
Trim(std::string& txt);
55 OBERROR std::istream&
ignore(std::istream& ifs,
const std::string& txt);
60 const std::string& filename,
61 const std::string& envvar =
"BABEL_DATADIR");
65 #define FILE_SEP_CHAR "\\" 67 #define FILE_SEP_CHAR "/" Definition: residue.h:336
std::istream & ignore(std::istream &ifs, const std::string &txt)
Read and discard all characters from input stream up to, and including, a string. ...
Definition: tokenst.cpp:155
std::string OpenDatafile(std::ifstream &fs, const std::string &filename, const std::string &envvar="BABEL_DATADIR")
Opens a datafile in a directory where OpenBabel expects to find it.
Definition: tokenst.cpp:191
Functor for deleting containers of pointers. Scott Meyers, Effective STL, Item 7. ...
Definition: tokenst.h:48
bool tokenize(std::vector< std::string > &, const char *buf, const char *delimstr=" \\)
Definition: tokenst.cpp:36
std::string & Trim(std::string &txt)
Remove leading and trailing whitespace from a string (docs in tokenst.cpp)
Definition: tokenst.cpp:135
void operator()(const T *ptr) const
Definition: tokenst.h:51
std::string toString(T val)
Definition: tokenst.h:40
Global namespace for all Open Babel code.
Definition: alias.h:22