https://mooseframework.inl.gov
Namespaces | Functions
MooseStringUtils.h File Reference

Go to the source code of this file.

Namespaces

 MooseUtils
 

Functions

std::string MooseUtils::trim (const std::string &str, const std::string &white_space=" \\\)
 Standard scripting language trim function. More...
 
template<typename T >
void MooseUtils::tokenize (const std::string &str, std::vector< T > &elements, unsigned int min_len=1, const std::string &delims="/")
 This function will split the passed in string on a set of delimiters appending the substrings to the passed in vector. More...
 
template<typename T >
bool MooseUtils::tokenizeAndConvert (const std::string &str, std::vector< T > &tokenized_vector, const std::string &delimiter=" \\\)
 tokenizeAndConvert splits a string using delimiter and then converts to type T. More...
 
std::string MooseUtils::toUpper (const std::string &name)
 Convert supplied string to upper case. More...
 
std::string MooseUtils::toLower (const std::string &name)
 Convert supplied string to lower case. More...