34 #define ISSPC(ch) (ch==' ' || ch=='\t' || ch=='\n' || ch=='\v' || ch=='\f' || ch=='\r') 39 #define ISEMPTY(str) (*(str)=='\0') 44 char *
read_token(
char *&str,
const char exitch =
'\0');
54 unsigned int atou(
char *str,
const char *sep);
59 std::string &
trim(std::string &str);
bool is_empty(const char *str)
return true if str pointer is NULL or is made of spaces (see ISSPC macro)
Definition: strutils.cc:50
unsigned int atou(char *str, const char *sep)
skip a sequence of spaces (see ISSPC macro) and return the unsigned int after sep ...
Definition: strutils.cc:61
char * read_token(char *&str, const char exitch= '\0')
skip a sequence of spaces (see ISSPC macro) and return the token which is considered closed at the ne...
Definition: strutils.cc:34
std::string & trim(std::string &str)
delete spaces from start/end of a string (in place modification)
Definition: strutils.cc:79