~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.h

  • Committer: Brian Aker
  • Date: 2011-02-12 08:20:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212082019-09gs5y1b0pxoaesb
Merge in optimizer pieces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
/* This file is originally from the mysql distribution. Coded by monty */
24
24
 
25
25
#include <drizzled/common.h>
 
26
 
26
27
#include <cassert>
27
28
#include <cstdlib>
28
29
#include <cstring>
29
30
#include <string>
30
31
 
 
32
#include "drizzled/visibility.h"
 
33
 
31
34
#ifndef NOT_FIXED_DEC
32
35
#define NOT_FIXED_DEC                   (uint8_t)31
33
36
#endif
37
40
 
38
41
class String;
39
42
 
40
 
extern String my_empty_string;
 
43
extern DRIZZLED_API String my_empty_string;
41
44
extern const String my_null_string;
42
45
namespace memory { class Root; }
43
46
typedef struct charset_info_st CHARSET_INFO;
44
47
 
45
 
std::string String_to_std_string(String const& s);
46
 
String* set_String_from_std_string(String* s, std::string const& cs);
 
48
DRIZZLED_API std::string String_to_std_string(String const& s);
 
49
DRIZZLED_API String* set_String_from_std_string(String* s, std::string const& cs);
47
50
 
48
51
int sortcmp(const String *a,const String *b, const CHARSET_INFO * const cs);
49
52
int stringcmp(const String *a,const String *b);
58
61
                                 const char **from_end_pos);
59
62
 
60
63
 
61
 
class String
 
64
class DRIZZLED_API String
62
65
{
63
66
  char *Ptr;
64
67
  size_t str_length,Alloced_length;