GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
utils.cc File Reference
#include <cerrno>
#include <cstring>
#include <fstream>
#include <iostream>
#include <limits>
#include <string>
#include "dir-ops.h"
#include "file-ops.h"
#include "file-stat.h"
#include "lo-mappers.h"
#include "lo-utils.h"
#include "nanosleep-wrapper.h"
#include "oct-cmplx.h"
#include "oct-env.h"
#include "oct-locbuf.h"
#include "pathsearch.h"
#include "quit.h"
#include "str-vec.h"
#include "vasprintf-wrapper.h"
#include "Cell.h"
#include "defaults.h"
#include "defun.h"
#include "dirfns.h"
#include "error.h"
#include "errwarn.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "lex.h"
#include "load-path.h"
#include "oct-errno.h"
#include "oct-hist.h"
#include "ovl.h"
#include "ov-range.h"
#include "pager.h"
#include "parse.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Include dependency graph for utils.cc:

Go to the source code of this file.

Functions

int almost_match (const std::string &std, const std::string &s, int min_match_len, int case_sens)
 
If this string is the system will ring the terminal bell (if it is possible). This is normally the desired outcome. However
 
nd example oindent assigns the value of the alert character (control-g, ASCII code 7) to the string variable ode
 
int empty_arg (const char *, octave_idx_type nr, octave_idx_type nc)
 
OCTAVE_EXPORT octave_value_list Fdir_in_loadpath (octave::interpreter &interp, const octave_value_list &args, int) return an empty character string. The match is performed at the end of each path element. For example
 
OCTAVE_EXPORT octave_value_list Ffile_in_loadpath (octave::interpreter &interp, const octave_value_list &args, int) return an empty character string. When ar
 
OCTAVE_EXPORT octave_value_list Fis_absolute_filename (const octave_value_list &args, int) make_absolute_filename
 
OCTAVE_EXPORT octave_value_list Fis_rooted_relative_filename (const octave_value_list &args, int) make_absolute_filename
 
OCTAVE_EXPORT octave_value_list Fisvarname (const octave_value_list &args, int) exist
 
OCTAVE_EXPORT octave_value_list Fmake_absolute_filename (const octave_value_list &args, int) is_absolute_filename
 
 if (args(0).is_string())
 
int keyword_almost_match (const char *const *std, int *min_len, const std::string &s, int min_toks_to_match, int max_toks)
 
static string_vector make_absolute (const string_vector &sv)
 
return ovl (undo_string_escapes(str))
 
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *return ovl (args(0).is_string() &&octave::sys::env::absolute_pathname(args(0).string_value()))
 
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *return ovl (args(0).is_string() &&octave::sys::env::rooted_relative_pathname(args(0).string_value()))
 
return ovl (octave::sys::env::make_absolute(nm))
 
bool same_file (const std::string &f, const std::string &g)
 
string_vector search_path_for_all_files (const std::string &path, const string_vector &names)
 
std::string search_path_for_file (const std::string &path, const string_vector &names)
 
bool valid_identifier (const char *s)
 
bool valid_identifier (const std::string &s)
 

Variables

OCTAVE_EXPORT octave_value_list if ar {dir} is code{"foo/bar"}
 
is already an absolute the name is checked against the file system instead of Octave s loadpath In this case
 
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the with the special characters replaced by their escape sequences For example
 
is already an absolute the name is checked against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the first argument is a cell array of search each directory of the loadpath for element of the cell array and return the first that matches If the second optional argument return a cell array containing the list of all files that have the same name in the path If no files are found
 
OCTAVE_EXPORT octave_value_list if it matches the path element but not rather than just a path fragment
 
OCTAVE_EXPORT octave_value_list is_rooted_relative_filename
 
is already an absolute name
 
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm = args(0).xstring_value ("make_absolute_filename: FILE argument must be a filename")
 
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the with the special characters replaced by their escape sequences For xample roup octave
 
OCTAVE_EXPORT octave_value_list if it matches the path element ospell {code{"/some/dir/foo/bar"}}
 
If this string is printed
 
is already an absolute the name is checked against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the first argument is a cell array of search each directory of the loadpath for element of the cell array and return the first that matches If the second optional argument qcode {"all"} is supplied
 
OCTAVE_EXPORT octave_value_list who nd deftypefn *octave_value retval = false
 
is already an absolute the name is checked against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the first argument is a cell array of search each directory of the loadpath for element of the cell array and return the first that matches If the second optional argument return a cell array containing the list of all files that have the same name in the path If no files are return an empty cell array seealso
 
std::string str = args(0).xstring_value ("undo_string_escapes: S argument must be a string")
 
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
 
is already an absolute the name is checked against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the first argument is a cell array of strings
 
