Template Function rcppsw::utils::parse_values
Defined in File string_utils.hpp
Function Documentation
-
template<typename T>
bool rcppsw::utils::parse_values(std::istream &is, size_t n_fields, T *buf, char delim = '\n') Parse values from a delimited string stream into a set of tokens.
- Parameters:
is – The input stream.
n_fields – The # of fields that should exist in the stream.
buf – The buffer to put the tokens into.
delim – The delimiter separating the tokens (\n by default).
- Returns:
TRUE
if n_fields tokens were parsed from the stream, andFALSE
otherwise.