#include "octave-config.h"
#include <cstdarg>
#include <iosfwd>
#include <string>
#include <list>
#include "dMatrix.h"
#include "lo-utils.h"
Go to the source code of this file.
Functions | |
OCTINTERP_API int | almost_match (const std::string &std, const std::string &s, int min_match_len=1, int case_sens=1) |
OCTINTERP_API void | check_dimensions (dim_vector &dim, const char *warnfor) |
OCTINTERP_API std::string | contents_file_in_path (const std::string &) |
OCTINTERP_API octave_idx_type | dims_to_numel (const dim_vector &dims, const octave_value_list &idx) |
OCTINTERP_API octave_value_list | do_simple_cellfun (octave_value_list(*fun)(const octave_value_list &, int), const char *fun_name, const octave_value_list &args, int nargout) |
OCTINTERP_API octave_value | do_simple_cellfun (octave_value_list(*fun)(const octave_value_list &, int), const char *fun_name, const octave_value_list &args) |
OCTINTERP_API std::string | do_string_escapes (const std::string &s) |
OCTINTERP_API int | empty_arg (const char *name, octave_idx_type nr, octave_idx_type nc) |
OCTINTERP_API std::string | fcn_file_in_path (const std::string &) |
OCTINTERP_API std::string | file_in_path (const std::string &, const std::string &) |
OCTINTERP_API std::string | find_data_file_in_load_path (const std::string &fcn, const std::string &file, bool require_regular_file=false) |
OCTINTERP_API FloatMatrix | float_identity_matrix (octave_idx_type nr, octave_idx_type nc) |
OCTINTERP_API void | get_dimensions (const octave_value &a, const char *warn_for, dim_vector &dim) |
OCTINTERP_API void | get_dimensions (const octave_value &a, const octave_value &b, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc) |
OCTINTERP_API void | get_dimensions (const octave_value &a, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc) |
OCTINTERP_API Matrix | identity_matrix (octave_idx_type nr, octave_idx_type nc) |
OCTINTERP_API int | keyword_almost_match (const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks) |
OCTINTERP_API std::string | mex_file_in_path (const std::string &) |
OCTINTERP_API std::string | oct_file_in_path (const std::string &) |
OCTINTERP_API std::string | octave_asprintf (const char *fmt,...) |
OCTINTERP_API size_t | octave_format (std::ostream &os, const char *fmt,...) |
OCTINTERP_API void | octave_sleep (double seconds) |
OCTINTERP_API std::string | octave_vasprintf (const char *fmt, va_list args) |
OCTINTERP_API size_t | octave_vformat (std::ostream &os, const char *fmt, va_list args) |
OCTINTERP_API bool | same_file (const std::string &f, const std::string &g) |
OCTINTERP_API string_vector | search_path_for_all_files (const std::string &, const string_vector &) |
OCTINTERP_API std::string | search_path_for_file (const std::string &, const string_vector &) |
OCTINTERP_API const char * | undo_string_escape (char c) |
OCTINTERP_API std::string | undo_string_escapes (const std::string &s) |
OCTINTERP_API bool | valid_identifier (const char *s) |
OCTINTERP_API bool | valid_identifier (const std::string &s) |
OCTINTERP_API int almost_match | ( | const std::string & | std, |
const std::string & | s, | ||
int | min_match_len = 1 , |
||
int | case_sens = 1 |
||
) |
Definition at line 136 of file utils.cc.
References octave_strncasecmp(), s, and octave::string::strncmp().
Referenced by keyword_almost_match().
OCTINTERP_API void check_dimensions | ( | dim_vector & | dim, |
const char * | warnfor | ||
) |
OCTINTERP_API std::string contents_file_in_path | ( | const std::string & | ) |
OCTINTERP_API octave_idx_type dims_to_numel | ( | const dim_vector & | dims, |
const octave_value_list & | idx | ||
) |
Referenced by octave_base_value::numel().
OCTINTERP_API octave_value_list do_simple_cellfun | ( | octave_value_list(*)(const octave_value_list &, int) | fun, |
const char * | fun_name, | ||
const octave_value_list & | args, | ||
int | nargout | ||
) |
Referenced by pattern().
OCTINTERP_API octave_value do_simple_cellfun | ( | octave_value_list(*)(const octave_value_list &, int) | fun, |
const char * | fun_name, | ||
const octave_value_list & | args | ||
) |
OCTINTERP_API std::string do_string_escapes | ( | const std::string & | s | ) |
OCTINTERP_API int empty_arg | ( | const char * | name, |
octave_idx_type | nr, | ||
octave_idx_type | nc | ||
) |
OCTINTERP_API std::string fcn_file_in_path | ( | const std::string & | ) |
Referenced by octave::tree_evaluator::echo().
OCTINTERP_API std::string file_in_path | ( | const std::string & | , |
const std::string & | |||
) |
Referenced by symbol_exist().
OCTINTERP_API std::string find_data_file_in_load_path | ( | const std::string & | fcn, |
const std::string & | file, | ||
bool | require_regular_file = false |
||
) |
Referenced by find_file_to_load().
OCTINTERP_API FloatMatrix float_identity_matrix | ( | octave_idx_type | nr, |
octave_idx_type | nc | ||
) |
Referenced by Fgsvd().
OCTINTERP_API void get_dimensions | ( | const octave_value & | a, |
const char * | warn_for, | ||
dim_vector & | dim | ||
) |
Referenced by sparse().
OCTINTERP_API void get_dimensions | ( | const octave_value & | a, |
const octave_value & | b, | ||
const char * | warn_for, | ||
octave_idx_type & | nr, | ||
octave_idx_type & | nc | ||
) |
OCTINTERP_API void get_dimensions | ( | const octave_value & | a, |
const char * | warn_for, | ||
octave_idx_type & | nr, | ||
octave_idx_type & | nc | ||
) |
OCTINTERP_API Matrix identity_matrix | ( | octave_idx_type | nr, |
octave_idx_type | nc | ||
) |
Referenced by Fgsvd().
OCTINTERP_API int keyword_almost_match | ( | const char *const * | std, |
int * | min_len, | ||
const std::string & | s, | ||
int | min_toks_to_match, | ||
int | max_toks | ||
) |
OCTINTERP_API std::string mex_file_in_path | ( | const std::string & | ) |
OCTINTERP_API std::string oct_file_in_path | ( | const std::string & | ) |
OCTINTERP_API std::string octave_asprintf | ( | const char * | fmt, |
... | |||
) |
OCTINTERP_API size_t octave_format | ( | std::ostream & | os, |
const char * | fmt, | ||
... | |||
) |
Referenced by octave::do_printf_conv().
OCTINTERP_API void octave_sleep | ( | double | seconds | ) |
Referenced by octave::file_editor_tab::exit_debug_and_clear(), QtHandles::ObjectProxy::get_pixels(), and while().
OCTINTERP_API std::string octave_vasprintf | ( | const char * | fmt, |
va_list | args | ||
) |
OCTINTERP_API size_t octave_vformat | ( | std::ostream & | os, |
const char * | fmt, | ||
va_list | args | ||
) |
Referenced by mexPrintf(), verror(), and vwarning().
OCTINTERP_API bool same_file | ( | const std::string & | f, |
const std::string & | g | ||
) |
Definition at line 130 of file utils.cc.
References f, and same_file_internal().
Referenced by octave::load_path::contains_canonical(), octave::file_editor::find_tab_widget(), and octave::out_of_date_check().
OCTINTERP_API string_vector search_path_for_all_files | ( | const std::string & | , |
const string_vector & | |||
) |
Definition at line 257 of file utils.cc.
References i, octave::sys::env::make_absolute(), Array< T >::numel(), p, and string_vector::std_list().
OCTINTERP_API std::string search_path_for_file | ( | const std::string & | , |
const string_vector & | |||
) |
Definition at line 247 of file utils.cc.
References octave::sys::env::make_absolute(), p, and string_vector::std_list().
Referenced by have_gnuplot_binary().
OCTINTERP_API const char* undo_string_escape | ( | char | c | ) |
OCTINTERP_API std::string undo_string_escapes | ( | const std::string & | s | ) |
OCTINTERP_API bool valid_identifier | ( | const char * | s | ) |
Definition at line 74 of file utils.cc.
References s.
Referenced by octave::file_editor_tab::check_valid_identifier(), octave::octave_cmd_eval::execute(), octave::get_fcn_files(), octave::load_path::dir_info::get_file_list(), hdf5_read_next_data_internal(), if(), maybe_warn_invalid_field_name(), read_mat_ascii_data(), read_text_data(), octave::workspace_model::setData(), and valid_identifier().
OCTINTERP_API bool valid_identifier | ( | const std::string & | s | ) |
Definition at line 87 of file utils.cc.
References s, and valid_identifier().