fixed linker problems in "utils.h" and "utils.cpp"
This commit is contained in:
@ -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.
|
||||||
|
|||||||
@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user