~capttofu/drizzle/drizzle_memcached

« back to all changes in this revision

Viewing changes to drizzled/sql_string.h

  • Committer: Brian Aker
  • Date: 2008-11-18 23:19:19 UTC
  • mfrom: (584.1.16 devel)
  • Revision ID: brian@tangent.org-20081118231919-w9sr347dtiwhccml
Merge of Monty's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <mysys/iocache.h>
32
32
 
33
33
class String;
34
 
int sortcmp(const String *a,const String *b, const CHARSET_INFO * const cs);
35
 
String *copy_if_not_alloced(String *a,String *b,uint32_t arg_length);
36
 
uint32_t copy_and_convert(char *to, uint32_t to_length, const CHARSET_INFO * const to_cs,
37
 
                        const char *from, uint32_t from_length,
38
 
                        const CHARSET_INFO * const from_cs, uint32_t *errors);
39
 
uint32_t well_formed_copy_nchars(const CHARSET_INFO * const to_cs,
40
 
                               char *to, uint32_t to_length,
41
 
                               const CHARSET_INFO * const from_cs,
42
 
                               const char *from, uint32_t from_length,
43
 
                               uint32_t nchars,
44
 
                               const char **well_formed_error_pos,
45
 
                               const char **cannot_convert_error_pos,
46
 
                               const char **from_end_pos);
47
 
size_t my_copy_with_hex_escaping(const CHARSET_INFO * const cs,
48
 
                                 char *dst, size_t dstlen,
49
 
                                 const char *src, size_t srclen);
 
34
 
 
35
#if defined(__cplusplus)
 
36
extern "C" {
 
37
#endif
 
38
 
 
39
  int sortcmp(const String *a,const String *b, const CHARSET_INFO * const cs);
 
40
  int stringcmp(const String *a,const String *b);
 
41
  String *copy_if_not_alloced(String *a,String *b,uint32_t arg_length);
 
42
  uint32_t copy_and_convert(char *to, uint32_t to_length,
 
43
                            const CHARSET_INFO * const to_cs,
 
44
                            const char *from, uint32_t from_length,
 
45
                            const CHARSET_INFO * const from_cs,
 
46
                            uint32_t *errors);
 
47
  uint32_t well_formed_copy_nchars(const CHARSET_INFO * const to_cs,
 
48
                                   char *to, uint32_t to_length,
 
49
                                   const CHARSET_INFO * const from_cs,
 
50
                                   const char *from, uint32_t from_length,
 
51
                                   uint32_t nchars,
 
52
                                   const char **well_formed_error_pos,
 
53
                                   const char **cannot_convert_error_pos,
 
54
                                   const char **from_end_pos);
 
55
  size_t my_copy_with_hex_escaping(const CHARSET_INFO * const cs,
 
56
                                   char *dst, size_t dstlen,
 
57
                                   const char *src, size_t srclen);
 
58
 
 
59
#if defined(__cplusplus)
 
60
}
 
61
#endif
50
62
 
51
63
class String
52
64
{