23
23
/* This file is originally from the mysql distribution. Coded by monty */
25
#ifdef USE_PRAGMA_INTERFACE
26
#pragma interface /* gcc class implementation */
26
29
#ifndef NOT_FIXED_DEC
27
30
#define NOT_FIXED_DEC 31
30
#include <drizzled/common.h>
31
#include <mysys/iocache.h>
34
34
int sortcmp(const String *a,const String *b, const CHARSET_INFO * const cs);
35
35
String *copy_if_not_alloced(String *a,String *b,uint32_t arg_length);
36
36
uint32_t copy_and_convert(char *to, uint32_t to_length, const CHARSET_INFO * const to_cs,
37
37
const char *from, uint32_t from_length,
38
const CHARSET_INFO * const from_cs, uint32_t *errors);
38
const CHARSET_INFO * const from_cs, uint *errors);
39
39
uint32_t well_formed_copy_nchars(const CHARSET_INFO * const to_cs,
40
char *to, uint32_t to_length,
40
char *to, uint to_length,
41
41
const CHARSET_INFO * const from_cs,
42
const char *from, uint32_t from_length,
42
const char *from, uint from_length,
44
44
const char **well_formed_error_pos,
45
45
const char **cannot_convert_error_pos,
46
46
const char **from_end_pos);
165
165
{ return set_int(num, false, cs); }
166
166
bool set(uint64_t num, const CHARSET_INFO * const cs)
167
167
{ return set_int((int64_t)num, true, cs); }
168
bool set_real(double num,uint32_t decimals, const CHARSET_INFO * const cs);
168
bool set_real(double num,uint decimals, const CHARSET_INFO * const cs);
257
257
const CHARSET_INFO * const cs);
258
258
bool set_or_copy_aligned(const char *s, uint32_t arg_length, const CHARSET_INFO * const cs);
259
259
bool copy(const char*s,uint32_t arg_length, const CHARSET_INFO * const csfrom,
260
const CHARSET_INFO * const csto, uint32_t *errors);
260
const CHARSET_INFO * const csto, uint *errors);
261
261
bool append(const String &s);
262
262
bool append(const char *s);
263
263
bool append(const char *s,uint32_t arg_length);