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 <regex>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <limits.h>
#include "libpsi4util.h"

Namespaces

 psi
 This is all defined in python.cc initialize.
 

Functions

std::vector< std::string > psi::split (const std::string &str)
 
std::vector< std::string > psi::split (const std::string &input, const std::string &regex)
 
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)
 
size_t 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)