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 40 of file file-ops.h.
std::string octave::sys::file_ops::concat | ( | const std::string & | dir, |
const std::string & | file | ||
) |
Definition at line 344 of file file-ops.cc.
References dir_sep_char(), file, and is_dir_sep().
Referenced by octave::load_path::package_info::add_to_fcn_map(), octave::load_path::package_info::add_to_method_map(), octave::file_editor_tab::bp_info::bp_info(), default_history_file(), octave::load_path::package_info::display(), execute_pkg_add_or_del(), 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 215 of file file-ops.cc.
Referenced by is_dev_sep().
char octave::sys::file_ops::dir_sep_char | ( | void | ) |
Definition at line 224 of file file-ops.cc.
Referenced by concat(), octave::get_user_code(), native_separator_path(), prepend_home_dir(), and octave::sys::tempnam().
std::string octave::sys::file_ops::dir_sep_chars | ( | void | ) |
Definition at line 242 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(), 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(), find_file_to_load(), octave::load_path::find_first_of(), octave::load_path::find_matching_dirs(), is_dir_sep(), octave::fcn_info::fcn_info_rep::load_private_function(), looks_like_struct(), read_mat5_binary_element(), octave_fcn_handle::set_fcn(), and tail().
std::string octave::sys::file_ops::dir_sep_str | ( | void | ) |
Definition at line 233 of file file-ops.cc.
Referenced by 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_make_absolute(), octave::documentation::documentation(), F__ftp_mget__(), octave::load_path::find_dir(), octave::symbol_table::find_function(), octave::load_path::find_matching_dirs(), find_private_file(), octave::symbol_table::find_submethod(), initial_class_path(), initial_java_dir(), initialize_jvm(), octave::base_url_transfer::mget_directory(), octave::base_url_transfer::mput_directory(), and octave::sys::recursive_rmdir().
std::string octave::sys::file_ops::dirname | ( | const std::string & | path | ) |
Definition at line 353 of file file-ops.cc.
References dir_sep_chars().
Referenced by octave_link::file_dialog(), octave::FileDialog::FileDialog(), Freaddir(), octave::genpath(), octave::main_window::handle_create_filedialog(), octave::QUIWidgetCreator::signal_filedialog(), and tilde_expand_word().
bool octave::sys::file_ops::is_dev_sep | ( | char | c | ) |
Definition at line 259 of file file-ops.cc.
References c, and dev_sep_char().
bool octave::sys::file_ops::is_dir_sep | ( | char | c | ) |
Definition at line 270 of file file-ops.cc.
References c, dir_sep_chars(), string, and tmp.
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(), isolate_tilde_prefix(), octave::sys::env::pathname_backup(), strip_trailing_separators(), tilde_expand_word(), 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 372 of file file-ops.cc.
References dir_sep_char(), i, octave_value::length(), retval, and string.
Referenced by G__fltk_uigetfile__().
std::string octave::sys::file_ops::tail | ( | const std::string & | path | ) |
Definition at line 360 of file file-ops.cc.
References dir_sep_chars().
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 276 of file file-ops.cc.
References name, result, start, string, tilde_expand_word(), tilde_find_prefix(), and tilde_find_suffix().
Referenced by octave::load_path::add(), octave::sys::chdir(), F__ftp_mput__(), octave::load_path::find_dir_info(), Freaddir(), initial_class_path(), octave_change_to_directory(), octave::sys::dir_entry::open(), read_classpath_txt(), octave::command_editor::read_init_file(), octave::load_path::remove(), octave::command_history::set_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 332 of file file-ops.cc.
References i, Array< T >::numel(), retval, and tilde_expand().
string_vector octave::sys::file_ops::tilde_additional_prefixes = default_prefixes |
Definition at line 255 of file file-ops.cc.
Referenced by tilde_find_prefix().
string_vector octave::sys::file_ops::tilde_additional_suffixes = default_suffixes |
Definition at line 257 of file file-ops.cc.
Referenced by tilde_find_suffix().
tilde_expansion_hook octave::sys::file_ops::tilde_expansion_failure_hook = nullptr |
Definition at line 253 of file file-ops.cc.
Referenced by tilde_expand_word().
tilde_expansion_hook octave::sys::file_ops::tilde_expansion_preexpansion_hook = nullptr |
Definition at line 251 of file file-ops.cc.
Referenced by tilde_expand_word().