MUQ  0.4.3
muq::Utilities::StringUtilities Namespace Reference

Functions

std::vector< std::string > Split (std::string str, char delim=',')
 Split a string into parts based on a particular character delimiter. Also Strips whitespace from parts. More...
 
std::string Strip (std::string str)
 Strip the whitespace off the beginning and end of a string. More...
 
std::string Combine (std::vector< std::string > strs, char delim=',')
 Combine a vector of strings with a specified delimiter. The opposite of Split. More...
 

Function Documentation

◆ Combine()

std::string muq::Utilities::StringUtilities::Combine ( std::vector< std::string >  strs,
char  delim = ',' 
)

Combine a vector of strings with a specified delimiter. The opposite of Split.

Definition at line 31 of file StringUtilities.cpp.

Referenced by muq::Approximation::BasisExpansion::ToHDF5().

◆ Split()

◆ Strip()

std::string muq::Utilities::StringUtilities::Strip ( std::string  str)

Strip the whitespace off the beginning and end of a string.

Definition at line 42 of file StringUtilities.cpp.

Referenced by Split().