#include "pathsearch.h"
Public Member Functions | |
directory_path (const directory_path &)=default | |
directory_path (const std::string &s="") | |
~directory_path (void)=default | |
std::list< std::string > | all_directories (void) |
std::list< std::string > | elements (void) |
std::string | find (const std::string &nm) |
std::list< std::string > | find_all (const std::string &) |
std::list< std::string > | find_all_first_of (const std::list< std::string > &names) |
std::string | find_first (const std::string &) |
std::string | find_first_of (const std::list< std::string > &names) |
directory_path & | operator= (const directory_path &)=default |
void | rehash (void) |
void | set (const std::string &s) |
Static Public Member Functions | |
static bool | is_path_sep (char c) |
static char | path_sep_char (void) |
static std::string | path_sep_str (void) |
Private Member Functions | |
void | init (void) |
Private Attributes | |
std::string | m_expanded_path |
bool | m_initialized |
std::string | m_orig_path |
std::list< std::string > | m_path_elements |
Definition at line 36 of file pathsearch.h.
directory_path::directory_path | ( | const std::string & | s = "" | ) |
Definition at line 42 of file pathsearch.cc.
|
default |
|
default |
std::list< std::string > directory_path::all_directories | ( | void | ) |
Definition at line 55 of file pathsearch.cc.
References kpse_element_dir(), m_initialized, and m_path_elements.
std::list< std::string > directory_path::elements | ( | void | ) |
Definition at line 50 of file pathsearch.cc.
References m_initialized, and m_path_elements.
|
inline |
Definition at line 63 of file pathsearch.h.
std::list< std::string > directory_path::find_all | ( | const std::string & | nm | ) |
Definition at line 78 of file pathsearch.cc.
References kpse_all_path_search(), m_expanded_path, and m_initialized.
std::list< std::string > directory_path::find_all_first_of | ( | const std::list< std::string > & | names | ) |
Definition at line 93 of file pathsearch.cc.
References kpse_all_path_find_first_of(), m_expanded_path, and m_initialized.
Referenced by search_path_for_all_files().
std::string directory_path::find_first | ( | const std::string & | nm | ) |
Definition at line 73 of file pathsearch.cc.
References kpse_path_search(), m_expanded_path, and m_initialized.
std::string directory_path::find_first_of | ( | const std::list< std::string > & | names | ) |
Definition at line 86 of file pathsearch.cc.
References kpse_path_find_first_of(), m_expanded_path, and m_initialized.
Referenced by search_path_for_file().
|
private |
Definition at line 100 of file pathsearch.cc.
References kpse_debug, kpse_path_expand(), m_expanded_path, m_initialized, m_orig_path, m_path_elements, and pi.
|
inlinestatic |
Definition at line 84 of file pathsearch.h.
|
default |
|
static |
Definition at line 122 of file pathsearch.cc.
Referenced by in_path_list(), and split_path().
|
static |
Definition at line 127 of file pathsearch.cc.
Referenced by append_to_shell_path(), Fpath(), Fpathsep(), genpath(), environment::init_exec_path(), environment::init_image_path(), load_path::initialize(), maybe_add_path_elts(), load_path::path(), load_path::set_command_line_path(), and set_path_model::to_string().
|
inline |
Definition at line 72 of file pathsearch.h.
|
inline |
Definition at line 50 of file pathsearch.h.
|
private |
Definition at line 96 of file pathsearch.h.
Referenced by find_all(), find_all_first_of(), find_first(), find_first_of(), and init().
|
private |
Definition at line 92 of file pathsearch.h.
Referenced by all_directories(), elements(), find_all(), find_all_first_of(), find_first(), find_first_of(), and init().
|
private |
Definition at line 89 of file pathsearch.h.
Referenced by init().
|
private |
Definition at line 99 of file pathsearch.h.
Referenced by all_directories(), elements(), and init().