#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.
Classes | |
class | make_valid_name_options |
Helper class for make_valid_name function calls. More... | |
Functions | |
int | almost_match (const std::string &std, const std::string &s, int min_match_len=1, int case_sens=1) |
std::string | asprintf (const char *fmt,...) |
void | check_dimensions (dim_vector &dim, const char *warnfor) |
std::string | contents_file_in_path (const std::string &) |
octave_idx_type | dims_to_numel (const dim_vector &dims, const octave_value_list &idx) |
void | display_file_lines (std::ostream &os, const std::string &file_name, int start, int end, int target_line, const std::string &marker, const std::string &who) |
octave_value | do_simple_cellfun (octave_value_list(*fcn)(const octave_value_list &, int), const char *fcn_name, const octave_value_list &args) |
octave_value_list | do_simple_cellfun (octave_value_list(*fcn)(const octave_value_list &, int), const char *fcn_name, const octave_value_list &args, int nargout) |
std::string | do_string_escapes (const std::string &s) |
std::string | fcn_file_in_path (const std::string &) |
std::string | file_in_path (const std::string &, const std::string &) |
std::string | find_data_file_in_load_path (const std::string &fcn, const std::string &file, bool require_regular_file=false) |
FloatMatrix | float_identity_matrix (octave_idx_type nr, octave_idx_type nc) |
std::size_t | format (std::ostream &os, const char *fmt,...) |
void | get_dimensions (const octave_value &a, const char *warn_for, dim_vector &dim) |
void | get_dimensions (const octave_value &a, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc) |
void | get_dimensions (const octave_value &a, const octave_value &b, const char *warn_for, octave_idx_type &nr, octave_idx_type &nc) |
Matrix | identity_matrix (octave_idx_type nr, octave_idx_type nc) |
int | keyword_almost_match (const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks) |
bool | make_valid_name (std::string &str, const make_valid_name_options &options) |
Modify str to be a valid variable name. | |
bool | same_file (const std::string &f, const std::string &g) |
string_vector | search_path_for_all_files (const std::string &, const string_vector &) |
std::string | search_path_for_file (const std::string &, const string_vector &) |
void | sleep (double seconds, bool do_graphics_events=false) |
const char * | undo_string_escape (char c) |
std::string | undo_string_escapes (const std::string &s) |
bool | valid_identifier (const char *s) |
bool | valid_identifier (const std::string &s) |
std::string | vasprintf (const char *fmt, va_list args) |
std::size_t | vformat (std::ostream &os, const char *fmt, va_list args) |
|
extern |
Definition at line 412 of file utils.cc.
References octave_strncasecmp(), and strncmp().
Referenced by keyword_almost_match().
|
extern |
Definition at line 1557 of file utils.cc.
References vasprintf().
|
extern |
Definition at line 1358 of file utils.cc.
References dim_vector::ndims(), and warning_with_id().
Referenced by Fcell().
|
extern |
Definition at line 788 of file utils.cc.
References __get_load_path__(), and load_path::find_dir().
|
extern |
Definition at line 1442 of file utils.cc.
References error(), octave_value::index_vector(), octave_value::is_magic_colon(), octave_value::isnumeric(), len, octave_value_list::length(), idx_vector::length(), octave_value::numel(), dim_vector::numel(), and dim_vector::redim().
Referenced by Fnumel().
|
extern |
Definition at line 807 of file utils.cc.
Referenced by stack_frame::debug_list(), and stack_frame::debug_type().
|
extern |
Definition at line 1776 of file utils.cc.
References do_simple_cellfun(), and octave_value_list::length().
|
extern |
Definition at line 1708 of file utils.cc.
References octave_value::cell_value(), Array< T, Alloc >::dims(), error(), octave_value::iscell(), octave_value_list::length(), Array< T, Alloc >::numel(), numel(), OCTAVE_LOCAL_BUFFER, and octave_value_list::resize().
Referenced by do_simple_cellfun(), Fstrfind(), and Fstrrep().
|
extern |
Definition at line 838 of file utils.cc.
References len, and warning().
Referenced by Fdlmread(), Fdo_string_escapes(), stream::oscanf(), stream::printf(), and stream::scanf().
|
extern |
Definition at line 749 of file utils.cc.
References __get_load_path__(), load_path::find_fcn_file(), and len.
Referenced by tree_evaluator::echo(), and get_help_from_file().
|
extern |
Definition at line 698 of file utils.cc.
References __get_load_path__(), and load_path::find_file().
|
extern |
Definition at line 711 of file utils.cc.
References __get_load_path__(), load_path::find_file(), and warn_data_file_in_path().
Referenced by Fdlmread().
|
extern |
|
extern |
Definition at line 1514 of file utils.cc.
References vformat().
Referenced by symbol_info_list::display(), F__magick_finfo__(), Faudiodevinfo(), opengl_functions::glDrawPixels(), opengl_functions::glReadPixels(), opengl_functions::glTexImage2D(), load_save_system::load(), symbol_info_list::parse_whos_line_format(), load_save_system::save(), and load_save_system::save_header_format_string().
|
extern |
Definition at line 1377 of file utils.cc.
References octave_value::dims(), error(), dim_vector::isvector(), Array< T, Alloc >::numel(), dim_vector::numel(), octave_value::octave_idx_type_vector_value(), and dim_vector::resize().
|
extern |
Definition at line 1407 of file utils.cc.
References octave_value::columns(), error(), octave_value::idx_type_value(), octave_value::is_scalar_type(), octave_value::octave_idx_type_vector_value(), and octave_value::rows().
|
extern |
Definition at line 1431 of file utils.cc.
References octave_value::idx_type_value(), and octave_value::isempty().
|
extern |
|
extern |
Definition at line 428 of file utils.cc.
References almost_match(), and strsave().
|
extern |
Modify str
to be a valid variable name.
str | input string |
options | see also help matlab.lang.makeValidName . |
str
was modified. Definition at line 137 of file utils.cc.
References make_valid_name_options::get_prefix(), make_valid_name_options::get_replacement_style(), iskeyword(), valid_identifier(), and x.
Referenced by F__make_valid_name__().
|
extern |
|
extern |
Definition at line 528 of file utils.cc.
References directory_path::find_all_first_of(), len, string_vector::numel(), and string_vector::std_list().
Referenced by Ffile_in_path().
|
extern |
Definition at line 517 of file utils.cc.
References directory_path::find_first_of(), and string_vector::std_list().
Referenced by Ffile_in_path().
Definition at line 1577 of file utils.cc.
References __get_gh_manager__(), flush_stdout(), kbhit(), octave_nanosleep_wrapper(), gh_manager::process_events(), and gh_manager::unlock().
Referenced by Fpause(), and tree_evaluator::server_loop().
|
extern |
Definition at line 1020 of file utils.cc.
Referenced by undo_string_escapes().
|
extern |
Definition at line 1065 of file utils.cc.
References undo_string_escape().
Referenced by Fundo_string_escapes(), and base_parser::make_constant().
|
extern |
Definition at line 79 of file utils.cc.
Referenced by make_valid_name_options::make_valid_name_options(), tree_evaluator::assignin(), Farrayfun(), Fcellfun(), Fdisplay(), Fisvarname(), make_valid_name(), and valid_identifier().
|
extern |
Definition at line 92 of file utils.cc.
References valid_identifier().
|
extern |
Definition at line 1539 of file utils.cc.
References free(), and octave_vasprintf_wrapper().
Referenced by asprintf(), octave_vasprintf_wrapper(), and vformat().
|
extern |