Typedefs | |
typedef std::string(* | tilde_expansion_hook) (const std::string &) |
Functions | |
std::string | concat (const std::string &dir, const std::string &file) |
char | dev_sep_char (void) |
char | dir_sep_char (void) |
std::string | dir_sep_chars (void) |
std::string | dir_sep_str (void) |
std::string | dirname (const std::string &path) |
bool | is_dev_sep (char c) |
bool | is_dir_sep (char c) |
std::string | native_separator_path (const std::string &path) |
std::string | tail (const std::string &path) |
std::string | tilde_expand (const std::string &name) |
string_vector | tilde_expand (const string_vector &names) |
typedef std::string(* octave::sys::file_ops::tilde_expansion_hook) (const std::string &) |
Definition at line 43 of file file-ops.h.
std::string octave::sys::file_ops::concat | ( | const std::string & | dir, |
const std::string & | file | ||
) |
Definition at line 354 of file file-ops.cc.
References dir_sep_char(), and is_dir_sep().
Referenced by octave::file_editor_tab::bp_info::bp_info(), octave::load_path::package_info::add_to_fcn_map(), octave::load_path::package_info::add_to_method_map(), octave::contents_file_in_path(), octave::history_system::default_file(), octave::load_path::package_info::display(), octave::load_path::execute_pkg_add_or_del(), F__mkdir__(), octave::load_path::find_all_first_of(), octave::load_path::package_info::find_fcn(), octave::load_path::find_file(), octave::load_path::find_first_of(), octave::load_path::package_info::find_method(), octave::load_path::package_info::find_private_fcn(), octave::genpath(), octave::load_path::dir_info::get_file_list(), octave::load_path::dir_info::get_method_file_map(), octave::load_path::package_info::move_method_map(), octave::load_path::package_info::remove_method_map(), octave::load_path::dir_info::update(), and octave::xzip().
char octave::sys::file_ops::dev_sep_char | ( | void | ) |
Definition at line 225 of file file-ops.cc.
Referenced by is_dev_sep().
char octave::sys::file_ops::dir_sep_char | ( | void | ) |
Definition at line 234 of file file-ops.cc.
Referenced by concat(), octave::tree_evaluator::get_user_code(), octave::tree_evaluator::mfilename(), native_separator_path(), octave::config::prepend_home_dir(), and octave::sys::tempnam().
std::string octave::sys::file_ops::dir_sep_chars | ( | void | ) |
Definition at line 252 of file file-ops.cc.
References dir_sep_str().
Referenced by octave::file_editor_tab::bp_info::bp_info(), dirname(), octave::sys::env::do_base_pathname(), octave::sys::env::do_make_absolute(), octave::sys::env::do_set_program_name(), Faddpath(), Fdrawnow(), Ffilesep(), octave::load_path::find_all_first_of(), octave::fcn_info::fcn_info_rep::find_autoload(), octave::load_path::find_dir(), octave::load_path::find_file(), octave::find_file_to_load(), octave::load_path::find_first_of(), octave::scoped_fcn_handle::find_function(), octave::load_path::find_matching_dirs(), octave::sys::get_ASCII_filename(), is_dir_sep(), octave::fcn_info::fcn_info_rep::load_private_function(), octave::base_parser::make_classdef(), read_mat5_binary_element(), octave::application::set_program_names(), octave::tree_evaluator::source_file(), octave::base_parser::start_function(), and tail().
std::string octave::sys::file_ops::dir_sep_str | ( | void | ) |
Definition at line 243 of file file-ops.cc.
Referenced by octave::documentation::documentation(), octave::tree_evaluator::check_autoload_file(), octave::default_qt_settings_file(), dir_sep_chars(), octave::ft_manager::do_get_font(), octave::sys::env::do_get_home_directory(), octave::sys::env::do_get_user_config_directory(), octave::sys::env::do_make_absolute(), octave::interpreter::execute_startup_files(), F__ftp_mget__(), F__parse_file__(), Ffilesep(), octave::load_path::find_dir(), octave::load_path::find_matching_dirs(), octave::find_private_file(), octave::sys::get_ASCII_filename(), octave::get_help_from_file(), initial_class_path(), initial_java_dir(), initialize_jvm(), octave::load_fcn_from_file(), octave::base_url_transfer::mget_directory(), octave::base_url_transfer::mput_directory(), octave::sys::recursive_rmdir(), octave::tree_evaluator::source_file(), and octave::xzip().
std::string octave::sys::file_ops::dirname | ( | const std::string & | path | ) |
Definition at line 363 of file file-ops.cc.
References dir_sep_chars(), and path.
Referenced by octave::FileDialog::FileDialog(), F__mkdir__(), Fcd(), Fdrawnow(), Fgenpath(), octave::event_manager::file_dialog(), octave::QUIWidgetCreator::file_dialog(), octave::scoped_fcn_handle::find_function(), Freaddir(), Frmdir(), octave::genpath(), octave::sys::get_dirlist(), octave::QUIWidgetCreator::handle_create_filedialog(), and octave::tilde_expand_word().
bool octave::sys::file_ops::is_dev_sep | ( | char | c | ) |
Definition at line 269 of file file-ops.cc.
References dev_sep_char().
bool octave::sys::file_ops::is_dir_sep | ( | char | c | ) |
Definition at line 280 of file file-ops.cc.
References dir_sep_chars().
Referenced by concat(), octave::sys::env::do_absolute_pathname(), octave::sys::env::do_chdir(), octave::sys::env::do_make_absolute(), octave::sys::env::do_polite_directory_format(), octave::sys::env::do_rooted_relative_pathname(), octave::load_path::find_dir(), octave::load_path::find_matching_dirs(), octave::isolate_tilde_prefix(), octave::sys::env::pathname_backup(), octave::strip_trailing_separators(), octave::tilde_expand_word(), octave::tilde_find_suffix(), and octave::sys::file_stat::update_internal().
std::string octave::sys::file_ops::native_separator_path | ( | const std::string & | path | ) |
Definition at line 382 of file file-ops.cc.
References dir_sep_char(), n, path, and retval.
Referenced by F__fltk_uigetfile__().
std::string octave::sys::file_ops::tail | ( | const std::string & | path | ) |
Definition at line 370 of file file-ops.cc.
References dir_sep_chars(), and path.
Referenced by octave::jit_convert::visit_do_until_command(), octave::jit_convert::visit_if_command_list(), octave::jit_convert::visit_simple_for_command(), octave::jit_convert::visit_switch_command(), and octave::jit_convert::visit_while_command().
std::string octave::sys::file_ops::tilde_expand | ( | const std::string & | name | ) |
Definition at line 286 of file file-ops.cc.
References len, name, octave::tilde_expand_word(), octave::tilde_find_prefix(), and octave::tilde_find_suffix().
Referenced by octave::load_path::add(), octave::interpreter::chdir(), octave::sys::chdir(), do_stream_open(), F__fnmatch__(), F__ftp_mput__(), F__mkdir__(), F__parse_file__(), F__wglob__(), Fdlmread(), Fglob(), octave::load_path::find_dir_info(), Flink(), Freaddir(), Freadlink(), Frename(), Frmdir(), Fsymlink(), Ftilde_expand(), initial_class_path(), octave::load_save_system::load(), octave::sys::dir_entry::open(), read_classpath_txt(), octave::command_editor::read_init_file(), octave::load_path::remove(), octave::load_save_system::save(), octave::command_history::set_file(), octave::tree_evaluator::source_file(), tilde_expand(), octave::sys::file_stat::update_internal(), and octave::xzip().
string_vector octave::sys::file_ops::tilde_expand | ( | const string_vector & | names | ) |
Definition at line 342 of file file-ops.cc.
References n, string_vector::numel(), retval, and tilde_expand().
string_vector octave::sys::file_ops::tilde_additional_prefixes = default_prefixes |
Definition at line 265 of file file-ops.cc.
Referenced by octave::tilde_find_prefix().
string_vector octave::sys::file_ops::tilde_additional_suffixes = default_suffixes |
Definition at line 267 of file file-ops.cc.
Referenced by octave::tilde_find_suffix().
tilde_expansion_hook octave::sys::file_ops::tilde_expansion_failure_hook = nullptr |
Definition at line 263 of file file-ops.cc.
Referenced by octave::tilde_expand_word().
tilde_expansion_hook octave::sys::file_ops::tilde_expansion_preexpansion_hook = nullptr |
Definition at line 261 of file file-ops.cc.
Referenced by octave::tilde_expand_word().