~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/tablename_to_filename.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-07 13:09:02 UTC
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110707130902-lbhjmqfb7kq64s9p
Refactor tablename_to_filename()

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
namespace drizzled {
29
29
namespace util {
30
30
 
31
 
static const char hexchars[]= "0123456789abcdef";
 
31
static const char* hexchars= "0123456789abcdef";
32
32
 
33
33
 
34
34
/*
42
42
  RETURN
43
43
    true if errors happen. false on success.
44
44
*/
45
 
bool tablename_to_filename(const std::string &from, std::string &to)
 
45
std::string tablename_to_filename(const std::string &from)
46
46
{
 
47
  std::string to;
47
48
  BOOST_FOREACH(char it, from)
48
49
  {
49
50
    if (isascii(it))
71
72
  {
72
73
    to += "@@@";
73
74
  }
74
 
  return false;
 
75
  return to;
75
76
}
76
77
 
77
78
} /* namespace util */