~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/convert.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-22 19:02:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2421.
  • Revision ID: olafvdspek@gmail.com-20110822190242-jox9mcw76prif03l
Add do_sha1()

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
 
22
 
 
23
21
#pragma once
24
22
 
25
23
#include <boost/lexical_cast.hpp>
29
27
 
30
28
#include <drizzled/visibility.h>
31
29
 
32
 
namespace drizzled
33
 
{
 
30
namespace drizzled {
34
31
 
35
32
template <class T>
36
33
std::string to_string(T t)
48
45
 
49
46
void bytesToHexdumpFormat(std::string &s, const unsigned char *from, size_t from_length);
50
47
 
51
 
DRIZZLED_API uint64_t drizzled_string_to_hex(char *to, const char *from,
52
 
                                             uint64_t from_size);
53
 
DRIZZLED_API void drizzled_hex_to_string(char *to, const char *from,
54
 
                                         uint64_t from_size);
 
48
DRIZZLED_API uint64_t drizzled_string_to_hex(char *to, const char *from, uint64_t from_size);
 
49
DRIZZLED_API void drizzled_hex_to_string(char *to, const char *from, uint64_t from_size);
55
50
 
56
51
} /* namespace drizzled */
57
52