OpenMC/include/openmc/string_utils.h

25 lines
516 B
C
Raw Normal View History

2018-08-06 21:31:30 -05:00
#ifndef OPENMC_STRING_UTILS_H
2018-08-07 10:27:17 -05:00
#define OPENMC_STRING_UTILS_H
2018-06-11 15:00:18 -04:00
#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);
2018-06-11 15:00:18 -04:00
} // namespace openmc
2018-08-06 21:31:30 -05:00
#endif // OPENMC_STRING_UTILS_H