OpenMC/include/openmc/string_utils.h
2018-11-06 10:23:11 -06:00

24 lines
516 B
C++

#ifndef OPENMC_STRING_UTILS_H
#define OPENMC_STRING_UTILS_H
#include <string>
#include <vector>
namespace openmc {
std::string& strtrim(std::string& s);
char* strtrim(char* c_str);
void to_lower(std::string& str);
int word_count(std::string const& str);
std::vector<std::string> split(const std::string& in);
bool ends_with(const std::string& value, const std::string& ending);
bool starts_with(const std::string& value, const std::string& beginning);
} // namespace openmc
#endif // OPENMC_STRING_UTILS_H