PolyFEM
Loading...
Searching...
No Matches
StringUtils.hpp File Reference
#include <vector>
#include <string>
Include dependency graph for StringUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  polyfem
 
namespace  polyfem::utils
 
namespace  polyfem::utils::StringUtils
 

Functions

std::vector< std::string > polyfem::utils::StringUtils::split (const std::string &str, const std::string &delimiters=" ")
 
std::istream & polyfem::utils::StringUtils::skip (std::istream &in, char x='#')
 
bool polyfem::utils::StringUtils::startswith (const std::string &str, const std::string &prefix)
 
bool polyfem::utils::StringUtils::endswith (const std::string &str, const std::string &suffix)
 
std::string polyfem::utils::StringUtils::replace_ext (const std::string &filename, const std::string &newext)
 
std::string polyfem::utils::StringUtils::trim (const std::string &string)
 
std::string polyfem::utils::resolve_path (const std::string &path, const std::string &input_file_path, const bool only_if_exists=false)