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.
OCTAVE_API std::string octave::sys::file_ops::concat | ( | const std::string & | dir, |
const std::string & | file | ||
) |
Definition at line 349 of file file-ops.cc.
References dir_sep_char(), and is_dir_sep().
Referenced by octave::bp_file_info::bp_file_info(), and octave::latex_renderer::write_tex_file().
OCTAVE_API char octave::sys::file_ops::dev_sep_char | ( | void | ) |
Definition at line 220 of file file-ops.cc.
Referenced by is_dev_sep().
OCTAVE_API char octave::sys::file_ops::dir_sep_char | ( | void | ) |
Definition at line 229 of file file-ops.cc.
Referenced by concat(), native_separator_path(), octave::sys::tempnam(), and octave::sys::windows_glob().
OCTAVE_API std::string octave::sys::file_ops::dir_sep_chars | ( | void | ) |
Definition at line 247 of file file-ops.cc.
References dir_sep_str().
Referenced by octave::bp_file_info::bp_file_info(), dirname(), octave::sys::env::do_base_pathname(), octave::sys::env::do_make_absolute(), octave::sys::env::do_set_program_name(), Fdrawnow(), octave::sys::get_ASCII_filename(), is_dir_sep(), octave::base_parser::make_classdef(), read_mat5_binary_element(), octave::base_parser::start_function(), tail(), and octave::sys::windows_glob().
OCTAVE_API std::string octave::sys::file_ops::dir_sep_str | ( | void | ) |
Definition at line 238 of file file-ops.cc.
Referenced by octave::documentation::documentation(), tree_evaluator::check_autoload_file(), history_system::default_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_get_user_data_directory(), octave::sys::env::do_make_absolute(), interpreter::execute_startup_files(), F__ftp_mget__(), F__parse_file__(), Ffilesep(), load_path::find_dir(), load_path::find_matching_dirs(), find_private_file(), octave::sys::get_ASCII_filename(), get_help_from_file(), initial_class_path(), initial_java_dir(), initialize_jvm(), load_fcn_from_file(), octave::base_url_transfer::mget_directory(), octave::base_url_transfer::mput_directory(), load_path::read_dir_config(), octave::sys::recursive_rmdir(), tree_evaluator::source_file(), and xzip().
OCTAVE_API std::string octave::sys::file_ops::dirname | ( | const std::string & | path | ) |
Definition at line 358 of file file-ops.cc.
References dir_sep_chars(), and path.
Referenced by octave::bp_file_info::bp_file_info(), octave::FileDialog::FileDialog(), F__mkdir__(), Fcd(), Fdrawnow(), Fgenpath(), event_manager::file_dialog(), octave::QUIWidgetCreator::file_dialog(), scoped_fcn_handle::find_function(), Freaddir(), Frmdir(), genpath(), octave::sys::get_dirlist(), octave::QUIWidgetCreator::handle_create_filedialog(), and octave::tilde_expand_word().
OCTAVE_API bool octave::sys::file_ops::is_dev_sep | ( | char | c | ) |
Definition at line 264 of file file-ops.cc.
References dev_sep_char().
OCTAVE_API bool octave::sys::file_ops::is_dir_sep | ( | char | c | ) |
Definition at line 275 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::isolate_tilde_prefix(), octave::sys::env::pathname_backup(), octave::tilde_expand_word(), octave::tilde_find_suffix(), octave::sys::file_stat::update_internal(), and octave::sys::windows_glob().
OCTAVE_API std::string octave::sys::file_ops::native_separator_path | ( | const std::string & | path | ) |
Definition at line 377 of file file-ops.cc.
References dir_sep_char(), and path.
Referenced by F__fltk_uigetfile__().
OCTAVE_API std::string octave::sys::file_ops::tail | ( | const std::string & | path | ) |
Definition at line 365 of file file-ops.cc.
References dir_sep_chars(), and path.
Referenced by octave::bp_file_info::bp_file_info().
OCTAVE_API std::string octave::sys::file_ops::tilde_expand | ( | const std::string & | name | ) |
Definition at line 281 of file file-ops.cc.
References len, name, octave::tilde_expand_word(), octave::tilde_find_prefix(), and octave::tilde_find_suffix().
Referenced by load_path::add(), interpreter::chdir(), octave::sys::chdir(), do_stream_open(), F__fnmatch__(), F__ftp_mput__(), F__mkdir__(), F__parse_file__(), F__wglob__(), Fdlmread(), Fglob(), load_path::find_dir_info(), Flink(), Freaddir(), Freadlink(), Frename(), Frmdir(), Fsymlink(), Ftilde_expand(), initial_class_path(), load_save_system::load(), octave::sys::dir_entry::open(), read_classpath_txt(), octave::command_editor::read_init_file(), load_path::remove(), load_save_system::save(), octave::command_history::set_file(), tree_evaluator::source_file(), tilde_expand(), octave::sys::file_stat::update_internal(), and xzip().
OCTAVE_API string_vector octave::sys::file_ops::tilde_expand | ( | const string_vector & | names | ) |
Definition at line 337 of file file-ops.cc.
References string_vector::numel(), and tilde_expand().
OCTAVE_API string_vector octave::sys::file_ops::tilde_additional_prefixes = default_prefixes |
Definition at line 260 of file file-ops.cc.
Referenced by octave::tilde_find_prefix().
OCTAVE_API string_vector octave::sys::file_ops::tilde_additional_suffixes = default_suffixes |
Definition at line 262 of file file-ops.cc.
Referenced by octave::tilde_find_suffix().
OCTAVE_API tilde_expansion_hook octave::sys::file_ops::tilde_expansion_failure_hook = nullptr |
Definition at line 258 of file file-ops.cc.
Referenced by octave::tilde_expand_word().
OCTAVE_API tilde_expansion_hook octave::sys::file_ops::tilde_expansion_preexpansion_hook = nullptr |
Definition at line 256 of file file-ops.cc.
Referenced by octave::tilde_expand_word().