Add utils::split_lines

This commit is contained in:
Richard Berger
2021-03-24 15:53:00 -04:00
parent 1c9c46d2c1
commit b15502ddc8
3 changed files with 27 additions and 4 deletions

View File

@ -321,6 +321,12 @@ namespace LAMMPS_NS {
std::vector<std::string> split_words(const std::string &text);
/** Take multi-line text and split into lines
*
* \param text string that should be split
* \return STL vector with the lines */
std::vector<std::string> split_lines(const std::string &text);
/** Check if string can be converted to valid integer
*
* \param str string that should be checked