17 #ifndef IMPORT_HELPERS_H_ 18 #define IMPORT_HELPERS_H_ 21 #include <boost/algorithm/string.hpp> 22 #include <boost/algorithm/string/replace.hpp> 23 #include <boost/regex.hpp> 33 boost::regex invalid_chars{R
"([^0-9a-z_])", 34 boost::regex::extended | boost::regex::icase}; 35 std::string sanitized_name = boost::regex_replace(name, invalid_chars, "");
37 sanitized_name +=
"_";
39 return sanitized_name;
44 #endif // IMPORT_HELPERS_H_ static std::set< std::string > reserved_keywords
bool is_reserved_name(const std::string &name)
std::string sanitize_name(const std::string &name)