GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::sys::file_ops Namespace Reference


typedef std::string(* tilde_expansion_hook) (const std::string &)


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)


string_vector tilde_additional_prefixes = default_prefixes
string_vector tilde_additional_suffixes = default_suffixes
tilde_expansion_hook tilde_expansion_failure_hook = nullptr
tilde_expansion_hook tilde_expansion_preexpansion_hook = nullptr

Typedef Documentation

◆ tilde_expansion_hook

typedef std::string(* octave::sys::file_ops::tilde_expansion_hook) (const std::string &)

Definition at line 40 of file file-ops.h.

Function Documentation

◆ concat()

◆ dev_sep_char()

char octave::sys::file_ops::dev_sep_char ( void  )

Definition at line 215 of file

Referenced by is_dev_sep().

◆ dir_sep_char()

char octave::sys::file_ops::dir_sep_char ( void  )

◆ dir_sep_chars()

◆ dir_sep_str()

◆ dirname()

◆ is_dev_sep()

bool octave::sys::file_ops::is_dev_sep ( char  c)

Definition at line 259 of file

References c, and dev_sep_char().

◆ is_dir_sep()

◆ native_separator_path()

std::string octave::sys::file_ops::native_separator_path ( const std::string path)

Definition at line 372 of file

References dir_sep_char(), i, octave_value::length(), retval, and string.

Referenced by G__fltk_uigetfile__().

◆ tail()

◆ tilde_expand() [1/2]

◆ tilde_expand() [2/2]

string_vector octave::sys::file_ops::tilde_expand ( const string_vector names)

Definition at line 332 of file

References i, Array< T >::numel(), retval, and tilde_expand().

Variable Documentation

◆ tilde_additional_prefixes

string_vector octave::sys::file_ops::tilde_additional_prefixes = default_prefixes

Definition at line 255 of file

Referenced by tilde_find_prefix().

◆ tilde_additional_suffixes

string_vector octave::sys::file_ops::tilde_additional_suffixes = default_suffixes

Definition at line 257 of file

Referenced by tilde_find_suffix().

◆ tilde_expansion_failure_hook

tilde_expansion_hook octave::sys::file_ops::tilde_expansion_failure_hook = nullptr

Definition at line 253 of file

Referenced by tilde_expand_word().

◆ tilde_expansion_preexpansion_hook

tilde_expansion_hook octave::sys::file_ops::tilde_expansion_preexpansion_hook = nullptr

Definition at line 251 of file

Referenced by tilde_expand_word().