#include <algorithm>
#include <cctype>
#include "dir-ops.h"
#include "file-ops.h"
#include "file-stat.h"
#include "oct-env.h"
#include "pathsearch.h"
#include "defaults.h"
#include "defun.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "load-path.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
OCTAVE_EXPORT octave_value_list | F__dump_load_path__ (octave::interpreter &interp, const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | F__pathorig__ (octave::interpreter &interp, const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Faddpath (octave::interpreter &interp, const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Fcommand_line_path (octave::interpreter &interp, const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fgenpath (const octave_value_list &args, int) |
static std::string | find_private_file (const std::string &fname) |
OCTAVE_EXPORT octave_value_list | Fpath (octave::interpreter &interp, const octave_value_list &args, int nargout) |
OCTAVE_EXPORT octave_value_list | Frehash (const octave_value_list &, int) |
OCTAVE_EXPORT octave_value_list | Frestoredefaultpath (octave::interpreter &interp, const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Frmpath (octave::interpreter &interp, const octave_value_list &args, int nargout) |
std::string | genpath (const std::string &dirname, const string_vector &skip) |
load_path::dir_info::fcn_file_map_type | get_fcn_files (const std::string &d) |
static bool | in_path_list (const std::string &path_list, const std::string &path) |
static void | maybe_add_path_elts (std::string &path, const std::string &dir) |
static std::string | maybe_canonicalize (const std::string &dir_arg) |
static void | rehash_internal (void) |
static std::list< std::string > | split_path (const std::string &p) |
static std::string | strip_trailing_separators (const std::string &dir_arg) |
static bool | subdirs_modified (const std::string &d, const sys::time &last_checked) |
OCTAVE_EXPORT octave_value_list F__dump_load_path__ | ( | octave::interpreter & | interp, |
const octave_value_list & | , | ||
int | |||
) |
Definition at line 2826 of file load-path.cc.
References load_path::display(), octave_stdout, and ovl().
OCTAVE_EXPORT octave_value_list F__pathorig__ | ( | octave::interpreter & | interp, |
const octave_value_list & | , | ||
int | |||
) |
Definition at line 2559 of file load-path.cc.
References ovl(), and load_path::system_path().
OCTAVE_EXPORT octave_value_list Faddpath | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2652 of file load-path.cc.
References load_path::append(), dir_sep_chars, error(), octave_value::is_string(), octave_value::isnumeric(), octave_value_list::length(), load_path::path(), load_path::prepend(), print_usage(), r, rehash_internal(), octave_value_list::reverse(), split_path(), octave_value::string_value(), warning_with_id(), and octave_value::xint_value().
Referenced by main_window::modify_path().
OCTAVE_EXPORT octave_value_list Fcommand_line_path | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 2521 of file load-path.cc.
References load_path::get_command_line_path(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fgenpath | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 2473 of file load-path.cc.
References dirname(), genpath(), and print_usage().
Referenced by main_window::modify_path().
|
static |
Definition at line 154 of file load-path.cc.
References __get_current_scope__(), octave_function::dir_name(), dir_sep_str(), and symbol_scope::user_code().
Referenced by load_path::find_file().
OCTAVE_EXPORT octave_value_list Fpath | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2585 of file load-path.cc.
References load_path::dirs(), string_vector::list_in_columns(), octave_stdout, ovl(), load_path::path(), directory_path::path_sep_str(), rehash_internal(), and load_path::set().
OCTAVE_EXPORT octave_value_list Frehash | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 2507 of file load-path.cc.
References ovl(), and rehash_internal().
OCTAVE_EXPORT octave_value_list Frestoredefaultpath | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 2538 of file load-path.cc.
References load_path::initialize(), ovl(), print_usage(), and load_path::system_path().
OCTAVE_EXPORT octave_value_list Frmpath | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2780 of file load-path.cc.
References load_path::path(), print_usage(), rehash_internal(), load_path::remove(), split_path(), and warning().
Referenced by main_window::modify_path().
std::string genpath | ( | const std::string & | dirname, |
const string_vector & | skip | ||
) |
Definition at line 2413 of file load-path.cc.
References concat(), dirname(), get_dirlist(), len, string_vector::numel(), directory_path::path_sep_str(), and string_vector::sort().
Referenced by Fgenpath(), environment::init_image_path(), and maybe_add_path_elts().
load_path::dir_info::fcn_file_map_type get_fcn_files | ( | const std::string & | d | ) |
Definition at line 1338 of file load-path.cc.
|
static |
Definition at line 192 of file load-path.cc.
References directory_path::path_sep_char().
Referenced by load_path::package_info::add_to_fcn_map().
|
static |
Definition at line 86 of file load-path.cc.
References genpath(), maybe_canonicalize(), and directory_path::path_sep_str().
Referenced by load_path::initialize().
|
static |
Definition at line 58 of file load-path.cc.
References absolute_pathname(), and canonicalize_file_name().
Referenced by load_path::add(), load_path::find_dir(), load_path::find_dir_info(), load_path::find_matching_dirs(), maybe_add_path_elts(), and load_path::set().
|
static |
Definition at line 211 of file load-path.cc.
References __get_event_manager__(), __get_load_path__(), load_path::update(), event_manager::update_path_dialog(), and Vlast_prompt_time.
Referenced by Faddpath(), Fpath(), Frehash(), and Frmpath().
|
static |
Definition at line 100 of file load-path.cc.
References len, and directory_path::path_sep_char().
Referenced by Faddpath(), Frmpath(), and load_path::set().
|
static |
Definition at line 135 of file load-path.cc.
References is_dir_sep().
Referenced by load_path::add(), and load_path::remove().
|
static |
Definition at line 252 of file load-path.cc.
References concat(), d, len, string_vector::numel(), and warning().
Referenced by load_path::dir_info::update().