OCTAVE_EXPORT octave_value_list if it matches the path element but not rather than just a path it is matched against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the optional second argument is supplied
 
is already an absolute the name is checked against the file system instead of Octave s loadpath In this if var {file} exists it will be returned in @var{fname}
 

Function Documentation

◆ almost_match()

int almost_match ( const std::string std,
const std::string s,
int  min_match_len,
int  case_sens 
)

Definition at line 136 of file utils.cc.

References octave_strncasecmp(), s, and octave::string::strncmp().

Referenced by keyword_almost_match().

◆ bell()

If this string is the system will ring the terminal bell ( if it is  possible)

◆ character()

◆ empty_arg()

int empty_arg ( const char *  ,
octave_idx_type  nr,
octave_idx_type  nc 
)

Definition at line 239 of file utils.cc.

◆ Fdir_in_loadpath()

OCTAVE_EXPORT octave_value_list Fdir_in_loadpath ( octave::interpreter interp,
const octave_value_list args,
int   
)

◆ Ffile_in_loadpath()

OCTAVE_EXPORT octave_value_list Ffile_in_loadpath ( octave::interpreter interp,
const octave_value_list args,
int   
)

Definition at line 305 of file utils.cc.

◆ Fis_absolute_filename()

OCTAVE_EXPORT octave_value_list Fis_absolute_filename ( const octave_value_list args,
int   
)

◆ Fis_rooted_relative_filename()

OCTAVE_EXPORT octave_value_list Fis_rooted_relative_filename ( const octave_value_list args,
int   
)

◆ Fisvarname()

OCTAVE_EXPORT octave_value_list Fisvarname ( const octave_value_list args,
int   
)

◆ Fmake_absolute_filename()

OCTAVE_EXPORT octave_value_list Fmake_absolute_filename ( const octave_value_list args,
int   
)

◆ if()

if ( args(0).is_string()  )

Definition at line 104 of file utils.cc.

References octave::is_keyword(), retval, string, and valid_identifier().

◆ keyword_almost_match()

int keyword_almost_match ( const char *const *  std,
int *  min_len,
const std::string s,
int  min_toks_to_match,
int  max_toks 
)

Definition at line 152 of file utils.cc.

References almost_match(), done, s, s2, strsave(), and t.

◆ make_absolute()

static string_vector make_absolute ( const string_vector sv)
static

Definition at line 272 of file utils.cc.

References i, octave::sys::env::make_absolute(), Array< T >::numel(), and retval.

◆ ovl() [1/4]

