|
static bool | string_starts_with (const std::string &str, const std::string &start) |
|
static void | check_open (std::ifstream &f, const std::string &fname) |
|
static bool | file_exists (const std::string &filename) |
|
static std::string | find_resource_file (const std::string &resources_dir, const std::string &resourcename, const std::string &default_suffix=".dat") |
|
static std::string | find_resource_file_nocheck (const std::string &resources_dir, const std::string &resourcename, const std::string &default_suffix=".dat") |
|
static std::string | trim (const std::string &s, const std::string &ws=" \t") |
|
static bool | isDouble (const std::string &s) |
|
static bool | isBool (const std::string &s) |
|
static bool | checkForDouble (const std::string &s, double *d) |
|
static bool | checkForDouble (std::istream &ssin, double *d) |
|
static double | readDouble (const std::string &s, const std::string &field="") |
|
static double | readDouble (std::istream &ssin, const std::string &field="") |
|
static std::complex< double > | readComplex (std::istream &ssin, const std::string &field="") |
|
static std::complex< double > | readComplex (const std::string &s, const std::string &field="") |
|
static bool | readBool (const std::string &s, const std::string &field="") |
|
static bool | readBool (std::istream &ssin, const std::string &field="") |
|
static size_t | readSizeT (const std::string &s, const std::string &field="") |
|
static std::string | toString (double d) |
|
static size_t | countLinesInFile (const std::string &fname) |
|
static bool | lineIsRelevant (const std::string &line) |
|
static bool | getRelevantLine (std::istream &istr, std::string &line) |
|
static bool | getRelevantLineTokens (std::istream &istr, std::vector< std::string > &toks) |
|
static bool | getRelevantLineVecXd (std::istream &istr, std::vector< double > &v) |
|
static size_t | countRelevantLinesInFile (const std::string &fname) |
|
static std::string | search_next_line_starting_with (std::istream &f, const std::string &search) |
|
static std::string | search_first_line_starting_with (const std::string &filename, const std::string &search) |
|
static std::string | search_first_line_starting_with_check (const std::string &filename, const std::string &search) |
|
static std::vector< std::string > | search_lines_starting_with (const std::string &filename, const std::string &search) |
|
static std::string | token (const std::string &str, int i) |
|
static std::vector< std::string > | tokenize (const std::string &line) |
|
static std::vector< double > | line_to_VecXd (const std::string &line, size_t col=0) |
|
static std::vector< double > | StringVec_to_VecXd (const std::vector< std::string > &stingvec, size_t col=0) |
|
static double | read_double_parameter_from_file (const std::string &filename, const std::string &search, double def, bool *found=NULL) |
|
static double | check_read_double_parameter_from_file (const std::string &filename, const std::string &search) |
|
static bool | read_bool_parameter_from_file (const std::string &filename, const std::string &search, bool def) |
|
static bool | check_read_bool_parameter_from_file (const std::string &filename, const std::string &search) |
|
static std::string | read_string_parameter_from_file (const std::string &filename, const std::string &search, const std::string &def) |
|
static std::string | check_read_string_parameter_from_file (const std::string &filename, const std::string &search) |
|
static std::string | check_read_parameter_line_from_file (const std::string &filename, const std::string &search) |
|
static double | check_line_is_double_parameter (const std::string &line, const std::string ¶meter, const std::string &context="") |
|
static std::string | to_string (int i) |
|
static std::string | condenseDouble (const double d, int figure=8) |
|
static std::string | condenseComplex (const std::complex< double > d, int figure=8) |
|
static Vec3d | StringVec_to_Vec3d (const std::vector< std::string > sv, const std::string &add_to_error_msg) |
|
static std::string | filename_from_pattern (const std::string &filename_pattern, int i) |
|
static void | replace_in_string (std::string &str, const std::string &pattern, const std::string &replace) |
|
static std::string | get_base_dir (const std::string &filename) |
|
static std::string | remove_dir (const std::string &filename) |
|
static std::string | remove_dir_and_dotdat (const std::string &filename) |
|
static int | get_nr_relevant_lines_in_file (const std::string &filename) |
|