~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/strfunc.cc

Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
static const char field_separator=',';
46
46
 
47
 
uint64_t st_typelib::find_set(const char *str, uint32_t length,
 
47
uint64_t TYPELIB::find_set(const char *str, uint32_t length,
48
48
                  const CHARSET_INFO * const cs,
49
49
                  char **err_pos, uint32_t *err_len, bool *set_warning) const
50
50
{
98
98
  > 0 position in TYPELIB->type_names +1
99
99
*/
100
100
 
101
 
uint32_t st_typelib::find_type(const char *find, uint32_t length, bool part_match) const
 
101
uint32_t TYPELIB::find_type(const char *find, uint32_t length, bool part_match) const
102
102
{
103
103
  uint32_t found_count=0, found_pos=0;
104
104
  const char *end= find+length;
138
138
    >0  Offset+1 in typelib for matched string
139
139
*/
140
140
 
141
 
uint32_t st_typelib::find_type2(const char *x, uint32_t length, const CHARSET_INFO *cs) const
 
141
uint32_t TYPELIB::find_type2(const char *x, uint32_t length, const CHARSET_INFO *cs) const
142
142
{
143
143
  if (!count)
144
144
    return 0;