|
| std::vector< int > | lbann::get_tokens (std::string str, const std::vector< char > delims) |
| |
| std::vector< std::string > | lbann::get_tokens (const std::string str, const std::string delims=" :;\\) |
| | Tokenize a string into substrings by set of delimiter characters. More...
|
| |
| bool | lbann::parse_path (const std::string &path, std::string &dir, std::string &basename) |
| |
| std::string | lbann::get_ext_name (const std::string file_name) |
| |
| std::string | lbann::get_basename_without_ext (const std::string file_name) |
| |
| std::string | lbann::add_delimiter (const std::string dir) |
| |
| std::string | lbann::modify_file_name (const std::string file_name, const std::string tag, const std::string new_ext="") |
| |
| bool | lbann::check_if_file_exists (const std::string &filename) |
| |
| bool | lbann::check_if_dir_exists (const std::string &dirname) |
| |
| bool | lbann::create_dir (const std::string output_dir) |
| |
| bool | lbann::load_file (const std::string filename, std::vector< char > &buf, bool append=false) |
| |
| void | lbann::__swapEndianInt (unsigned int &ui) |
| |
| template<typename T > |
| std::basic_string< T > | lbann::pad (const std::basic_string< T > &s, typename std::basic_string< T >::size_type n, T c) |
| |
| template<typename... PathNameType> |
| std::string | lbann::file::join_path (PathNameType &&... paths) |
| | Concatenate all paths, injecting path separators between each argument. More...
|
| |
| std::string | lbann::file::extract_parent_directory (const std::string &path) |
| | Wrapper around dirname. More...
|
| |
| std::string | lbann::file::extract_base_name (const std::string &path) |
| | Wrapper around basename. More...
|
| |
| bool | lbann::file::file_exists (const std::string &path) |
| | Check if file exists. More...
|
| |
| bool | lbann::file::directory_exists (const std::string &path) |
| | Check if directory exists. More...
|
| |
| void | lbann::file::make_directory (const std::string &path) |
| | Create directory if needed. More...
|
| |
| void | lbann::file::remove_multiple_slashes (std::string &str) |
| |