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

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)
 

Variables

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 43 of file file-ops.h.

Function Documentation

◆ concat()

◆ dev_sep_char()

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

Definition at line 225 of file file-ops.cc.

Referenced by is_dev_sep().

◆ dir_sep_char()

◆ dir_sep_chars()

◆ dir_sep_str()

◆ dirname()

◆ is_dev_sep()

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

Definition at line 269 of file file-ops.cc.

References 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 382 of file file-ops.cc.

References dir_sep_char(), n, path, and retval.

Referenced by F__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 342 of file file-ops.cc.

References n, string_vector::numel(), retval, and tilde_expand().

Variable Documentation

◆ tilde_additional_prefixes

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().

◆ tilde_additional_suffixes

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_failure_hook

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_preexpansion_hook

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().