~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/charset_info.h

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 17:09:31 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212170931-k1fg0lzsmm5i3ciq
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
/* See strings/CHARSET_INFO.txt for information about this structure  */
164
164
typedef struct my_collation_handler_st
165
165
{
166
 
  bool (*init)(struct charset_info_st *, void *(*alloc)(size_t));
 
166
  bool (*init)(struct charset_info_st *, unsigned char *(*alloc)(size_t));
167
167
  /* Collation routines */
168
168
  int     (*strnncoll)(const struct charset_info_st * const,
169
169
                       const unsigned char *, size_t, const unsigned char *, size_t, bool);
214
214
/* See strings/CHARSET_INFO.txt about information on this structure  */
215
215
typedef struct my_charset_handler_st
216
216
{
217
 
  bool (*init)(struct charset_info_st *, void *(*alloc)(size_t));
 
217
  bool (*init)(struct charset_info_st *, unsigned char *(*alloc)(size_t));
218
218
  /* Multibyte routines */
219
219
  uint32_t    (*ismbchar)(const struct charset_info_st * const, const char *, const char *);
220
220
  uint32_t    (*mbcharlen)(const struct charset_info_st * const, uint32_t c);
439
439
size_t my_charpos_8bit(const CHARSET_INFO * const, const char *b, const char *e, size_t pos);
440
440
size_t my_well_formed_len_8bit(const CHARSET_INFO * const, const char *b, const char *e,
441
441
                             size_t pos, int *error);
442
 
typedef  void *(*cs_alloc_func)(size_t);
 
442
typedef unsigned char *(*cs_alloc_func)(size_t);
443
443
bool my_coll_init_simple(CHARSET_INFO *cs, cs_alloc_func alloc);
444
444
bool my_cset_init_8bit(CHARSET_INFO *cs, cs_alloc_func alloc);
445
445
uint32_t my_mbcharlen_8bit(const CHARSET_INFO * const, uint32_t c);