reverting to previous version of util.h and util.cpp

This commit is contained in:
Andrew Jewett
2020-09-06 11:09:36 -07:00
parent eb6f7f9740
commit fabf762fa8
2 changed files with 1 additions and 10 deletions

View File

@ -625,11 +625,6 @@ size_t utils::trim_and_count_words(const std::string &text, const std::string &s
return utils::count_words(utils::trim_comment(text), separators);
}
size_t utils::trim_and_count_words(const std::string &text) {
std::string separators = " \t\r\n\f";
return trim_and_count_words(text, separators);
}
/* ----------------------------------------------------------------------
Convert string into words on whitespace while handling single and
double quotes.

View File

@ -236,11 +236,7 @@ namespace LAMMPS_NS {
* \param separators string containing characters that will be treated as whitespace
* \return number of words found
*/
size_t trim_and_count_words(const std::string &text, const std::string &separators);
/** This version sets the separators argument to " \t\r\n\f" by default
*/
size_t trim_and_count_words(const std::string &text);
size_t trim_and_count_words(const std::string &text, const std::string &separators = " \t\r\n\f");
/** Take text and split into non-whitespace words.
*