Public Member Functions | |
textscan_format_list (const std::string &fmt=std::string(), const std::string &who="textscan") | |
textscan_format_list (const textscan_format_list &)=delete | |
~textscan_format_list (void) | |
const textscan_format_elt * | current (void) const |
const textscan_format_elt * | first (void) |
const textscan_format_elt * | next (bool cycle=true) |
octave_idx_type | num_conversions (void) const |
std::size_t | numel (void) const |
bool | ok (void) const |
operator const void * (void) const | |
textscan_format_list & | operator= (const textscan_format_list &)=delete |
std::list< octave_value > | out_buf (void) const |
void | printme (void) const |
int | read_first_row (delimited_stream &is, textscan &ts) |
Public Attributes | |
bool | has_string |
bool | set_from_first |
std::string | who |
Private Member Functions | |
void | add_elt_to_list (unsigned int width, int prec, int bitwidth, octave_value val_type, bool discard, char type, const std::string &char_class=std::string()) |
int | finish_conversion (const std::string &s, std::size_t &i, std::size_t n, unsigned int width, int prec, int bitwidth, octave_value &val_type, bool discard, char &type) |
std::string | parse_char_class (const std::string &pattern) const |
void | process_conversion (const std::string &s, std::size_t &i, std::size_t n) |
Private Attributes | |
std::ostringstream | m_buf |
std::size_t | m_curr_idx |
std::deque< textscan_format_elt * > | m_fmt_elts |
octave_idx_type | m_nconv |
std::list< octave_value > | m_output_container |
Definition at line 1725 of file oct-stream.cc.
textscan_format_list::textscan_format_list | ( | const std::string & | fmt = std::string () , |
const std::string & | who = "textscan" |
||
) |
Definition at line 1991 of file oct-stream.cc.
References add_elt_to_list(), textscan_format_elt::literal_conversion, m_buf, m_nconv, n, process_conversion(), and set_from_first.
|
delete |
textscan_format_list::~textscan_format_list | ( | void | ) |
Definition at line 2091 of file oct-stream.cc.
References m_fmt_elts, n, and numel().
|
private |
Definition at line 2103 of file oct-stream.cc.
References m_buf, m_fmt_elts, and m_output_container.
Referenced by textscan_format_list(), and finish_conversion().
|
inline |
Definition at line 1755 of file oct-stream.cc.
References numel().
|
private |
Definition at line 2410 of file oct-stream.cc.
References add_elt_to_list(), m_buf, m_nconv, n, and parse_char_class().
Referenced by process_conversion().
|
inline |
Definition at line 1749 of file oct-stream.cc.
Referenced by textscan::read_format_once().
|
inline |
Definition at line 1760 of file oct-stream.cc.
References numel().
Referenced by textscan::read_format_once().
|
inline |
Definition at line 1740 of file oct-stream.cc.
Referenced by textscan::do_scan().
|
inline |
Definition at line 1747 of file oct-stream.cc.
Referenced by ~textscan_format_list(), textscan::do_scan(), printme(), and textscan::read_format_once().
|
inline |
Definition at line 1777 of file oct-stream.cc.
Referenced by printf_value_cache::operator bool().
|
inline |
Definition at line 1779 of file oct-stream.cc.
|
delete |
|
inline |
Definition at line 1792 of file oct-stream.cc.
Referenced by textscan::do_scan().
|
private |
Definition at line 2323 of file oct-stream.cc.
References len, warning_with_id(), and who.
Referenced by finish_conversion().
void textscan_format_list::printme | ( | void | ) | const |
Definition at line 2477 of file oct-stream.cc.
References textscan_format_elt::bitwidth, textscan_format_elt::char_class, textscan_format_elt::discard, textscan_format_elt::literal_conversion, m_fmt_elts, n, numel(), textscan_format_elt::prec, textscan_format_elt::text, textscan_format_elt::type, undo_string_escapes(), textscan_format_elt::whitespace_conversion, and textscan_format_elt::width.
|
private |
Definition at line 2127 of file oct-stream.cc.
References error(), finish_conversion(), has_string, m_buf, m_nconv, n, octave_value(), and who.
Referenced by textscan_format_list().
int textscan_format_list::read_first_row | ( | delimited_stream & | is, |
textscan & | ts | ||
) |
Definition at line 2509 of file oct-stream.cc.
References delimited_stream::clear(), delimited_stream::eof(), delimited_stream::fail(), delimited_stream::getline(), textscan::m_empty_value, textscan::m_eol1, textscan::m_eol2, m_fmt_elts, m_nconv, m_output_container, delimited_stream::no_progress(), octave_value(), delimited_stream::progress_benchmark(), delimited_stream::rdstate(), octave_value::scalar_value(), textscan::scan_complex(), textscan::skip_delim(), and textscan::skip_whitespace().
Referenced by textscan::do_scan().
bool textscan_format_list::has_string |
Definition at line 1788 of file oct-stream.cc.
Referenced by textscan::parse_options(), and process_conversion().
|
private |
Definition at line 1828 of file oct-stream.cc.
Referenced by textscan_format_list(), add_elt_to_list(), finish_conversion(), and process_conversion().
|
private |
Definition at line 1819 of file oct-stream.cc.
|
private |
Definition at line 1822 of file oct-stream.cc.
Referenced by ~textscan_format_list(), add_elt_to_list(), printme(), and read_first_row().
|
private |
Definition at line 1816 of file oct-stream.cc.
Referenced by textscan_format_list(), base_stream::do_printf(), base_stream::do_scanf(), finish_conversion(), base_stream::oscanf(), process_conversion(), and read_first_row().
|
private |
Definition at line 1825 of file oct-stream.cc.
Referenced by add_elt_to_list(), and read_first_row().
bool textscan_format_list::set_from_first |
Definition at line 1785 of file oct-stream.cc.
Referenced by textscan_format_list(), and textscan::do_scan().
std::string textscan_format_list::who |
Definition at line 1782 of file oct-stream.cc.
Referenced by printf_value_cache::printf_value_cache(), base_stream::do_gets(), base_stream::do_numeric_printf_conv(), base_stream::do_oscanf(), base_stream::do_printf(), do_printf_conv(), do_printf_string(), base_stream::do_scanf(), base_stream::do_textscan(), base_stream::error(), base_stream::field_width_error(), base_stream::getl(), stream::getl(), base_stream::gets(), stream::gets(), base_stream::invalid_operation(), base_stream::oscanf(), parse_char_class(), base_stream::printf(), process_conversion(), base_stream::puts(), base_stream::scanf(), base_stream::skipl(), and stream::skipl().