fixed linker problems in "utils.h" and "utils.cpp"

This commit is contained in:
Andrew Jewett
2020-09-06 10:12:07 -07:00
parent b29522273a
commit d97e8d8cbf
2 changed files with 6 additions and 4 deletions

View File

@ -625,6 +625,11 @@ size_t utils::trim_and_count_words(const std::string &text, const std::string &s
return utils::count_words(utils::trim_comment(text), separators); 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 Convert string into words on whitespace while handling single and
double quotes. double quotes.

View File

@ -240,10 +240,7 @@ namespace LAMMPS_NS {
/** This version sets the separators argument to " \t\r\n\f" by default /** 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);
std::string separators = " \t\r\n\f";
return trim_and_count_words(text, separators);
}
/** Take text and split into non-whitespace words. /** Take text and split into non-whitespace words.
* *