24#include <drizzled/util/tablename_to_filename.h>
25#include <drizzled/internal/my_sys.h>
30static const char* hexchars=
"0123456789abcdef";
44std::string tablename_to_filename(
const std::string &from)
51 if (isdigit(it) || islower(it) || it ==
'_' || it ==
' ' || it ==
'-')
59 to.push_back(tolower(it));
66 to.push_back(hexchars[(it >> 4) & 15]);
67 to.push_back(hexchars[it & 15]);
70 if (drizzled::internal::check_if_legal_tablename(to.c_str()))
TODO: Rename this file - func.h is stupid.