GNU Octave  4.4.1
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 139 of file shared-fcns.h.

References is_dir_sep(), and s.

Referenced by prepend_home_dir().

◆ is_dir_sep()

static bool is_dir_sep ( char  c)
static

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

References c, and dir_sep_chars.

Referenced by absolute_pathname().

◆ octave_getenv()

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

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

References name, and value.

Referenced by get_octave_archlibdir(), get_octave_bindir(), 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 160 of file shared-fcns.h.

References absolute_pathname(), dir_sep_char, retval, s, and string.

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

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

References prepend_home_dir(), s, and Voctave_exec_home.

Referenced by get_octave_archlibdir(), get_octave_bindir(), and initialize().

◆ prepend_octave_home()

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

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

References prepend_home_dir(), s, and Voctave_home.

Referenced by initialize().

◆ set_octave_home()

static void set_octave_home ( void  )
static

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

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

Referenced by initialize(), and main().

Variable Documentation

◆ dir_sep_char

const char dir_sep_char = '/'
static

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

Referenced by main(), and prepend_home_dir().

◆ dir_sep_chars

std::string dir_sep_chars = "/"
static

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

Referenced by is_dir_sep().

◆ Voctave_exec_home

std::string Voctave_exec_home
static

Definition at line 99 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 98 of file shared-fcns.h.

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