144 std::string& kw, T& value,
const bool next_only =
false)
153 if (c ==
'%' || c ==
'#')
155 std::ostringstream buf;
157 while (is.get (c) && (c ==
' ' || c ==
'\t' || c ==
'%' || c ==
'#'))
163 while (is.get (c) && isalpha (c))
166 std::string tmp = buf.str ();
168 for (
int i = 0; i < keywords.
numel (); i++)
170 int match = (tmp == keywords[i]);
176 while (is.get (c) && (c ==
' ' || c ==
'\t' || c ==
':'))
180 if (c !=
'\n' && c !=
'\r')
184 octave::skip_until_newline (is,
false);
bool save_text_data_for_plotting(std::ostream &os, const octave_value &t, const std::string &name)
bool save_text_data(std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_global, int precision)
std::string read_text_data(std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count, const bool do_name_validation=true)
std::string extract_keyword(std::istream &is, const char *keyword, const bool next_only=false)
bool save_three_d(std::ostream &os, const octave_value &t, bool parametric=false)