23 #if ! defined (octave_ls_oct_text_h)
24 #define octave_ls_oct_text_h 1
26 #include "octave-config.h"
38 #define CELL_ELT_TAG "<cell-element>"
42 #if ! defined (OCT_RBV)
43 # define OCT_RBV (std::numeric_limits<double>::max () / 100.0)
48 const bool next_only =
false);
64 bool parametric =
false);
76 const bool next_only =
false)
84 if (c ==
'%' || c ==
'#')
86 std::ostringstream buf;
88 while (is.get (c) && (c ==
' ' || c ==
'\t' || c ==
'%' || c ==
'#'))
94 while (is.get (c) && isalpha (c))
98 bool match = (tmp.substr (0,
strlen (keyword)) == keyword);
102 while (is.get (c) && (c ==
' ' || c ==
'\t' || c ==
':'))
106 if (c !=
'\n' && c !=
'\r')
120 template <
typename T>
123 const bool next_only =
false)
136 template <
typename T>
148 if (c ==
'%' || c ==
'#')
150 std::ostringstream buf;
152 while (is.get (c) && (c ==
' ' || c ==
'\t' || c ==
'%' || c ==
'#'))
158 while (is.get (c) && isalpha (c))
163 for (
int i = 0;
i < keywords.
numel ();
i++)
165 int match = (tmp == keywords[
i]);
171 while (is.get (c) && (c ==
' ' || c ==
'\t' || c ==
':'))
175 if (c !=
'\n' && c !=
'\r')
octave_idx_type numel(void) const
Number of elements in the array.
OCTINTERP_API bool save_three_d(std::ostream &os, const octave_value &t, bool parametric=false)
void skip_until_newline(std::istream &is, bool keep_newline)
OCTINTERP_API bool save_text_data_for_plotting(std::ostream &os, const octave_value &t, const std::string &name)
OCTINTERP_API std::string extract_keyword(std::istream &is, const char *keyword, const bool next_only=false)
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
T::size_type strlen(const typename T::value_type *str)
=val(i)}if ode{val(i)}occurs in table i
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by nd tex zero divided by nd ifnottex and any operation involving another NaN value(5+NaN).Note that NaN always compares not equal to NaN(NaN!
OCTINTERP_API bool save_text_data(std::ostream &os, const octave_value &val_arg, const std::string &name, bool mark_as_global, int precision)
OCTINTERP_API std::string read_text_data(std::istream &is, const std::string &filename, bool &global, octave_value &tc, octave_idx_type count)
static const char *const keywords[]
write the output to stdout if nargout is
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string