GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Public Member Functions | |
textscan (const std::string &who_arg="textscan") | |
~textscan (void) | |
octave_value | scan (std::istream &isp, const std::string &fmt, octave_idx_type ntimes, const octave_value_list &options, octave_idx_type &read_count) |
Friends | |
class | textscan_format_list |
Definition at line 1800 of file oct-stream.cc.
octave::textscan::textscan | ( | const std::string & | who_arg = "textscan" | ) |
Definition at line 2540 of file oct-stream.cc.
|
inline |
Definition at line 1808 of file oct-stream.cc.
|
private |
|
private |
Definition at line 2576 of file oct-stream.cc.
References buffer_size, collect_output, comment_len, delim_len, delim_table, delims, do_cat_op(), dv, eol1, eol2, err, error(), header_lines, is, lines, max(), min(), multiple_delims_as_one, octave::textscan_format_list::num_conversions(), octave::textscan_format_list::numel(), octave_value(), octave::textscan_format_list::out_buf(), ra_idx, octave::textscan_format_list::read_first_row(), read_format_once(), return_on_error, retval, row, octave::textscan_format_list::set_from_first, size, skip_delim(), string, treat_as_empty_len, and whitespace.
Referenced by scan().
|
inlineprivate |
Definition at line 1927 of file oct-stream.cc.
Referenced by read_format_once(), scan_string(), and skip_delim().
Definition at line 1933 of file oct-stream.cc.
Referenced by parse_options(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 3834 of file oct-stream.cc.
References octave::delimited_stream::clear(), Array< T >::numel(), octave::delimited_stream::read(), s, octave::delimited_stream::seekg(), string, octave::string::strncmp(), octave::delimited_stream::tellg(), and tmp.
Referenced by read_double(), and skip_delim().
|
private |
Definition at line 3946 of file oct-stream.cc.
References octave::delimited_stream::get_undelim(), octave::delimited_stream::putback(), octave::delimited_stream::setstate(), skip_whitespace(), octave::textscan_format_elt::text, and octave::textscan_format_elt::width.
Referenced by read_format_once().
|
private |
Definition at line 3544 of file oct-stream.cc.
References buffer_size, collect_output, comment_char, comment_len, comment_style, default_exp, delim_len, delim_list, delim_table, delims, do_string_escapes(), empty_value, eol1, eol2, error(), exp_chars, octave::textscan_format_list::has_string, header_lines, isspace(), k, octave_value_list::length(), Array< T >::length(), max(), multiple_delims_as_one, Array< T >::numel(), param, return_on_error, s, Array< T >::size(), string, transform(), treat_as_empty, treat_as_empty_len, whitespace, and whitespace_table.
Referenced by scan().
|
private |
Definition at line 2779 of file oct-stream.cc.
References octave::delimited_stream::clear(), exp_chars, octave::delimited_stream::get(), Inf, inf_nan, lookahead(), NaN(), octave::delimited_stream::peek(), pown(), octave::textscan_format_elt::prec, octave::delimited_stream::putback(), octave::delimited_stream::rdstate(), retval, octave::delimited_stream::setstate(), and octave::textscan_format_elt::width.
Referenced by scan_complex(), and scan_one().
|
private |
Definition at line 3434 of file oct-stream.cc.
References octave::delimited_stream::clear(), octave::textscan_format_elt::discard, done, elem, octave::delimited_stream::eof(), error(), octave::delimited_stream::fail(), octave::textscan_format_list::first(), is_delim(), octave::textscan_format_elt::literal_conversion, match_literal(), octave::textscan_format_list::next(), octave::textscan_format_list::numel(), octave::delimited_stream::peek(), octave::delimited_stream::rdstate(), scan_one(), octave::delimited_stream::setstate(), skip_delim(), octave::delimited_stream::tellg(), octave::textscan_format_elt::type, and warning().
Referenced by do_scan().
|
private |
Definition at line 3116 of file oct-stream.cc.
References done, octave::delimited_stream::eof(), octave::delimited_stream::get_undelim(), next, Array< T >::numel(), retval, scan_caret(), start, and string.
Referenced by scan_string().
octave_value octave::textscan::scan | ( | std::istream & | isp, |
const std::string & | fmt, | ||
octave_idx_type | ntimes, | ||
const octave_value_list & | options, | ||
octave_idx_type & | read_count | ||
) |
Definition at line 2553 of file oct-stream.cc.
References do_scan(), parse_options(), result, and state.
Referenced by octave_base_stream::do_textscan().
|
private |
Definition at line 3198 of file oct-stream.cc.
References octave::delimited_stream::get_undelim(), and octave::delimited_stream::putback().
Referenced by scan_one().
|
private |
Definition at line 3091 of file oct-stream.cc.
References octave::delimited_stream::eof(), octave::delimited_stream::get_undelim(), and octave::delimited_stream::putback().
Referenced by read_until(), scan_one(), scan_qstring(), and skip_whitespace().
|
private |
Definition at line 2950 of file oct-stream.cc.
References octave::delimited_stream::clear(), empty_value, octave::delimited_stream::eof(), octave::delimited_stream::fail(), octave::delimited_stream::get(), Inf, octave::math::is_NaN_or_NA(), Array< T >::numel(), octave::delimited_stream::peek(), octave::delimited_stream::putback(), octave::delimited_stream::rdstate(), octave::delimited_stream::read(), read_double(), s, octave_value::scalar_value(), octave::delimited_stream::seekg(), state, string, octave::string::strncmp(), octave::delimited_stream::tellg(), treat_as_empty, treat_as_empty_len, and value().
Referenced by octave::textscan_format_list::read_first_row(), and scan_one().
|
private |
Definition at line 3246 of file oct-stream.cc.
References octave::delimited_stream::get_undelim(), and octave::textscan_format_elt::width.
Referenced by scan_one().
|
private |
Definition at line 3267 of file oct-stream.cc.
References octave::textscan_format_elt::bitwidth, octave::textscan_format_elt::char_class, octave::delimited_stream::clear(), octave::textscan_format_elt::discard, do_cat_op(), empty_value, octave::delimited_stream::fail(), octave_base_value::fast_elem_insert(), octave::delimited_stream::field_done(), octave_value::internal_rep(), octave_value::is_real_type(), octave::textscan_format_elt::numeric, octave::delimited_stream::rdstate(), read_double(), row, scan_bracket(), scan_caret(), scan_complex(), scan_cstring(), scan_qstring(), scan_string(), skip_whitespace(), string, octave::textscan_format_elt::type, and val.
Referenced by read_format_once().
|
private |
Definition at line 3218 of file oct-stream.cc.
References octave::delimited_stream::get(), octave::delimited_stream::get_undelim(), octave::delimited_stream::peek(), scan_caret(), scan_string(), skip_whitespace(), and string.
Referenced by scan_one().
|
private |
Definition at line 3160 of file oct-stream.cc.
References delim_list, octave::delimited_stream::get(), is_delim(), Array< T >::is_empty(), Array< T >::numel(), octave::delimited_stream::putback(), read_until(), string, tmp, and octave::textscan_format_elt::width.
Referenced by scan_one(), and scan_qstring().
|
private |
Definition at line 3872 of file oct-stream.cc.
References delim_len, delim_list, eol1, eol2, octave::delimited_stream::get(), octave::delimited_stream::get_undelim(), is_delim(), isspace(), lines, lookahead(), multiple_delims_as_one, Array< T >::numel(), octave::delimited_stream::peek_undelim(), octave::delimited_stream::putback(), and skip_whitespace().
Referenced by do_scan(), octave::textscan_format_list::read_first_row(), and read_format_once().
|
private |
Definition at line 3749 of file oct-stream.cc.
References octave::delimited_stream::clear(), comment_char, comment_len, comment_style, octave::delimited_stream::eof(), eol1, eol2, octave::delimited_stream::get_undelim(), isspace(), lines, Array< T >::numel(), octave::delimited_stream::peek_undelim(), octave::delimited_stream::putback(), octave::delimited_stream::rdstate(), octave::delimited_stream::read(), scan_caret(), octave::delimited_stream::seekg(), start, state, string, octave::string::strncmp(), octave::delimited_stream::tellg(), and tmp.
Referenced by match_literal(), octave::textscan_format_list::read_first_row(), scan_one(), scan_qstring(), and skip_delim().
|
inlineprivate |
Definition at line 1936 of file oct-stream.cc.
|
friend |
Definition at line 1817 of file oct-stream.cc.
|
private |
Definition at line 1822 of file oct-stream.cc.
|
private |
Definition at line 1845 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1872 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1843 of file oct-stream.cc.
Referenced by parse_options(), and skip_whitespace().
|
private |
Definition at line 1840 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and skip_whitespace().
|
private |
Definition at line 1837 of file oct-stream.cc.
Referenced by parse_options(), and skip_whitespace().
|
private |
Definition at line 1847 of file oct-stream.cc.
|
private |
Definition at line 1874 of file oct-stream.cc.
Referenced by parse_options().
|
private |
Definition at line 1856 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and skip_delim().
|
private |
Definition at line 1853 of file oct-stream.cc.
Referenced by parse_options(), scan_string(), and skip_delim().
|
private |
Definition at line 1832 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1835 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1858 of file oct-stream.cc.
Referenced by parse_options(), octave::textscan_format_list::read_first_row(), scan_complex(), and scan_one().
|
private |
Definition at line 1868 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), octave::textscan_format_list::read_first_row(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 1869 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), octave::textscan_format_list::read_first_row(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 1859 of file oct-stream.cc.
Referenced by parse_options(), and read_double().
|
private |
Definition at line 1860 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1850 of file oct-stream.cc.
Referenced by read_double().
|
private |
Definition at line 1877 of file oct-stream.cc.
Referenced by do_scan(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 1873 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and skip_delim().
|
private |
Definition at line 1875 of file oct-stream.cc.
|
private |
Definition at line 1870 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1861 of file oct-stream.cc.
Referenced by parse_options(), and scan_complex().
|
private |
Definition at line 1864 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and scan_complex().
|
private |
Definition at line 1866 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1829 of file oct-stream.cc.
Referenced by parse_options().
|
private |
Definition at line 1820 of file oct-stream.cc.