Psi4
Namespaces | Functions
stl_string.cc File Reference
#include <cstdlib>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <cstdio>
#include <sstream>
#include <libgen.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <limits.h>
#include "libpsi4util.h"

Namespaces

 psi
 Rotate a set of vectors around an arbitrary axis Vectors are rows of input matrix.
 

Functions

std::vector< std::string > psi::split (const std::string &str)
 
bool psi::opening_square_bracket (char c)
 
bool psi::closing_square_bracket (char c)
 
std::vector< std::string > psi::split_indices (const std::string &str)
 
bool psi::space (char c)
 
bool psi::not_space (char c)
 
std::string psi::find_and_replace (std::string &source, const std::string &target, const std::string &replace)
 
void psi::trim_spaces (std::string &str)
 
unsigned int psi::edit_distance (const std::string &s1, const std::string &s2)
 Compute the Levenshtein distance between two strings. More...
 
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)
 
double psi::to_double (const std::string str)
 
std::string psi::to_string (const int val)
 
std::string psi::to_string (const double val)
 
int psi::to_integer (const std::string inString)
 
std::string psi::add_reference (std::string &str, int reference)
 
void psi::append_reference (std::string &str, int reference)
 
double psi::to_MB (size_t n)
 
unsigned long int psi::init_smatrix (short **&matrix, int size1, int size2)
 
unsigned long int psi::free_smatrix (short **&matrix, int size1, int size2)
 
unsigned long int psi::init_smatrix (short ***&matrix, int size1, int size2, int size3)
 
unsigned long int psi::free_smatrix (short ***matrix, int size1, int size2, int size3)