DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
dftfe::utils::stringOps Namespace Reference

Functions

bool strToInt (const std::string s, int &i)
 
bool strToDouble (const std::string s, double &x)
 
void trim (std::string &s)
 
std::string trimCopy (const std::string &s)
 
std::vector< std::string > split (const std::string &inpStr, std::string delimiter=" ", bool skipAdjacentDelimiters=true, bool skipLeadTrailWhiteSpace=true)
 

Function Documentation

◆ split()

std::vector< std::string > dftfe::utils::stringOps::split ( const std::string & inpStr,
std::string delimiter = " ",
bool skipAdjacentDelimiters = true,
bool skipLeadTrailWhiteSpace = true )

◆ strToDouble()

bool dftfe::utils::stringOps::strToDouble ( const std::string s,
double & x )

◆ strToInt()

bool dftfe::utils::stringOps::strToInt ( const std::string s,
int & i )

◆ trim()

void dftfe::utils::stringOps::trim ( std::string & s)

◆ trimCopy()

std::string dftfe::utils::stringOps::trimCopy ( const std::string & s)