Helper class for make_valid_name
function calls.
More...
#include "utils.h"
Public Member Functions | |
make_valid_name_options ()=default | |
Default options for make_valid_name function calls. More... | |
make_valid_name_options (const octave_value_list &args) | |
Extract attribute-value-pairs from an octave_value_list of strings. More... | |
const std::string & | get_prefix () const |
const std::string & | get_replacement_style () const |
Helper class for make_valid_name
function calls.
Extracting options separately for multiple (e.g. 1000+) function calls avoids expensive repetitive parsing of the very same options.
|
default |
Default options for make_valid_name
function calls.
Calling the constructor without arguments is equivalent to:
make_valid_name_options::make_valid_name_options | ( | const octave_value_list & | args | ) |
Extract attribute-value-pairs from an octave_value_list of strings.
If attributes occur multiple times, the rightmost pair is chosen.
Definition at line 209 of file utils.cc.
References error(), iskeyword(), octave_value_list::length(), transform(), and octave::valid_identifier().
|
inline |
help matlab.lang.makeValidName
. Definition at line 90 of file utils.h.
Referenced by octave::make_valid_name().
|
inline |
help matlab.lang.makeValidName
. Definition at line 86 of file utils.h.
Referenced by octave::make_valid_name().