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

Functions

std::string concat (const std::string &dir, const std::string &file)
 
char dev_sep_char ()
 
char dir_sep_char ()
 
std::string dir_sep_chars ()
 
std::string dir_sep_str ()
 
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
 

Function Documentation

◆ concat()

std::string octave::sys::file_ops::concat ( const std::string &  dir,
const std::string &  file 
)

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

References dir_sep_char(), and is_dir_sep().

◆ dev_sep_char()

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

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

◆ dir_sep_char()

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

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

◆ dir_sep_chars()

std::string octave::sys::file_ops::dir_sep_chars ( )

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

References dir_sep_str().

Referenced by Fdrawnow().

◆ dir_sep_str()

std::string octave::sys::file_ops::dir_sep_str ( )

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

◆ dirname()

std::string octave::sys::file_ops::dirname ( const std::string &  path)

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

References dir_sep_chars().

◆ is_dev_sep()

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

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

References dev_sep_char().

◆ is_dir_sep()

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

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

References dir_sep_chars().

◆ native_separator_path()

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

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

References dir_sep_char(), and n.

◆ tail()

std::string octave::sys::file_ops::tail ( const std::string &  path)

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

References dir_sep_chars().

◆ tilde_expand() [1/2]

◆ tilde_expand() [2/2]

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

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

References n, and string_vector::numel().

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.

◆ tilde_additional_suffixes

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

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

◆ 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.

◆ 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.