~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-04-16 13:00:30 UTC
  • mto: (2280.2.3 build)
  • mto: This revision was merged to the branch mainline in revision 2281.
  • Revision ID: olafvdspek@gmail.com-20110416130030-53mitypb2aenxpkb
Prune

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
 
#ifndef DRIZZLED_UTIL_CONVERT_H
22
 
#define DRIZZLED_UTIL_CONVERT_H
 
21
 
 
22
 
 
23
#pragma once
23
24
 
24
25
#include <boost/lexical_cast.hpp>
25
26
#include <string>
26
27
#include <iostream>
27
28
#include <sstream>
28
29
 
 
30
#include <drizzled/visibility.h>
 
31
 
29
32
namespace drizzled
30
33
{
31
34
 
45
48
 
46
49
void bytesToHexdumpFormat(std::string &s, const unsigned char *from, size_t from_length);
47
50
 
48
 
uint64_t drizzled_string_to_hex(char *to, const char *from,
49
 
                                uint64_t from_size);
50
 
void drizzled_hex_to_string(char *to, const char *from, uint64_t from_size);
 
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);
51
55
 
52
56
} /* namespace drizzled */
53
57
 
54
 
#endif /* DRIZZLED_UTIL_CONVERT_H */