
Public Member Functions | |
| scanf_format_list (const scanf_format_list &)=delete | |
| scanf_format_list (const std::string &fmt="") | |
| ~scanf_format_list (void) | |
| bool | all_character_conversions (void) |
| bool | all_numeric_conversions (void) |
| const scanf_format_elt * | current (void) const |
| const scanf_format_elt * | first (void) |
| std::size_t | length (void) const |
| const scanf_format_elt * | next (bool cycle=true) |
| octave_idx_type | num_conversions (void) |
| bool | ok (void) const |
| operator bool () const | |
| scanf_format_list & | operator= (const scanf_format_list &)=delete |
| void | printme (void) const |
Private Member Functions | |
| void | add_elt_to_list (int width, bool discard, char type, char modifier, const std::string &char_class="") |
| int | finish_conversion (const std::string &s, std::size_t &i, std::size_t n, int width, bool discard, char &type, char modifier) |
| void | process_conversion (const std::string &s, std::size_t &i, std::size_t n, int &width, bool &discard, char &type, char &modifier) |
Private Attributes | |
| std::ostringstream | m_buf |
| std::size_t | m_curr_idx |
| std::deque< scanf_format_elt * > | m_fmt_elts |
| octave_idx_type | m_nconv |
Definition at line 287 of file oct-stream.cc.
| scanf_format_list::scanf_format_list | ( | const std::string & | fmt = "" | ) |
Definition at line 380 of file oct-stream.cc.
References add_elt_to_list(), scanf_format_elt::literal_conversion, m_buf, m_nconv, n, process_conversion(), and scanf_format_elt::whitespace_conversion.
|
delete |
| scanf_format_list::~scanf_format_list | ( | void | ) |
Definition at line 452 of file oct-stream.cc.
References m_fmt_elts, and n.
|
private |
Definition at line 464 of file oct-stream.cc.
References m_buf, and m_fmt_elts.
Referenced by scanf_format_list(), and finish_conversion().
| bool scanf_format_list::all_character_conversions | ( | void | ) |
Definition at line 696 of file oct-stream.cc.
References scanf_format_elt::literal_conversion, m_fmt_elts, n, scanf_format_elt::type, and scanf_format_elt::whitespace_conversion.
Referenced by base_stream::do_scanf().
| bool scanf_format_list::all_numeric_conversions | ( | void | ) |
Definition at line 726 of file oct-stream.cc.
References m_fmt_elts, n, and scanf_format_elt::type.
|
inline |
Definition at line 317 of file oct-stream.cc.
|
private |
Definition at line 592 of file oct-stream.cc.
References add_elt_to_list(), expand_char_class(), m_buf, m_nconv, and n.
Referenced by process_conversion().
|
inline |
Definition at line 311 of file oct-stream.cc.
Referenced by base_stream::do_scanf(), and base_stream::oscanf().
|
inline |
Definition at line 309 of file oct-stream.cc.
Referenced by base_stream::do_scanf(), and base_stream::oscanf().
|
inline |
Definition at line 322 of file oct-stream.cc.
References scanf_format_elt::null.
Referenced by base_stream::do_scanf(), and base_stream::oscanf().
|
inline |
Definition at line 302 of file oct-stream.cc.
Referenced by base_stream::do_scanf(), base_stream::oscanf(), and base_stream::scanf().
|
inline |
Definition at line 342 of file oct-stream.cc.
|
inline |
Definition at line 344 of file oct-stream.cc.
|
delete |
| void scanf_format_list::printme | ( | void | ) | const |
Definition at line 668 of file oct-stream.cc.
References scanf_format_elt::char_class, scanf_format_elt::discard, scanf_format_elt::literal_conversion, m_fmt_elts, scanf_format_elt::modifier, n, scanf_format_elt::text, scanf_format_elt::type, undo_string_escapes(), scanf_format_elt::whitespace_conversion, and scanf_format_elt::width.
|
private |
Definition at line 484 of file oct-stream.cc.
References finish_conversion(), m_buf, m_nconv, and n.
Referenced by scanf_format_list().
|
private |
Definition at line 376 of file oct-stream.cc.
Referenced by scanf_format_list(), add_elt_to_list(), finish_conversion(), and process_conversion().
|
private |
Definition at line 370 of file oct-stream.cc.
|
private |
Definition at line 373 of file oct-stream.cc.
Referenced by ~scanf_format_list(), add_elt_to_list(), all_character_conversions(), all_numeric_conversions(), and printme().
|
private |
Definition at line 367 of file oct-stream.cc.
Referenced by scanf_format_list(), finish_conversion(), and process_conversion().