GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
shared-fcns.h File Reference
#include <cctype>
Include dependency graph for shared-fcns.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static bool absolute_pathname (const std::string &s)
 
static bool is_dir_sep (char c)
 
static std::string octave_getenv (const std::string &name)
 
static std::string prepend_home_dir (const std::string &hd, const std::string &s)
 
static std::string prepend_octave_exec_home (const std::string &s)
 
static OCTAVE_UNUSED std::string prepend_octave_home (const std::string &s)
 
static void set_octave_home (void)
 

Variables

static const char dir_sep_char = '/'
 
static std::string dir_sep_chars = "/"
 
static std::string Voctave_exec_home
 
static std::string Voctave_home
 

Function Documentation

◆ absolute_pathname()

static bool absolute_pathname ( const std::string &  s)
static

Definition at line 142 of file shared-fcns.h.

References is_dir_sep(), and len.

Referenced by prepend_home_dir().

◆ is_dir_sep()

static bool is_dir_sep ( char  c)
static

Definition at line 136 of file shared-fcns.h.

References dir_sep_chars.

Referenced by absolute_pathname().

◆ octave_getenv()

static std::string octave_getenv ( const std::string &  name)
static

Definition at line 94 of file shared-fcns.h.

References name.

Referenced by get_octave_archlibdir(), get_octave_bindir(), get_temp_directory(), and set_octave_home().

◆ prepend_home_dir()

static std::string prepend_home_dir ( const std::string &  hd,
const std::string &  s 
)
static

Definition at line 163 of file shared-fcns.h.

References absolute_pathname(), dir_sep_char, and retval.

Referenced by prepend_octave_exec_home(), and prepend_octave_home().

◆ prepend_octave_exec_home()

static std::string prepend_octave_exec_home ( const std::string &  s)
static

◆ prepend_octave_home()

static OCTAVE_UNUSED std::string prepend_octave_home ( const std::string &  s)
static

Definition at line 183 of file shared-fcns.h.

References prepend_home_dir(), and Voctave_home.

Referenced by initialize().

◆ set_octave_home()

static void set_octave_home ( void  )
static

Definition at line 105 of file shared-fcns.h.

References OCTAVE_EXEC_PREFIX, octave_getenv(), OCTAVE_PREFIX, Voctave_exec_home, and Voctave_home.

Referenced by initialize(), and main().

Variable Documentation

◆ dir_sep_char

const char dir_sep_char ( void  ) = '/'
static

Definition at line 84 of file shared-fcns.h.

Referenced by main(), octave::config::prepend_home_dir(), and prepend_home_dir().

◆ dir_sep_chars

std::string dir_sep_chars ( void  ) = "/"
static

Definition at line 90 of file shared-fcns.h.

Referenced by is_dir_sep().

◆ Voctave_exec_home

std::string Voctave_exec_home
static

Definition at line 102 of file shared-fcns.h.

Referenced by initialize(), prepend_octave_exec_home(), and set_octave_home().

◆ Voctave_home

std::string Voctave_home
static

Definition at line 101 of file shared-fcns.h.

Referenced by initialize(), prepend_octave_home(), and set_octave_home().