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) |
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, size_t &i, size_t n, int width, bool discard, char &type, char modifier) |
void | process_conversion (const std::string &s, size_t &i, size_t n, int &width, bool &discard, char &type, char &modifier) |
Private Attributes | |
std::ostringstream | buf |
size_t | curr_idx |
std::deque< scanf_format_elt * > | fmt_elts |
octave_idx_type | nconv |
Definition at line 282 of file oct-stream.cc.
octave::scanf_format_list::scanf_format_list | ( | const std::string & | fmt = "" | ) |
Definition at line 372 of file oct-stream.cc.
References add_elt_to_list(), buf, octave::scanf_format_elt::literal_conversion, n, nconv, process_conversion(), and octave::scanf_format_elt::whitespace_conversion.
|
delete |
octave::scanf_format_list::~scanf_format_list | ( | void | ) |
Definition at line 444 of file oct-stream.cc.
|
private |
Definition at line 456 of file oct-stream.cc.
Referenced by scanf_format_list(), and finish_conversion().
bool octave::scanf_format_list::all_character_conversions | ( | void | ) |
Definition at line 687 of file oct-stream.cc.
References fmt_elts, octave::scanf_format_elt::literal_conversion, n, octave::scanf_format_elt::type, and octave::scanf_format_elt::whitespace_conversion.
Referenced by octave::base_stream::do_scanf().
bool octave::scanf_format_list::all_numeric_conversions | ( | void | ) |
Definition at line 717 of file oct-stream.cc.
References fmt_elts, n, and octave::scanf_format_elt::type.
|
inline |
Definition at line 312 of file oct-stream.cc.
References octave::jit_convention::length.
|
private |
Definition at line 583 of file oct-stream.cc.
References add_elt_to_list(), buf, octave::expand_char_class(), n, nconv, and retval.
Referenced by process_conversion().
|
inline |
Definition at line 306 of file oct-stream.cc.
Referenced by octave::base_stream::do_scanf(), and octave::base_stream::oscanf().
|
inline |
Definition at line 304 of file oct-stream.cc.
Referenced by octave::base_stream::do_scanf(), and octave::base_stream::oscanf().
|
inline |
Definition at line 317 of file oct-stream.cc.
References octave::jit_convention::length, and octave::scanf_format_elt::null.
Referenced by octave::base_stream::do_scanf(), and octave::base_stream::oscanf().
|
inline |
Definition at line 297 of file oct-stream.cc.
Referenced by octave::base_stream::do_scanf(), octave::base_stream::oscanf(), and octave::base_stream::scanf().
|
inline |
Definition at line 337 of file oct-stream.cc.
|
inline |
Definition at line 339 of file oct-stream.cc.
|
delete |
void octave::scanf_format_list::printme | ( | void | ) | const |
Definition at line 659 of file oct-stream.cc.
References octave::scanf_format_elt::char_class, octave::scanf_format_elt::discard, fmt_elts, octave::scanf_format_elt::literal_conversion, octave::scanf_format_elt::modifier, n, octave::scanf_format_elt::text, octave::scanf_format_elt::type, octave::undo_string_escapes(), octave::scanf_format_elt::whitespace_conversion, and octave::scanf_format_elt::width.
|
private |
Definition at line 476 of file oct-stream.cc.
References buf, finish_conversion(), n, and nconv.
Referenced by scanf_format_list().
|
private |
Definition at line 358 of file oct-stream.cc.
Referenced by scanf_format_list(), add_elt_to_list(), finish_conversion(), and process_conversion().
|
private |
Definition at line 352 of file oct-stream.cc.
|
private |
Definition at line 355 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 349 of file oct-stream.cc.
Referenced by scanf_format_list(), finish_conversion(), and process_conversion().