Public Member Functions | |
textscan (const std::string &who_arg="textscan") | |
textscan (const textscan &)=delete | |
~textscan (void)=default | |
textscan & | operator= (const textscan &)=delete |
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 1764 of file oct-stream.cc.
octave::textscan::textscan | ( | const std::string & | who_arg = "textscan" | ) |
Definition at line 2502 of file oct-stream.cc.
|
delete |
|
default |
|
private |
Definition at line 2537 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, i, 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, skip_delim(), string, treat_as_empty_len, whitespace, and who.
Referenced by scan().
|
inlineprivate |
Definition at line 1896 of file oct-stream.cc.
Referenced by read_format_once(), scan_string(), and skip_delim().
|
inlineprivate |
Definition at line 1902 of file oct-stream.cc.
Referenced by parse_options(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 3821 of file oct-stream.cc.
References i, is, Array< T >::numel(), s, string, octave::string::strncmp(), and tmp.
Referenced by read_double(), read_format_once(), and skip_delim().
|
private |
Definition at line 3933 of file oct-stream.cc.
References i, is, skip_whitespace(), octave::textscan_format_elt::text, and octave::textscan_format_elt::width.
Referenced by read_format_once().
|
private |
Definition at line 3512 of file oct-stream.cc.
References buffer_size, octave_value_list::cell_value(), 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, i, 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, whitespace_table, and who.
Referenced by scan().
|
private |
Definition at line 2738 of file oct-stream.cc.
References exp_chars, i, Inf, inf_nan, is, lookahead(), NaN(), octave::pown(), octave::textscan_format_elt::prec, retval, and octave::textscan_format_elt::width.
Referenced by scan_complex(), and scan_one().
|
private |
Definition at line 3388 of file oct-stream.cc.
References delim_len, delim_list, done, elem, error(), octave::textscan_format_list::first(), i, is, is_delim(), Array< T >::isempty(), octave::textscan_format_elt::literal_conversion, lookahead(), match_literal(), octave::textscan_format_list::next(), octave::textscan_format_list::numel(), retval, row, scan_one(), skip_delim(), warning(), and who.
Referenced by do_scan().
|
private |
Definition at line 3059 of file oct-stream.cc.
References done, eol1, eol2, i, is, octave_value::length(), 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 2514 of file oct-stream.cc.
References do_scan(), options, parse_options(), result, and state.
Referenced by octave::base_stream::do_textscan().
|
private |
Definition at line 3152 of file oct-stream.cc.
References is, pattern(), and val.
Referenced by scan_one().
|
private |
Definition at line 3034 of file oct-stream.cc.
References is, pattern(), and val.
Referenced by read_until(), scan_one(), scan_qstring(), and skip_whitespace().
|
private |
Definition at line 2893 of file oct-stream.cc.
References empty_value, i, Inf, is, octave::math::is_NaN_or_NA(), Array< T >::numel(), read_double(), s, octave_value::scalar_value(), state, string, octave::string::strncmp(), treat_as_empty, treat_as_empty_len, val, and value.
Referenced by octave::textscan_format_list::read_first_row(), and scan_one().
|
private |
Definition at line 3200 of file oct-stream.cc.
References i, is, val, and octave::textscan_format_elt::width.
Referenced by scan_one().
|
private |
Definition at line 3221 of file oct-stream.cc.
References octave::textscan_format_elt::bitwidth, octave::textscan_format_elt::char_class, octave::textscan_format_elt::discard, do_cat_op(), empty_value, octave_base_value::fast_elem_insert(), octave_value::internal_rep(), is, octave_value::isreal(), octave::textscan_format_elt::numeric, 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 3172 of file oct-stream.cc.
References is, scan_caret(), scan_string(), skip_whitespace(), string, and val.
Referenced by scan_one().
|
private |
Definition at line 3108 of file oct-stream.cc.
References delim_list, eol1, eol2, i, is, is_delim(), Array< T >::isempty(), max(), Array< T >::numel(), read_until(), string, tmp, val, and octave::textscan_format_elt::width.
Referenced by scan_one(), and scan_qstring().
|
private |
Definition at line 3859 of file oct-stream.cc.
References delim_len, delim_list, eol1, eol2, is, is_delim(), isspace(), lines, lookahead(), multiple_delims_as_one, Array< T >::numel(), and skip_whitespace().
Referenced by do_scan(), octave::textscan_format_list::read_first_row(), and read_format_once().
|
private |
Definition at line 3735 of file oct-stream.cc.
References comment_char, comment_len, comment_style, eol1, eol2, is, isspace(), lines, Array< T >::numel(), scan_caret(), start, state, string, octave::string::strncmp(), and tmp.
Referenced by match_literal(), octave::textscan_format_list::read_first_row(), scan_one(), scan_qstring(), and skip_delim().
|
inlineprivate |
Definition at line 1905 of file oct-stream.cc.
|
friend |
Definition at line 1787 of file oct-stream.cc.
|
private |
Definition at line 1792 of file oct-stream.cc.
|
private |
Definition at line 1815 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1842 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1813 of file oct-stream.cc.
Referenced by parse_options(), and skip_whitespace().
|
private |
Definition at line 1810 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and skip_whitespace().
|
private |
Definition at line 1807 of file oct-stream.cc.
Referenced by parse_options(), and skip_whitespace().
|
private |
Definition at line 1817 of file oct-stream.cc.
|
private |
Definition at line 1844 of file oct-stream.cc.
Referenced by parse_options().
|
private |
Definition at line 1826 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), read_format_once(), and skip_delim().
|
private |
Definition at line 1823 of file oct-stream.cc.
Referenced by parse_options(), read_format_once(), scan_string(), and skip_delim().
|
private |
Definition at line 1802 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1805 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1828 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 1838 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), octave::textscan_format_list::read_first_row(), read_until(), scan_string(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 1839 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), octave::textscan_format_list::read_first_row(), read_until(), scan_string(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 1829 of file oct-stream.cc.
Referenced by parse_options(), and read_double().
|
private |
Definition at line 1830 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1820 of file oct-stream.cc.
Referenced by read_double().
|
private |
Definition at line 1846 of file oct-stream.cc.
Referenced by do_scan(), skip_delim(), and skip_whitespace().
|
private |
Definition at line 1843 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and skip_delim().
|
private |
Definition at line 1840 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1831 of file oct-stream.cc.
Referenced by parse_options(), and scan_complex().
|
private |
Definition at line 1834 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and scan_complex().
|
private |
Definition at line 1836 of file oct-stream.cc.
Referenced by do_scan(), and parse_options().
|
private |
Definition at line 1799 of file oct-stream.cc.
Referenced by parse_options().
|
private |
Definition at line 1790 of file oct-stream.cc.
Referenced by do_scan(), parse_options(), and read_format_once().