~stewart/drizzle/use-catalog-for-path

« back to all changes in this revision

Viewing changes to drizzled/item/string.h

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
{
30
30
public:
31
31
  Item_string(const char *str,uint32_t length,
32
 
              const CHARSET_INFO * const cs, Derivation dv= DERIVATION_COERCIBLE)
 
32
              const charset_info_st * const cs, Derivation dv= DERIVATION_COERCIBLE)
33
33
    : m_cs_specified(false)
34
34
  {
35
35
    str_value.set_or_copy_aligned(str, length, cs);
48
48
    fixed= 1;
49
49
  }
50
50
  /* Just create an item and do not fill string representation */
51
 
  Item_string(const CHARSET_INFO * const cs, Derivation dv= DERIVATION_COERCIBLE)
 
51
  Item_string(const charset_info_st * const cs, Derivation dv= DERIVATION_COERCIBLE)
52
52
    : m_cs_specified(false)
53
53
  {
54
54
    collation.set(cs, dv);
58
58
    fixed= 1;
59
59
  }
60
60
  Item_string(const char *name_par, const char *str, uint32_t length,
61
 
              const CHARSET_INFO * const cs, Derivation dv= DERIVATION_COERCIBLE)
 
61
              const charset_info_st * const cs, Derivation dv= DERIVATION_COERCIBLE)
62
62
    : m_cs_specified(false)
63
63
  {
64
64
    str_value.set_or_copy_aligned(str, length, cs);
88
88
    return new Item_string(name, str_value.ptr(),
89
89
                           str_value.length(), collation.collation);
90
90
  }
91
 
  Item *safe_charset_converter(const CHARSET_INFO * const tocs);
 
91
  Item *safe_charset_converter(const charset_info_st * const tocs);
92
92
  inline void append(char *str, uint32_t length)
93
93
  {
94
94
    str_value.append(str, length);
145
145
  const char *func_name;
146
146
public:
147
147
  Item_static_string_func(const char *name_par, const char *str, uint32_t length,
148
 
                          const CHARSET_INFO * const cs,
 
148
                          const charset_info_st * const cs,
149
149
                          Derivation dv= DERIVATION_COERCIBLE)
150
150
    :Item_string(NULL, str, length, cs, dv), func_name(name_par)
151
151
  {}
152
 
  Item *safe_charset_converter(const CHARSET_INFO * const tocs);
 
152
  Item *safe_charset_converter(const charset_info_st * const tocs);
153
153
 
154
154
  virtual inline void print(String *str)
155
155
  {