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 |
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, size_t &i, 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, size_t &i, size_t n) |
Private Attributes | |
std::ostringstream | buf |
size_t | curr_idx |
std::deque< textscan_format_elt * > | fmt_elts |
octave_idx_type | nconv |
std::list< octave_value > | output_container |
Definition at line 1676 of file oct-stream.cc.
octave::textscan_format_list::textscan_format_list | ( | const std::string & | fmt = std::string () , |
const std::string & | who = "textscan" |
||
) |
Definition at line 1933 of file oct-stream.cc.
References add_elt_to_list(), buf, octave::textscan_format_elt::literal_conversion, n, nconv, process_conversion(), and set_from_first.
|
delete |
octave::textscan_format_list::~textscan_format_list | ( | void | ) |
Definition at line 2033 of file oct-stream.cc.
|
private |
Definition at line 2045 of file oct-stream.cc.
References buf, fmt_elts, and output_container.
Referenced by textscan_format_list(), and finish_conversion().
|
inline |
Definition at line 1706 of file oct-stream.cc.
References numel().
|
private |
Definition at line 2352 of file oct-stream.cc.
References add_elt_to_list(), buf, n, nconv, parse_char_class(), and retval.
Referenced by process_conversion().
|
inline |
Definition at line 1700 of file oct-stream.cc.
Referenced by octave::textscan::read_format_once().
|
inline |
Definition at line 1711 of file oct-stream.cc.
References numel().
Referenced by octave::textscan::read_format_once().
|
inline |
Definition at line 1691 of file oct-stream.cc.
Referenced by octave::textscan::do_scan().
|
inline |
Definition at line 1698 of file oct-stream.cc.
Referenced by ~textscan_format_list(), octave::textscan::do_scan(), printme(), and octave::textscan::read_format_once().
|
inline |
Definition at line 1728 of file oct-stream.cc.
|
inline |
Definition at line 1730 of file oct-stream.cc.
|
delete |
|
inline |
Definition at line 1743 of file oct-stream.cc.
Referenced by octave::textscan::do_scan().
|
private |
Definition at line 2265 of file oct-stream.cc.
References len, Array< T >::resize(), retval, warning_with_id(), and who.
Referenced by finish_conversion().
void octave::textscan_format_list::printme | ( | void | ) | const |
Definition at line 2419 of file oct-stream.cc.
References octave::textscan_format_elt::bitwidth, octave::textscan_format_elt::char_class, octave::textscan_format_elt::discard, fmt_elts, octave::textscan_format_elt::literal_conversion, n, numel(), octave::textscan_format_elt::prec, octave::textscan_format_elt::text, octave::textscan_format_elt::type, octave::undo_string_escapes(), octave::textscan_format_elt::whitespace_conversion, and octave::textscan_format_elt::width.
|
private |
Definition at line 2069 of file oct-stream.cc.
References buf, error(), finish_conversion(), has_string, n, nconv, octave_value(), and who.
Referenced by textscan_format_list().
int octave::textscan_format_list::read_first_row | ( | delimited_stream & | is, |
textscan & | ts | ||
) |
Definition at line 2451 of file oct-stream.cc.
References octave::delimited_stream::clear(), octave::textscan::empty_value, octave::delimited_stream::eof(), octave::textscan::eol1, octave::textscan::eol2, octave::delimited_stream::fail(), fmt_elts, octave::delimited_stream::getline(), nconv, octave::delimited_stream::no_progress(), octave_value(), output_container, octave::delimited_stream::progress_benchmark(), octave::delimited_stream::rdstate(), retval, octave_value::scalar_value(), octave::textscan::scan_complex(), octave::textscan::skip_delim(), and octave::textscan::skip_whitespace().
Referenced by octave::textscan::do_scan().
|
private |
Definition at line 1761 of file oct-stream.cc.
Referenced by textscan_format_list(), add_elt_to_list(), finish_conversion(), and process_conversion().
|
private |
Definition at line 1752 of file oct-stream.cc.
|
private |
Definition at line 1755 of file oct-stream.cc.
Referenced by ~textscan_format_list(), add_elt_to_list(), printme(), and read_first_row().
bool octave::textscan_format_list::has_string |
Definition at line 1739 of file oct-stream.cc.
Referenced by octave::textscan::parse_options(), and process_conversion().
|
private |
Definition at line 1749 of file oct-stream.cc.
Referenced by textscan_format_list(), finish_conversion(), process_conversion(), and read_first_row().
|
private |
Definition at line 1758 of file oct-stream.cc.
Referenced by add_elt_to_list(), and read_first_row().
bool octave::textscan_format_list::set_from_first |
Definition at line 1736 of file oct-stream.cc.
Referenced by textscan_format_list(), and octave::textscan::do_scan().
std::string octave::textscan_format_list::who |
Definition at line 1733 of file oct-stream.cc.
Referenced by parse_char_class(), and process_conversion().