return ovl ( undo_string_escapes(str )

◆ ovl() [2/4]

OCTAVE_EXPORT octave_value_list isdir nd deftypefn* return ovl ( args(0).is_string() &&octave::sys::env::absolute_pathname(args(0).string_value())  )

◆ ovl() [3/4]

OCTAVE_EXPORT octave_value_list isdir nd deftypefn* return ovl ( args(0).is_string() &&octave::sys::env::rooted_relative_pathname(args(0).string_value())  )

◆ ovl() [4/4]

◆ same_file()

bool same_file ( const std::string f,
const std::string g 
)

◆ search_path_for_all_files()

string_vector search_path_for_all_files ( const std::string path,
const string_vector names 
)

◆ search_path_for_file()

std::string search_path_for_file ( const std::string path,
const string_vector names 
)

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().

◆ valid_identifier() [1/2]

◆ valid_identifier() [2/2]

bool valid_identifier ( const std::string s)

Definition at line 87 of file utils.cc.

References s, and valid_identifier().

Variable Documentation

◆ ar

OCTAVE_EXPORT octave_value_list if ar {dir} is code{"foo/bar"}

Definition at line 1008 of file utils.cc.

◆ case

OCTAVE_EXPORT octave_value_list if it matches the path element but not rather than just a path it is matched against the file system instead of Octave s loadpath In this case

Definition at line 305 of file utils.cc.

◆ example

If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the with the special characters replaced by their escape sequences For example

Definition at line 888 of file utils.cc.

◆ found

◆ fragment

OCTAVE_EXPORT octave_value_list if it matches the path element but not rather than just a path fragment

Definition at line 1008 of file utils.cc.

◆ is_rooted_relative_filename

OCTAVE_EXPORT octave_value_list is_rooted_relative_filename

Definition at line 970 of file utils.cc.

◆ name

is already an absolute name

Definition at line 305 of file utils.cc.

◆ nm

OCTAVE_EXPORT octave_value_list isdir nd deftypefn* std::string nm = args(0).xstring_value ("make_absolute_filename: FILE argument must be a filename")

Definition at line 975 of file utils.cc.

Referenced by octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::C(), cdef_class::cdef_class(), cdef_method::cdef_method(), cdef_package::cdef_package(), cdef_property::cdef_property(), octave_dld_function::create(), gh_manager::do_execute_callback(), octave_base_value::do_index_op(), do_who(), octave_struct::dotref(), octave_class::dotref(), octave_scalar_struct::dotref(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), octave::dump_container_map(), octave::symbol_table::dump_fcn_table_map(), octave::dump_function_map(), octave::symbol_scope_rep::dump_symbols_map(), err_invalid_index_type(), F__current_scope__(), Faddeeva_w(), octave_fcn_handle::fcn_name(), Ffunctions(), octave::directory_path::find(), cdef_package::find(), octave::directory_path::find_all(), octave::directory_path::find_first(), cdef_class::find_method(), cdef_class::find_property(), mex::function_name(), octave::profiler::stats::function_set_value(), octave::genpath(), get_base_name(), octave::load_path::get_file_list(), octave::stream_list::get_file_number(), figure::properties::get_title(), octave::sys::group::getgrnam(), octave::sys::password::getpwnam(), octave_sparse_matrix::index_vector(), octave_base_value::index_vector(), octave::symbol_scope_rep::inherit_internal(), cdef_package::install_class(), cdef_package::install_function(), cdef_package::install_package(), octave_function::is_private_function_of_class(), string_vector::list_in_columns(), octave_struct::load_ascii(), octave_cell::load_ascii(), octave_class::load_ascii(), octave_lazy_index::load_ascii(), octave_scalar_struct::load_ascii(), octave_struct::load_binary(), octave_cell::load_binary(), octave_class::load_binary(), octave_lazy_index::load_binary(), octave_scalar_struct::load_binary(), octave::type_info::lookup_type(), octave_value_typeinfo::lookup_type(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), make_fcn_handle(), cdef_manager::make_package(), make_valid_identifier(), MatrixType::MatrixType(), octave::sys::mkdir(), octave::sys::mkfifo(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::name(), octave_base_iostream::name(), octave_fstream::name(), octave_access_wrapper(), octave_chdir_wrapper(), octave_getcwd_wrapper(), octave_gethostname_wrapper(), octave_open_wrapper(), octave_print_internal(), octave_print_internal_template(), octave_rmdir_wrapper(), octave_unlink_wrapper(), octave::out_of_date_check(), octave::symbol_table::parent_classes(), octave_fcn_handle::print_as_scalar(), print_nd_array(), octave::tree_funcall::print_raw(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::Q(), read_mat5_binary_element(), octave::sys::recursive_rmdir(), octave::dynamic_library::search(), figure::properties::set___graphics_toolkit__(), octave::text_renderer::string::set_family(), cdef_class::cdef_class_rep::set_name(), cdef_property::cdef_property_rep::set_name(), cdef_method::cdef_method_rep::set_name(), cdef_package::cdef_package_rep::set_name(), octave::variable_editor_model::setData(), octave_base_value::squeeze(), octave_function::stash_dispatch_class(), octave_user_script::stash_fcn_file_name(), octave_user_function::stash_fcn_file_name(), octave_value_list::stash_name_tags(), octave_base_scalar< bool >::subsasgn(), octave_base_diag< DiagMatrix, Matrix >::subsasgn(), octave_base_matrix< boolNDArray >::subsasgn(), octave_cell::subsasgn(), octave_base_sparse< SparseComplexMatrix >::subsasgn(), octave_base_value::subsasgn(), octave_perm_matrix::subsref(), octave_base_scalar< bool >::subsref(), octave_base_diag< DiagMatrix, Matrix >::subsref(), octave_base_matrix< boolNDArray >::subsref(), octave_cell::subsref(), octave_base_sparse< SparseComplexMatrix >::subsref(), octave_range::subsref(), octave_base_value::subsref(), unique_symbol_name(), octave::workspace_model::update_table(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), octave::tree_decl_init_list::variable_names(), octave::tree_evaluator::visit_fcn_handle(), octave::tree_evaluator::visit_function_def(), octave::tree_print_code::visit_identifier(), and octave::tree_print_code::visit_index_expression().

◆ octave

If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the with the special characters replaced by their escape sequences For xample roup octave

Definition at line 888 of file utils.cc.

◆ ospell

OCTAVE_EXPORT octave_value_list if it matches the path element but not ospell {code{"/some/dir/foo/bar"}}

Definition at line 1008 of file utils.cc.

◆ printed

If this string is printed

Definition at line 888 of file utils.cc.

Referenced by octave_fcn_handle::print_raw().

◆ qcode

is already an absolute the name is checked against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the first argument is a cell array of search each directory of the loadpath for element of the cell array and return the first that matches If the second optional argument qcode {"all"} is supplied

Definition at line 305 of file utils.cc.

◆ retval

return retval = false

Definition at line 102 of file utils.cc.

Referenced by if(), and make_absolute().

◆ seealso

is already an absolute the name is checked against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the first argument is a cell array of search each directory of the loadpath for element of the cell array and return the first that matches If the second optional argument return a cell array containing the list of all files that have the same name in the path If no files are return an empty cell array seealso

Definition at line 305 of file utils.cc.

◆ str

std::string str = args(0).xstring_value ("undo_string_escapes: S argument must be a string")

Definition at line 893 of file utils.cc.

◆ string

If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string

Definition at line 888 of file utils.cc.

Referenced by absolute_search(), QtHandles::accelSequence(), octave::load_path::add(), octave::bp_table::add_breakpoint_1(), octave::scanf_format_list::add_elt_to_list(), octave::printf_format_list::add_elt_to_list(), octave::textscan_format_list::add_elt_to_list(), add_hdf5_data(), octave::load_path::package_info::add_to_fcn_map(), octave::load_path::package_info::add_to_method_map(), octave::directory_path::all_directories(), any(), append_to_shell_path(), Array< octave_value >::Array(), property_list::as_struct(), basename(), octave::tree_evaluator::bind_ans(), octave::sys::blas_version(), brace_expand(), base_graphics_object::build_user_defaults_map(), octave_struct::byte_size(), octave_class::byte_size(), octave_scalar_struct::byte_size(), octave_fcn_handle::call(), octave::sys::canonicalize_file_name(), QtHandles::Canvas::canvasMouseMoveEvent(), QtHandles::Canvas::canvasMouseReleaseEvent(), QtHandles::Canvas::canvasToggleGrid(), QtHandles::Canvas::canvasWheelEvent(), Cell::Cell(), charNDArray::charNDArray(), octave::sys::chdir(), check_access(), check_exception(), check_hg_versions(), class_fevalStatic(), class_fromName(), class_getConstant(), cleanup_tmp_files(), octave::stream_list::clear(), octave::regexp::compile_internal(), radio_values::contains(), octave::jit_convert_llvm::convert_function(), convert_label_position(), convert_linestyleorder_string(), convert_ticklabel_string(), octave_base_int_scalar< OCTAVE_INT_T >::convert_to_str_internal(), octave_float_scalar::convert_to_str_internal(), octave_scalar::convert_to_str_internal(), QtHandles::Figure::copy_figure_callback(), property::create(), octave::tree_jit::create_new_engine(), octave_user_function::ctor_type_str(), octave::curl_transfer::curl_transfer(), oct_data_conv::data_type_as_string(), decode_subscripts(), default_history_file(), default_history_size(), default_pager(), octave::default_qt_settings_file(), default_save_header_format(), octave::out_of_range::details(), dir_search(), octave::display_info::display_available(), symbol_info_list::symbol_info::display_line(), octave::main_window::display_release_notes(), octave::command_history::do_append(), octave::sys::env::do_chdir(), octave::command_history::do_clean_up_and_save(), octave::command_editor::do_decode_prompt_string(), octave_rand::do_distribution(), do_edit_history(), gh_manager::do_execute_callback(), do_fwrite(), octave::ft_manager::do_get_font(), octave::sys::env::do_get_home_directory(), octave::sys::env::do_get_temp_directory(), octave::base_stream::do_gets(), do_history(), octave_base_value::do_index_op(), octave::tm_row_const::tm_row_const_rep::do_init_element(), octave::command_editor::do_insert_initial_input(), do_isglobal(), do_load(), octave::sys::env::do_make_absolute(), octave_value::do_non_const_unary_op(), octave::base_stream::do_numeric_printf_conv(), octave::base_stream::do_oscanf(), octave::sys::env::do_polite_directory_format(), gh_manager::do_post_callback(), octave::base_stream::do_printf(), octave::do_printf_string(), do_rand(), do_regexp_ptn_string_escapes(), do_regexp_rep_string_escapes(), do_run_history(), do_save(), octave::textscan::do_scan(), octave::base_stream::do_scanf(), string_property::do_set(), string_array_property::do_set(), radio_property::do_set(), color_property::do_set(), double_radio_property::do_set(), do_sync(), octave::command_history::do_truncate_file(), do_who(), octave::command_history::do_write(), octave_struct::dotref(), octave_class::dotref(), octave_scalar_struct::dotref(), octave::opengl_renderer::draw_axes_x_grid(), octave::opengl_renderer::draw_axes_y_grid(), octave::opengl_renderer::draw_axes_z_grid(), octave::opengl_renderer::draw_patch(), octave::dump_container_map(), octave::symbol_table::dump_fcn_table_map(), octave::dump_function_map(), dump_octave_core(), octave::symbol_scope_rep::dump_symbols_map(), octave::sys::dup2(), octave::tree_evaluator::echo(), octave::tree_evaluator::echo_code(), octave::base_ve_model::edit_display(), octave_struct::edit_display(), octave_char_matrix_str::edit_display(), octave_scalar_struct::edit_display(), octave::numeric_model::edit_display(), octave::string_model::edit_display(), octave::struct_model::edit_display(), octave::base_ve_model::edit_display_sub(), edit_history_add_hist(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), octave::sys::group::endgrent(), octave::sys::password::endpwent(), err_method_access(), octave::err_nonconformant(), err_property_access(), err_wrong_type_arg(), err_wrong_type_arg_for_binary_op(), err_wrong_type_arg_for_unary_op(), octave::base_stream::error(), octave::stream::error(), error_1(), LSODE::error_message(), DASPK::error_message(), DASSL::error_message(), DASRT::error_message(), octave::environment::exec_path(), octave::gui_application::execute(), octave::octave_cmd_exec::execute(), octave::octave_cmd_eval::execute(), octave::jit_info::execute(), execute_pkg_add_or_del(), octave::sys::execvp(), octave::file_editor_tab::exit_debug_and_clear(), expand(), expand_amble(), octave::expand_char_class(), extract_function(), extract_keyword(), F__current_scope__(), F__ftp__(), F__ftp_cwd__(), F__ftp_delete__(), F__ftp_mget__(), F__ftp_mkdir__(), F__ftp_mput__(), F__ftp_rename__(), F__ftp_rmdir__(), F__ichol0__(), F__icholt__(), F__ilu0__(), F__octave_link_edit_file__(), F__octave_link_file_dialog__(), F__octave_link_input_dialog__(), F__octave_link_list_dialog__(), F__octave_link_message_dialog__(), F__octave_link_question_dialog__(), F__octave_link_register_doc__(), F__octave_link_show_doc__(), F__octave_link_unregister_doc__(), F__open_with_system_app__(), F__zoom__(), Fbalance(), octave::call_stack::stack_frame::fcn_name(), octave::sys::fcntl(), Fcolloc(), Fconv2(), Fdaspk(), Fdasrt(), Fdassl(), Fdiary(), Fdup2(), Feig(), Ffunctions(), Fget(), QtHandles::Figure::fileName(), octave::load_path::files(), octave::final_index_error(), octave::load_path::find_all_first_of(), octave::fcn_info::fcn_info_rep::find_autoload(), octave::find_bkpt_list(), octave::load_path::find_dir(), octave::load_path::find_dir_info(), octave::load_path::find_fcn(), octave::load_path::package_info::find_fcn(), octave::load_path::find_fcn_file(), octave::load_path::find_file(), find_file_to_load(), octave::load_path::find_first_of(), octave::symbol_table::find_function(), find_indexed_expression(), octave::load_path::find_matching_dirs(), octave::load_path::find_method(), octave::load_path::package_info::find_method(), octave::load_path::find_mex_file(), octave::load_path::find_oct_file(), find_octave_class(), octave::load_path::package_info::find_private_fcn(), find_private_file(), octave::symbol_table::find_submethod(), octave::fcn_info::fcn_info_rep::find_user_function(), octave::scanf_format_list::finish_conversion(), octave::textscan_format_list::finish_conversion(), Fisfield(), octave::mach_info::float_format_as_string(), Flsode(), Fnproc(), Fopenvar(), for(), octave::curl_transfer::form_query_string(), Fquad(), Fqz(), Freaddir(), Fschur(), Fsetenv(), Fspparms(), octave::curl_transfer::ftp_file_or_dir_action(), mex::function_name(), G__delaunayn__(), G__eigs__(), G__fltk_uigetfile__(), G__osmesa_print__(), G__voronoi__(), Gaudioread(), Gchol(), Gconvhulln(), generate_completion(), generate_struct_completions(), octave::tree_jit::generate_unique_forloop_name(), octave::tree_jit::generate_unique_function_name(), octave::tree_jit::generate_unique_module_name(), octave::genpath(), octave::bp_table::get_breakpoint_list(), get_class_context(), mxArray_octave_value::get_class_id(), mxArray_octave_value::get_class_name(), octave::get_concat_class(), octave_class::get_current_method_class(), octave::get_dispatch_type(), octave::get_fcn_files(), get_file_format(), octave_user_code::get_file_info(), octave::load_path::dir_info::get_file_list(), octave::load_path::get_file_list(), octave::stream_list::get_file_number(), octave::curl_transfer::get_fileinfo(), get_graphics_object_type(), annotation_dialog::get_gui_props(), octave::resource_manager::get_gui_translation_dir(), get_int_arg(), octave::file_info::get_line(), get_lines_and_columns(), get_mapper_fun_options(), get_mat_data_input_line(), octave::load_path::dir_info::get_method_file_map(), octave::printf_value_cache::get_next_value(), get_octave_archlibdir(), get_octave_bindir(), get_P_tmpdir(), octave::tree_index_expression::get_struct_index(), axes::properties::get_ticklabel_extents(), figure::properties::get_title(), octave::get_user_code(), get_variable(), octave::sys::getcwd(), octave::sys::group::getgrent(), octave::sys::group::getgrgid(), octave::sys::group::getgrnam(), octave::stream::getl(), octave::sys::password::getpwent(), octave::sys::password::getpwnam(), octave::sys::password::getpwuid(), octave::stream::gets(), Gfftw(), octave::gl2ps_print(), octave::gl_get_string(), octave::sys::glob(), gnu_readline(), Gqr(), gripe_nonconformant(), gripe_wrong_type_arg(), gripe_wrong_type_arg_for_binary_op(), gripe_wrong_type_arg_for_unary_op(), Gsymbfact(), octave::file_editor_tab::handle_context_menu_break_condition(), handle_message(), octave::crypto::hash(), have_gnuplot_binary(), octave::sys::env::have_x11_display(), hdf5_read_next_data_internal(), QtHandles::Figure::helpAboutOctave(), hook_function::hook_function(), octave::curl_transfer::http_get(), octave::curl_transfer::http_post(), if(), octave::tree_print_code::indent(), octave_sparse_matrix::index_vector(), octave_base_value::index_vector(), octave::symbol_scope_rep::inherit_internal(), octave::directory_path::init(), octave::tm_const::init(), octave::environment::init_editor(), octave::environment::init_exec_path(), octave::environment::init_image_path(), initial_class_path(), initial_java_dir(), octave::load_path::initialize(), initialize(), octave::load_path::dir_info::initialize(), initialize_jvm(), interactive_input(), octave::base_stream::invalid_operation(), is_completing_dirfns(), octave::sys::file_ops::is_dir_sep(), is_indexed(), octave_java::is_instance_of(), octave::load_path::dir_info::is_package(), is_valid_function(), octave::jit_convert::jit_convert(), octave::jit_typeinfo::jit_typeinfo(), string_vector::join(), jstring_to_string(), octave::sys::kill(), kpse_brace_expand(), kpse_brace_expand_element(), kpse_element_dir(), kpse_expand(), kpse_expand_default(), kpse_expand_kpse_dot(), kpse_path_expand(), kpse_readable_file(), kpse_tilde_expand(), kpse_truncate_filename(), kpse_var_expand(), octave::sys::lapack_version(), octave::curl_transfer::lasterror(), octave::sys::link(), octave::curl_transfer::list(), string_vector::list_in_columns(), octave_fcn_inline::load_ascii(), octave_fcn_handle::load_ascii(), octave_struct::load_ascii(), octave_float_complex_matrix::load_ascii(), octave_cell::load_ascii(), octave_complex_matrix::load_ascii(), octave_char_matrix_str::load_ascii(), octave_class::load_ascii(), octave_float_matrix::load_ascii(), octave_lazy_index::load_ascii(), octave_bool_matrix::load_ascii(), octave_matrix::load_ascii(), octave_scalar_struct::load_ascii(), octave_fcn_inline::load_binary(), octave_fcn_handle::load_binary(), octave_struct::load_binary(), octave_cell::load_binary(), octave_class::load_binary(), octave_lazy_index::load_binary(), octave_scalar_struct::load_binary(), octave::fcn_info::fcn_info_rep::load_class_constructor(), octave::fcn_info::fcn_info_rep::load_class_method(), octave_fcn_inline::load_hdf5(), octave_fcn_handle::load_hdf5(), octave::fcn_info::fcn_info_rep::load_private_function(), octave::textscan::lookahead(), property_list::lookup(), octave::tree_index_expression::lvalue(), main(), make_fcn_handle(), cdef_manager::make_property(), make_valid_identifier(), octave::regexp::match(), octave::jit_info::match(), maybe_add_path_elts(), maybe_enter_debugger(), maybe_initialize_magick(), octave::tree_evaluator::maybe_set_echo_state(), octave::index_exception::message(), mexCallMATLABWithTrap(), mexEvalStringWithTrap(), octave::base_url_transfer::mget_directory(), mk_tmp_hist_file(), octave::sys::mkdir(), octave::sys::mkfifo(), octave::sys::base_file_stat::mode_as_string(), octave::stream::mode_as_string(), QtHandles::Figure::mouseMode(), octave::load_path::package_info::move(), octave::load_path::move(), octave::load_path::package_info::move_fcn_map(), octave::load_path::package_info::move_method_map(), octave::base_url_transfer::mput_directory(), octave::stream::name(), octave::sys::file_ops::native_separator_path(), octave_class::numel(), octave_change_to_directory(), octave_class::octave_class(), octave_dld_function::octave_dld_function(), octave_fgetl(), octave_fgets(), octave_fields::octave_fields(), octave::base_reader::octave_gets(), octave_history_write_timestamp(), octave_mex_function::octave_mex_function(), octave_name_version_copyright_copying_and_warranty(), octave_name_version_copyright_copying_warranty_and_bugs(), octave_print_internal(), octave_print_internal_template(), octave::octave_scan(), octave_startup_message(), octregexp(), octave_value::op_eq_to_binary_op(), octave::sys::dir_entry::open(), octave::tree_boolean_expression::oper(), operator<<(), octave::stream::oscanf(), octave::out_of_date_check(), octave::load_path::package_info::overloads(), pager_command(), octave::textscan_format_list::parse_char_class(), octave::bp_table::parse_dbfunction_params(), parse_options(), octave::textscan::parse_options(), parse_save_options(), symbol_info_list::parse_whos_line_format(), octave::load_path::path(), path_find_first_of(), path_search(), pattern(), octave::sys::pipe(), octave::sys::popen2(), pr_where(), pr_where_2(), prepend_home_dir(), octave::jit_phi::print(), octave::tree_print_code::print_comment_elt(), print_nd_array(), octave::tree_funcall::print_raw(), octave_struct::print_raw(), octave_scalar_struct::print_raw(), octave::stream::printf(), octave::printf_format_list::printf_format_list(), octave::printf_format_list::process_conversion(), octave::tree_evaluator::PS4(), octave::stream::puts(), octave::curl_transfer::pwd(), radio_values::radio_values(), Sparse< bool >::range_error(), rational_approx(), read_binary_data(), read_classpath_txt(), octave::textscan_format_list::read_first_row(), read_hdf5_data(), read_images(), octave::command_editor::read_init_file(), octave::JVMArgs::read_java_opts(), read_mat5_binary_element(), read_mat5_binary_file_header(), read_mat_ascii_data(), read_mat_binary_data(), read_sparse_matrix(), read_text_data(), octave::textscan::read_until(), octave::command_editor::readline(), octave::sys::readlink(), octave_class::reconstruct_parents(), octave::sys::recursive_rmdir(), octave::type_info::register_assign_op(), octave::type_info::register_assignany_op(), octave::type_info::register_binary_class_op(), octave::type_info::register_binary_op(), octave::type_info::register_cat_op(), octave::type_info::register_non_const_unary_op(), octave::type_info::register_pref_assign_conv(), octave::type_info::register_unary_class_op(), octave::type_info::register_unary_op(), octave::type_info::register_widening_op(), octave::load_path::remove(), octave::load_path::package_info::remove(), octave::bp_table::remove_all_breakpoints_in_file(), octave::bp_table::remove_breakpoint_1(), octave::load_path::package_info::remove_fcn_map(), octave::load_path::package_info::remove_method_map(), octave::curl_transfer::rename(), octave::sys::rename(), octave::opengl_renderer::render_ticktexts(), octave::regexp::replace(), Sparse< bool >::reshape(), octave::jit_convert::resolve(), rethrow_error(), octave::variable_editor_model::retrieve_variable(), octave::sys::rmdir(), charMatrix::row_as_string(), hook_function_list::run(), octave_fcn_handle::save_ascii(), octave_struct::save_ascii(), octave_char_matrix_str::save_ascii(), octave_scalar_struct::save_ascii(), octave_fcn_handle::save_binary(), octave_struct::save_binary(), octave_scalar_struct::save_binary(), save_binary_data(), save_fields(), octave_fcn_handle::save_hdf5(), octave_struct::save_hdf5(), octave_cell::save_hdf5(), octave_scalar_struct::save_hdf5(), save_mat5_binary_element(), save_mat5_element_length(), save_mat_binary_data(), save_vars(), octave::textscan::scan_complex(), octave::textscan::scan_one(), octave::textscan::scan_qstring(), octave::textscan::scan_string(), octave::stream::scanf(), search(), octave::stream::seek(), octave::environment::set(), property_list::set(), figure::properties::set___graphics_toolkit__(), octave::tree::set_breakpoint(), set_default_prompts(), octave_fcn_handle::set_fcn(), octave::command_history::set_file(), set_format_style(), base_properties::set_from_list(), annotation_dialog::set_gui_props(), set_local_site_defaults_file(), set_octave_home(), set_site_defaults_file(), axes::properties::set_text_child(), graphics_object::set_value_or_default(), figure::properties::set_visible(), octave::workspace_model::setData(), octave::variable_editor_model::setData(), octave::sys::group::setgrent(), octave::sys::password::setpwent(), octave_base_scalar< bool >::short_disp(), octave_char_matrix_str::short_disp(), octave_base_matrix< boolNDArray >::short_disp(), octave_base_diag< DiagMatrix, Matrix >::short_disp(), octave_perm_matrix::short_disp(), octave::main_window::show_about_octave(), octave::textscan::skip_whitespace(), octave::file_info::snarf_file(), sparse(), split_path(), octave_base_value::squeeze(), dim_vector::str(), str2double1(), color_values::str2rgb(), octave::tree::str_print_code(), octave::sys::base_tm::strftime(), oct_data_conv::string_to_data_type(), string_array_property::string_value(), string_vector::string_vector(), octave_cell::string_vector_value(), stringfield(), strip_spaces(), strip_trailing_separators(), sub2ind(), octave_base_scalar< bool >::subsasgn(), octave_base_diag< DiagMatrix, Matrix >::subsasgn(), octave_base_matrix< boolNDArray >::subsasgn(), octave_struct::subsasgn(), octave_cell::subsasgn(), octave_base_sparse< SparseComplexMatrix >::subsasgn(), octave_scalar_struct::subsasgn(), octave_base_value::subsasgn(), octave_class::subsasgn_common(), octave_perm_matrix::subsref(), octave_base_scalar< bool >::subsref(), octave_base_diag< DiagMatrix, Matrix >::subsref(), octave_base_matrix< boolNDArray >::subsref(), octave_cell::subsref(), octave_base_sparse< SparseComplexMatrix >::subsref(), octave_fcn_handle::subsref(), octave_range::subsref(), octave_base_value::subsref(), subsref(), octave::switch_to_g_format(), symbol_exist(), octave::sys::symlink(), octave::sys::tempnam(), text_element_subscript::text_element_subscript(), text_element_superscript::text_element_superscript(), octave::sys::file_ops::tilde_expand(), tilde_expand_word(), octave::sys::time::time(), QtHandles::Utils::toStdString(), try_cellfun_internal_ops(), octave_value::unary_op_to_assign_op(), unique_symbol_name(), octave::sys::unlink(), octave::gtk_manager::unload_all_toolkits(), octave::gtk_manager::unregister_toolkit(), octave::load_path::dir_info::update(), octave::sys::file_stat::update_internal(), figure::properties::update_paperunits(), octave::workspace_model::update_table(), validate_property_name(), base_graphics_object::value_as_string(), radio_values::values_as_cell(), radio_values::values_as_string(), base_graphics_object::values_as_string(), octave::tree_decl_init_list::variable_names(), verror(), octave::ft_text_renderer::visit(), octave::jit_convert::visit_boolean_expression(), octave::tree_evaluator::visit_complex_for_command(), octave::tree_evaluator::visit_decl_elt(), octave::tree_evaluator::visit_fcn_handle(), octave::tree_evaluator::visit_function_def(), octave::tree_print_code::visit_identifier(), octave::tree_print_code::visit_index_expression(), octave::tree_evaluator::visit_index_expression(), octave::tree_evaluator::visit_matrix(), octave::tree_print_code::visit_octave_user_function_header(), octave::tree_evaluator::visit_simple_assignment(), octave::jit_convert::visit_simple_for_command(), vwarning(), octave::sys::waitpid(), warn_wrong_type_arg(), warning_1(), warning_enabled(), octave::sys::windows_glob(), write_header(), octave::fcn_info::fcn_info_rep::x_builtin_find(), octave::fcn_info::fcn_info_rep::xfind(), xreset_default_properties(), octave_base_value::xstring_value(), octave::xzip(), octave::documentation::~documentation(), and octave_oncleanup::~octave_oncleanup().

◆ strings

is already an absolute the name is checked against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the first argument is a cell array of strings

◆ supplied

OCTAVE_EXPORT octave_value_list if it matches the path element but not rather than just a path it is matched against the file system instead of Octave s loadpath In this if otherwise an empty string is returned If the optional second argument is supplied

Definition at line 1008 of file utils.cc.

◆ var

OCTAVE_EXPORT octave_value_list if it matches the path element but not rather than just a path it is matched against the file system instead of Octave s loadpath In this if var {file} exists it will be returned in @var{fname}

Definition at line 305 of file utils.cc.