Classes | Namespaces | Typedefs | Functions
libpsi4util.h File Reference
#include <string>
#include <vector>
#include <algorithm>
#include <sys/time.h>

Go to the source code of this file.


class  psi::Timer


 This is all defined in initialize.


typedef std::vector< std::string > psi::strvec


std::string psi::file_to_string (std::string const &name)
bool psi::space (char c)
bool psi::not_space (char c)
std::vector< std::string > psi::split (const std::string &str)
std::vector< std::string > psi::split_indices (const std::string &str)
void psi::to_lower (std::string &str)
std::string psi::to_lower_copy (const std::string &str)
void psi::to_upper (std::string &str)
std::string psi::to_upper_copy (const std::string &str)
std::string psi::to_string (const int val)
std::string psi::to_string (const double val)
double psi::to_double (const std::string str)
int psi::to_integer (const std::string inString)
void psi::append_reference (std::string &str, int reference)
std::string psi::add_reference (std::string &str, int reference)
std::string psi::find_and_replace (std::string &source, const std::string &target, const std::string &replace)
void psi::trim_spaces (std::string &str)
template<typename Range1T , typename Range2T >
bool psi::iequals (const Range1T &Input, const Range2T &Test)
std::vector< std::string > psi::split (const std::string &input, const std::string &regex)
size_t psi::edit_distance (const std::string &s1, const std::string &s2)
 Compute the Levenshtein distance between two strings. More...
void psi::generate_combinations (int n, int k, std::vector< std::vector< int >> &combinations)